locale "de_DE.UTF-8", fscanf problem?

Corinna Vinschen corinna-cygwin@cygwin.com
Tue Dec 17 16:49:00 GMT 2013


On Dec 17 11:04, Corinna Vinschen wrote:
> On Dec 17 10:09, Tilman Kuepper wrote:
> > Hello,
> > 
> > There seems to be an "unbalance" with fprintf and fscanf when using
> > the "de_DE.UTF-8" locale.
> > 
> > The following program correctly writes "2,5" (decimal comma) to a
> > file. But reading with fscanf fails - the decimal comma is treated
> > as "end of number".
> > 
> > Regards,
> > Tilman
> > 
> > --------------
> > [...testcase...]
> 
> Weird.  I was pretty sure that scanf is doing the right thing, but
> apparently it doesn't.  Thanks a lot for the testcase, I'll have a look
> into this issue.

A generic solution for this problem is much more complex than I
anticipated.  I'll be looking into getting this into the next Cygwin
release, but it will take at least a couple of days to get this right,
so don't hold your breath for testing a fix within... uhm... the year
2013, I guess.


Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Maintainer                 cygwin AT cygwin DOT com
Red Hat
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: not available
URL: <http://cygwin.com/pipermail/cygwin/attachments/20131217/8485e4b7/attachment.sig>


More information about the Cygwin mailing list