From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM12-DM6-obe.outbound.protection.outlook.com (mail-dm6nam12olkn2045.outbound.protection.outlook.com [40.92.22.45]) by sourceware.org (Postfix) with ESMTPS id 37DCE389247D for ; Sun, 17 Jan 2021 12:50:31 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 37DCE389247D ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=OwRU0/pmoePWq2cesdOj9w9rKO8CcrmeFvXbNEee/8ZW7VtYWZ2zeZNgXaMO0jyjsEXz93kGsfVMPUcSeRFcMJrv1F/XHLQdszICazYJYeki3qcnI4tWZ87V4Dy7M+yUq4FcQT2VAhO3xAPHVHRgPkIP2ZGKuEmo8CzX2LVqIUW/HQyANUO8ixiGgSLkreXCALRCYbPADJ46pA6TYbkRIaAMtG5K5cw7noHlhRXa2MzQiF5SPSg1jMVlk1Jepd8YJ8rPPC4/tx1lmPVaqIc4UTGfpLfQ1qjQ79LKAmjeQxytYNlIi3zm3Z7agHErtSs6snm6AjX0k3biGR4u3SyIKA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=3ikOXSBac76SkvZh2L7VBzUMwT1PgfCF949NqatIrhU=; b=KdB1I4ulDcywxgQ6tzEnxgGe3Ch/TRIWMQukKL2pF3NBIxlDsv/BN05rEeKZVy+god/ADiDWa3DMc/ushtX9rNUR7UXQMzKZIgkMu6OEB8kcusxWwVLf3zgT8XEN9i2R53x1Lq00VqdnyfW5FIN3U1IYYctZN69k5SchueTbp/nHII9ngaormhnKWBZGfFVOhZccKGjRYqPQmH7+KzJRQckCtOXv4Nm0bIGWmeQNuIetx3XohQjJ9o6H31/mT44grbCYWY0B7xBlvY++l9ntfnV/6cn44l4SaYWSs5g6KVbLlr5BuQ7esMQDiHgpJntJCBSXHCCUrrI3DRFcBZAg+Q== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none Received: from DM6NAM12FT042.eop-nam12.prod.protection.outlook.com (2a01:111:e400:fc64::47) by DM6NAM12HT152.eop-nam12.prod.protection.outlook.com (2a01:111:e400:fc64::180) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3784.7; Sun, 17 Jan 2021 12:50:30 +0000 Received: from DM6PR05MB4697.namprd05.prod.outlook.com (2a01:111:e400:fc64::4a) by DM6NAM12FT042.mail.protection.outlook.com (2a01:111:e400:fc64::129) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3784.7 via Frontend Transport; Sun, 17 Jan 2021 12:50:30 +0000 Received: from DM6PR05MB4697.namprd05.prod.outlook.com ([fe80::f1ff:8e09:63de:86ec]) by DM6PR05MB4697.namprd05.prod.outlook.com ([fe80::f1ff:8e09:63de:86ec%5]) with mapi id 15.20.3784.007; Sun, 17 Jan 2021 12:50:30 +0000 From: unlvsur unlvsur To: libstdc++ Subject: FW: How to parse number from IO buffer based on locale? Thread-Topic: How to parse number from IO buffer based on locale? Thread-Index: AQHW7M7hWJme27aZE0+PB2lLPj2hSKorxPy5 Date: Sun, 17 Jan 2021 12:50:30 +0000 Message-ID: References: In-Reply-To: Accept-Language: en-US, zh-CN Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-incomingtopheadermarker: OriginalChecksum:8C232F576BC6F71C3659B20C5E45509C8F0AE719918CDFFE5EA0FEA34BB88A40; UpperCasedChecksum:02FD0C5CC723A2FC84124FE3D7104A81583447E7BDE0F093207AC9BFFDEDB84E; SizeAsReceived:6986; Count:43 x-tmn: [xxjt8CxTBfe2ln1MfovfBfNXJ213QWA5G0WuZT983msLFbEp1GZdOfjtol2RjWip] x-ms-publictraffictype: Email x-incomingheadercount: 43 x-eopattributedmessage: 0 x-ms-office365-filtering-correlation-id: 829f2a89-3347-4749-b1f0-08d8bae678c9 x-ms-traffictypediagnostic: DM6NAM12HT152: x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: KpC8uQHMvT77kDMJ9pbuiJ6dA6TCxqZGXxthzrbQhpbLfHESgMfkSEC3X0HnoJDIobXBBrk48ivMguCy4tYUAexiGjxtrAPytfHc1JAzlTaeZOWilBf8rQ0FQIgCivYk5CgBnjGQMwTw6j1k68hXe58/fyxDgWTuQLP9W+Rr7UPGeuR6EhaBDe/S6xtqWuKc2kI0jAMB51tW/T81N4Dpw+08LEpC/T9EglfM0vZc+t/HCxvOY4RSqg0PAckcBN5NzRUnaKhmPHAgOx2xW/ueLpNvO2AUIMELeYpiwbzMNf0= x-ms-exchange-antispam-messagedata: vNLig/cuW0L+eWEFxWu2XxviBRlT5+Qq0yqcmYrhavKKEi665aPRsltgcZO4SxJjtpv2FmX4luUTCNtxHKAdGy6brfyar5Pv6nQzrOuDvLfJzpteFm8qxrsSSBTeGTri2LIhQLA6XswBUl8xi9EYGpWv3EguNPW0jjE6IvN1QWo/Ppyv0y10QtYwaQYB8r/1pfPb0RfPaN+Ncq+4CubOaA== x-ms-exchange-transport-forked: True MIME-Version: 1.0 X-OriginatorOrg: live.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-AuthSource: DM6NAM12FT042.eop-nam12.prod.protection.outlook.com X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-CrossTenant-Network-Message-Id: 829f2a89-3347-4749-b1f0-08d8bae678c9 X-MS-Exchange-CrossTenant-originalarrivaltime: 17 Jan 2021 12:50:30.4174 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Internet X-MS-Exchange-CrossTenant-id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-rms-persistedconsumerorg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6NAM12HT152 X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, HTML_MESSAGE, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2, SPF_HELO_PASS, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: libstdc++@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Libstdc++ mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 17 Jan 2021 12:50:32 -0000 From: unlvsur unlvsur Sent: Sunday, January 17, 2021 07:49 To: libc-help@sourceware.org Subject: How to parse number from IO buffer based on locale? Has POSIX ever mentioned how to do this in a standard form? Particularly, i= f decimal point/decimal seperators are multibytes like wae_CH, or space, wh= at kind of behavior it should behave? Parsing multibytes decimal point like =92 will end up corruption io buffer. Sent from Mail for Window= s 10