From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM12-DM6-obe.outbound.protection.outlook.com (mail-dm6nam12olkn2024.outbound.protection.outlook.com [40.92.22.24]) by sourceware.org (Postfix) with ESMTPS id 837B5388E819 for ; Sun, 6 Dec 2020 10:09:45 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 837B5388E819 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=fNX0tJkgtyrVyAy94GcgwZqVdv3c4z3b1QQkxb8rGb1EMo5IjPdQafbylNupev4Nvj5KOuO8lJ1Qs4RwAIPDqegd3+CupFCc7Ibo61b2csid6bPYTMeaV/wY5lP85rfWkOIRbPUrekGEy9zdZ2+KNQbBFfvlOLlI/NZbV8O1XC7UmpWB17j1Fnooz/sC7Pz5zz7KIJ5ydP60r+742kba0ssvh/HgQIPRRcNhYHEkFn+a6zAMBayFmTf7HdjK9rVXMU44x08XHnuthVe1luVICKtSzww+vWaQygmRRiTB+pzzHvTO4ww+TN1McHA7JVH0vdf7PZjplI8t+GUqesm3UQ== 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=dvoSWPupNg9qittB5jhMADKZaJZ5Y0H7S85VwyR10Go=; b=oVnI8Oxagr5gysnJDL9Co2Bljs1ov1Rf5pXc2lcQvGg6+FhMIenzbAAJKC+E1zm8lJC8whcOx/VZoo62ncyQcAj7ER8Iu3hZP4g4WvSltqq4SbgT8wNxwvcEx6QYw//9z5ir+1wY/AwtkxwhfXZgALj1KFCVrOuajklG99lFS6bw0V+3WsNlSOww6lEGirS+SIzxhACGnL3CEHoAKdBxxVaBLuL9JD5uGIiJhilPQRZ4oIxL6Xqj+I1qRcKUD+PL0O5jIn0cBz7OvPqPpSR+7D8vqFSe5mPLohQl2/t8JF0KC89+mJnH0ZyBQVNzttbmkswRj+ZHbwvrITGZqAJe7A== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none Received: from BN8NAM12FT004.eop-nam12.prod.protection.outlook.com (2a01:111:e400:fc66::4a) by BN8NAM12HT047.eop-nam12.prod.protection.outlook.com (2a01:111:e400:fc66::70) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3654.10; Sun, 6 Dec 2020 10:09:44 +0000 Received: from CH2PR02MB6522.namprd02.prod.outlook.com (2a01:111:e400:fc66::45) by BN8NAM12FT004.mail.protection.outlook.com (2a01:111:e400:fc66::314) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3654.10 via Frontend Transport; Sun, 6 Dec 2020 10:09:44 +0000 Received: from CH2PR02MB6522.namprd02.prod.outlook.com ([fe80::318e:dfde:427b:1d37]) by CH2PR02MB6522.namprd02.prod.outlook.com ([fe80::318e:dfde:427b:1d37%7]) with mapi id 15.20.3611.022; Sun, 6 Dec 2020 10:09:44 +0000 From: sotrdg sotrdg To: libstdc++ Subject: About u8filebuf u16filebuf u32filebuf, undocumented features? Thread-Topic: About u8filebuf u16filebuf u32filebuf, undocumented features? Thread-Index: AQHWy7aIPmNVSXSI40SihKbFr/5HHg== Date: Sun, 6 Dec 2020 10:09:44 +0000 Message-ID: Accept-Language: zh-CN, en-US Content-Language: zh-CN X-MS-Has-Attach: X-MS-TNEF-Correlator: x-incomingtopheadermarker: OriginalChecksum:2C94F48AC49AB3347D5F660DE1A1AEC6B804DA8092BD7AF7B89FAD6272589C02; UpperCasedChecksum:AC3C3FA63316825B4F4B2D0D465ED0E9EBB699842885338A50506D46E420DD87; SizeAsReceived:6640; Count:41 x-tmn: [eSPT6eftZwKVh0gG3dYBEy/AmZtOBU3s] x-ms-publictraffictype: Email x-incomingheadercount: 41 x-eopattributedmessage: 0 x-ms-office365-filtering-correlation-id: 81e638e8-857b-4c96-1b3f-08d899cf0dd5 x-ms-traffictypediagnostic: BN8NAM12HT047: x-ms-exchange-minimumurldomainage: aka.ms#3608 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: +QxZRosTfkGfwEgEI8VqVG0k3EqspCeFqzmFikrxdFNaEjweZTeR6kOZxN8gc3MrqEqmZB+x2ijQDXrm9nnm7CAUZ2sAcChrOapoiwkfaNmplNFuSPJ8AGp3s2y7B2rqErmRH90U970J1Dzh+HnkeKrgfkMU0ZRmWoUBIoWvbTuMbMqe4qtHp95BKKLDjJwkrFcqSRGcY7BDCJtxWIBx5xeZ9d693iL0emnDdxIYgTvH9WSUn0E1hZuXDHr/wi4/ x-ms-exchange-antispam-messagedata: u8rLj4jovv9UxHuV6DyA2/gchJqMiYDI18Y+D6vb8k0Iu3M0Gglsq6KFZWka13Oq+ce7kkG8hvfv9iWWS8zVkVcjU8OEBWCmRYqsClQCAZ7o1rf3wt8lLPeBgdM+0bv7aZnyenNMtzePM9JvM9CGQA== 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: BN8NAM12FT004.eop-nam12.prod.protection.outlook.com X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-CrossTenant-Network-Message-Id: 81e638e8-857b-4c96-1b3f-08d899cf0dd5 X-MS-Exchange-CrossTenant-originalarrivaltime: 06 Dec 2020 10:09:44.1239 (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: BN8NAM12HT047 X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, HTML_MESSAGE, KAM_SHORT, 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="us-ascii" 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, 06 Dec 2020 10:09:47 -0000 Did I find out a hidden feature inside libstdc++? i tried to use std::basic_filebuf std::basic_filebuf std::basic_filebuf It does not look like C++ fstream supports char8_t char16_t char32_t. However, my fast_io library supports formatted i/o for char8_t char16_t and= char32_t. I tried them with fast_io's facilitiea and they work perfectly f= ine, with codecvt to locale encoding char set. https://github.com/expnkx/fast_io/blob/f6efd9dc1c3f4915e0e9ee48d884c682157a= 9121/include/fast_io_legacy_impl/cpp/filebuf_file.h#L173 Are they undocumented standard library features? Should i use them without worrying about some other standard library implem= entations do not support them? Get Outlook for Android