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: List-Subscribe: List-Archive: List-Post: List-Help: , 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 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: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="dc+cDN39EJAMEtIO" Content-Disposition: inline In-Reply-To: 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--