bugGNU Octave - Bugs: bug #34495, locales support in fscanf /sscanf

 
 

bug #34495: locales support in fscanf /sscanf

Submitter:  Pascal Dupuis <cdemills>
Submitted:  Thu 06 Oct 2011 01:34:28 PM UTC
   
 
Category:  Interpreter Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Inaccurate Result
Status:  Fixed Assigned to:  None
Originator Name:  Pascal Dupuis Open/Closed:  * Closed
Release:  * 3.4.2 Operating System:  * GNU/Linux
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Thu 16 Feb 2012 05:59:30 AM UTC, comment #5: 

Closing report as a version of the locale support patch has been applied to the development sources.

Rik <rik5>
Group administrator
Sat 11 Feb 2012 12:19:11 AM UTC, comment #4: 

Pascal,

Can this bug report be closed?  I think your patch for scanf locale support has been applied to the development branch already.

Rik <rik5>
Group administrator
Wed 23 Nov 2011 11:36:23 AM UTC, comment #3: 

With a specific test.

(file #24434)

Pascal Dupuis <cdemills>
Group Member
Wed 23 Nov 2011 11:26:04 AM UTC, comment #2: 

New version: ensure we call std::locale with a valid string

(file #24433)

Pascal Dupuis <cdemills>
Group Member
Thu 06 Oct 2011 02:58:12 PM UTC, comment #1: 

Adapted the doc for scanf

(file #24117)

Pascal Dupuis <cdemills>
Group Member
Thu 06 Oct 2011 01:34:28 PM UTC, original submission:  

Hello,

please find enclosed a patch in order to make streams locale aware:
oct-stream.h:
- added octave_base_stream::imbue as avirtual function doing nothing
- added octave_stream::imbue which calls imbue on underlying input_stream and output_stream if present
file-io.cc:
- use the second form, when the third argument is a string, to set the locales from this string. Once set, locales are not restored to their previous state.

Please apply

Pascal

Pascal Dupuis <cdemills>
Group Member

 

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

Attach Files:
   
   
Comment:
   

Attached Files
file #24434:  sscanf_locale.pat added by cdemills (4KiB - image/x-coreldrawpattern)
file #24433:  sscanf_locale.pat added by cdemills (4KiB - image/x-coreldrawpattern)
file #24117:  sscanf_locale.pat added by cdemills (5KiB - image/x-coreldrawpattern)
file #24116:  sscanf_locale.pat added by cdemills (5KiB - image/x-coreldrawpattern - patch produced by hg diff)

 

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 (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 7 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2012-02-16 rik5 StatusPatch Submitted Fixed
        Open/ClosedOpen Closed
    2011-11-24 rik5 StatusNone Patch Submitted
    2011-11-23 cdemills Attached File- Added sscanf_locale.pat, #24434
    2011-11-23 cdemills Attached File- Added sscanf_locale.pat, #24433
    2011-10-06 cdemills Attached File- Added sscanf_locale.pat, #24117
    2011-10-06 cdemills Attached File- Added sscanf_locale.pat, #24116

    Back to the top

    Powered by Savane 3.13-bb6a.
    Corresponding source code