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

 
 

bug #34495: locales support in fscanf /sscanf

Submitted by:  Pascal Dupuis <cdemills>
Submitted on:  Thu 06 Oct 2011 01:34:28 PM UTC  
 
Category: InterpreterSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Inaccurate Result
Status: FixedAssigned to: None
Originator Name: Pascal DupuisOpen/Closed: Closed
Release: 3.4.2Operating System: GNU/Linux

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

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>
Project 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>
Project Administrator
Wed 23 Nov 2011 11:36:23 AM UTC, comment #3:

With a specific test.

(file #24434)

Pascal Dupuis <cdemills>
Project 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>
Project Member
Thu 06 Oct 2011 02:58:12 PM UTC, comment #1:

Adapted the doc for scanf

(file #24117)

Pascal Dupuis <cdemills>
Project 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>
Project Member

 

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

Attach File(s):
   
   
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
  • -unavailable- added by rik5 (Updated the item)
  • -unavailable- added by cdemills (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only project members can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 7 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Thu 16 Feb 2012 05:59:30 AM UTCrik5StatusPatch Submitted=>Fixed
      Open/ClosedOpen=>Closed
    Thu 24 Nov 2011 03:55:08 AM UTCrik5StatusNone=>Patch Submitted
    Wed 23 Nov 2011 11:36:23 AM UTCcdemillsAttached File-=>Added sscanf_locale.pat, #24434
    Wed 23 Nov 2011 11:26:04 AM UTCcdemillsAttached File-=>Added sscanf_locale.pat, #24433
    Thu 06 Oct 2011 02:58:12 PM UTCcdemillsAttached File-=>Added sscanf_locale.pat, #24117
    Thu 06 Oct 2011 01:34:28 PM UTCcdemillsAttached File-=>Added sscanf_locale.pat, #24116

    Back to the top


    Powered by Savane 3.1-cleanup1