bugGNU Octave - Bugs: bug #35364, test fail in file-io.cc (MinGW and...

 
 

bug #35364: test fail in file-io.cc (MinGW and Ubuntu)

Submitter:  Tatsuro MATSUOKA <tmacchant>
Submitted:  Wed 25 Jan 2012 02:33:47 AM UTC
   
 
Category:  Interpreter Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Incorrect Result
Status:  Fixed Assigned to:  None
Originator Name:  Open/Closed:  * Closed
Release:  * dev Operating System:  * Any
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Thu 26 Jan 2012 08:28:02 PM UTC, comment #1: 

This problem is corrected in the enclosed patch. It was not accepted because I moved form warning() to warning_with_id, using what was in my opinion the closest ID as none of them describe correctly the issue. Another option would be to make this part of the code optional, and onlyu activated if some switch is given ? Could some "autoconf" wizard help ?

Pascal

(file #24899)

Pascal Dupuis <cdemills>
Group Member
Wed 25 Jan 2012 02:33:47 AM UTC, original submission:  

On Ubuntu (11.10 32 bit) and MinGW
test of file-io.cc were in failure.



>>>>> processing /home/tatsu/work/octave/develop/octave-work/src/file-io.cc
  ***** test
assert(sscanf('1,2', '%f', 'C'), 1)
assert(sscanf('1,2', '%f', 'fr_FR'), 1.2)
!!!!! test failed
assert (sscanf ('1,2', '%f', 'fr_FR'),1.2) expected
1.2000
but got
1
values do not match

The above is the Ubuntu result. The result on the MinGW is the same.

The failure seems to be independent of the platform.

Tatsuro MATSUOKA <tmacchant>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

Attached Files
file #24899:  sscanf-locale-20120119.pat added by cdemills (3KiB - application/octet-stream)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by rik5 (Updated the item)
  • -email is unavailable- added by cdemills (Updated the item)
  • -email is unavailable- added by tmacchant (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only group members can vote.

     

    Follow 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2013-03-14 rik5 StatusNone Fixed
        Open/ClosedOpen Closed
    2012-01-26 cdemills Attached File- Added sscanf-locale-20120119.pat, #24899

    Back to the top

    Powered by Savane 3.13-02a9.
    Corresponding source code