octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #34495] locales support in fscanf /sscanf


From: Pascal Dupuis
Subject: [Octave-bug-tracker] [bug #34495] locales support in fscanf /sscanf
Date: Thu, 06 Oct 2011 13:34:28 +0000
User-agent: Mozilla/5.0 (X11; Linux i686; rv:7.0) Gecko/20100101 Firefox/7.0

URL:
  <http://savannah.gnu.org/bugs/?34495>

                 Summary: locales support in fscanf /sscanf
                 Project: GNU Octave
            Submitted by: cdemills
            Submitted on: jeu. 06 oct. 2011 13:34:28 GMT
                Category: Interpreter
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Inaccurate Result
                  Status: None
             Assigned to: None
         Originator Name: Pascal Dupuis
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: 3.4.2
        Operating System: GNU/Linux

    _______________________________________________________

Details:

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



    _______________________________________________________

File Attachments:


-------------------------------------------------------
Date: jeu. 06 oct. 2011 13:34:28 GMT  Name: sscanf_locale.pat  Size: 5 ko  
By: cdemills
patch produced by hg diff
<http://savannah.gnu.org/bugs/download.php?file_id=24116>

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?34495>

_______________________________________________
  Message posté via/par Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]