delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2013/12/17/05:04:46

X-Recipient: archive-cygwin AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:date:from:to:subject:message-id:reply-to
:references:mime-version:content-type:in-reply-to; q=dns; s=
default; b=nEYyFNeQFyHXycI0oQCUyrka+Vmh/1XDHdP3bY5T0cZAuFBDoKeMn
FwFCeSiWZ4YYelV3Wjf9jLFZgmsxqimVT71u5q7EtsygbesB5Ezc/+txLoHTbbCm
Ioc0O2tacrF/cgJ2tj6gcBYF+b+0HAg6O8HeF/sKO9g9kqcJPvZBuw=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:date:from:to:subject:message-id:reply-to
:references:mime-version:content-type:in-reply-to; s=default;
bh=lPgeb9a4awgU3wo+2oLHUYQdyfQ=; b=ndEYhtid9+e9bOmiYA/91GmkrpGn
DmGPW0V7TOWWr5vc16kRPtv1maQtpgiBHpxYYmo5ehWunpbib5aNRwROLTnW+Ztq
ezsiQAhGpH7x398enVTGfn/7EY4yf250RIG1S9dfHXlD4v0l1KbCIznwtqscTO3i
BM0Bfcz46wwLKVE=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=1.7 required=5.0 tests=AWL,BAYES_40,LIKELY_SPAM_SUBJECT autolearn=no version=3.3.2
X-HELO: calimero.vinschen.de
Date: Tue, 17 Dec 2013 11:04:27 +0100
From: Corinna Vinschen <corinna-cygwin AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: locale "de_DE.UTF-8", fscanf problem?
Message-ID: <20131217100427.GB9768@calimero.vinschen.de>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <l8p4cd$gio$1 AT ger DOT gmane DOT org>
MIME-Version: 1.0
In-Reply-To: <l8p4cd$gio$1@ger.gmane.org>
User-Agent: Mutt/1.5.21 (2010-09-15)

--dc+cDN39EJAMEtIO
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Dec 17 10:09, Tilman Kuepper wrote:
> Hello,
>=20
> There seems to be an "unbalance" with fprintf and fscanf when using
> the "de_DE.UTF-8" locale.
>=20
> 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".
>=20
> Regards,
> Tilman
>=20
> --------------
> [...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.


Corinna

--=20
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Maintainer                 cygwin AT cygwin DOT com
Red Hat

--dc+cDN39EJAMEtIO
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.15 (GNU/Linux)

iQIcBAEBAgAGBQJSsCGrAAoJEPU2Bp2uRE+g7DEP/2Qh+n1hzykm8iCyezkX0/NL
uxsibakmYQQz5IjWDFmc1U1RmAN0PYyGhwBcFgnAWHXhVpMzSeTVfMfb3tbwARuJ
m6njsuNpibpOhcdpO0edwIhBGzW11UZQgt7HFpTr62uB6NETzQNOfIjDfTxb9XlS
AO43iWnxMUzcCaythUN8tTFMadxBFIztVDYVAlHm4JzZ7LiO8lsw78jhOEl9YtTr
5mCMJUe+nbOCXoqZbI/zMK/ehPmpkTZnEjLOCa3R/YuZ2k7WfDeznm+xxXsKH7SQ
FYRPPaqIcWU0UIefg4HccBOiLxSpIQqHQIUDkRerPC3FSM/SEnYHGjzV/xam6IKR
+hyLTJ/yZfrFNgme71bhkmJQ06nBSwWSXrCARBd0y6WoH4PjtkIXmm6fNVzfaID/
VpSiDgzhIGpgyOnLXzQawxuFaT343Mzqvcd+oIDMpXXgw3h+XjUVhCxQE+J/TeNW
XEjvPDw0UtM8rfRAV2q1x8E0IHnjfNLVLceRV0twDhBMs+floKsBoW/397kxpdfN
g2eSx/1fxP9wlcOVRj/Hy8YKNsH8+R1TMFkI+YvIuj3/X13liqV3Rnn2roxpXxgI
WhWuRlaw+5C4tdYizbTf1k3ouohA8WOEycgXOAK/cQS8dYwe2YfbV5G0de/q5TPO
hRj+x1HlF9tR9NbuCmH0
=bOnn
-----END PGP SIGNATURE-----

--dc+cDN39EJAMEtIO--

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019