From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from eu-smtp-delivery-198.mimecast.com (eu-smtp-delivery-198.mimecast.com [185.58.85.198]) by sourceware.org (Postfix) with ESMTPS id 72D48385772C for ; Sat, 15 Apr 2023 05:06:46 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 72D48385772C Authentication-Results: sourceware.org; dmarc=pass (p=reject dis=none) header.from=nestgroup.net Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=nestgroup.net DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nestgroup.net; s=mcdkim; t=1681535203; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=oX1435g+W4e5BnESJB1FgjOVmnI+I0qe/8HgaV0jmsQ=; b=miif0wDDxTfWzs+kSIyZwO+Tecp9pjWjLjaeNF0T55dOVtWVRXUsWPVQ3gX1JyS1iW11lW L9+i+Vbd6hLjFI2uZ7AJ3cOqyHVkpTxRgVPkIuVkN5MCZx5PhQ24Q+dn95xNGB1a3gTfcs /eD5yTsXQK7+ZGqJlmk+fXeWbwUI3JY0WKcBxQkAy81E5wZbNJFoifGee3ggrDnvculEO3 5XcN1T0F/aRyfx+Cp2Y1yeu1wl1uFtOeAUs1sEQgvuJm61rL6LYpRecWFvzO3yHItnfeLT EEPT2JIAk6Y2w3fo8UJzKms0azNV0ICAj9vTE+3x1Qzd1AnzVQKVoB4oZ7jeKQ== Received: from IND01-BMX-obe.outbound.protection.outlook.com (mail-bmxind01lp2240.outbound.protection.outlook.com [104.47.74.240]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id uk-mtapsc-2-gsc55uE8OLun8VBS-jV19Q-1; Sat, 15 Apr 2023 06:06:40 +0100 X-MC-Unique: gsc55uE8OLun8VBS-jV19Q-1 Received: from MAZPR01MB6928.INDPRD01.PROD.OUTLOOK.COM (2603:1096:a01:5a::5) by MAZPR01MB6300.INDPRD01.PROD.OUTLOOK.COM (2603:1096:a01:4f::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6298.30; Sat, 15 Apr 2023 05:06:36 +0000 Received: from MAZPR01MB6928.INDPRD01.PROD.OUTLOOK.COM ([fe80::7600:673a:9abe:7465]) by MAZPR01MB6928.INDPRD01.PROD.OUTLOOK.COM ([fe80::7600:673a:9abe:7465%8]) with mapi id 15.20.6298.030; Sat, 15 Apr 2023 05:06:36 +0000 From: Anas N. To: "newlib@sourceware.org" Subject: RE: Adding support for gb2312 and sift-jis to newlib iconv Thread-Topic: Adding support for gb2312 and sift-jis to newlib iconv Thread-Index: AdkXntW3m6BXWdIDQUGVe6dJzpvwKxXuOX7Q Date: Sat, 15 Apr 2023 05:06:36 +0000 Message-ID: References: In-Reply-To: Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-publictraffictype: Email x-ms-traffictypediagnostic: MAZPR01MB6928:EE_|MAZPR01MB6300:EE_ x-ms-office365-filtering-correlation-id: 07c6f8b5-fb47-449d-862b-08db3d6f3036 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0 x-microsoft-antispam-message-info: I7CYgKPhpWXJ3gaLUhCoj/K77twSVOQ4A3EbNLlXSTSnmDNdVa+997a+ypUWFU8Z3DuuR6m9C9hes3mHZW4kLe7805H/t4hgCFgmnMsAhOCtwLkZbRQGJlqs6JLAqTScoECnPE5kHD2n6fqlERAYjukAooJ3JATNTtf5kN4XmUcPfu7B/+mw1sNTiHGWwSloLZWDq0zJyDExkBgz+VY71nPdKDPAO9T6dZ6SDnEl9hNO3uI3HSq1OKA2lXlcwjzZO3JPodG3ySCLeYD6c7q5dAa6zKHOd/P6czZfrAhBQcpzYysrBgEq0I1ZLISbdtmxDrI9MgoqW/lrr7QBJFaQccd8rYpHdzmgnj5kq9OvnRPqADv1btkkZm9S1fKGcjhgWaHHFMpOUxMVzfKeVos+HbUmrrbvYBG1RBg1XZzuAun6uFS2w6br7B4S+mK5l92Uvmy3kJvLYd9Ug+2D9Yu4yHDviUmQ4t5nS/PcntMlLw5bSqBztXtPKOMQpcpueGgEHRgGSixgMBitHLIusXI+MIaCJAAgPcmXlsvLHZdSq5zp6N/eype5VjmEe4lSWjOOjqeZ12u21hfDQqisWRHpmACGJpeUl0TwFKs8nxEZsfM= x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:MAZPR01MB6928.INDPRD01.PROD.OUTLOOK.COM;PTR:;CAT:NONE;SFS:(13230028)(4636009)(376002)(346002)(39860400002)(396003)(136003)(366004)(451199021)(8676002)(33656002)(76116006)(966005)(71200400001)(7696005)(478600001)(6506007)(26005)(186003)(53546011)(55236004)(9686003)(52536014)(38070700005)(38100700002)(5660300002)(6916009)(316002)(122000001)(66476007)(66946007)(66446008)(66556008)(64756008)(41300700001)(55016003)(2906002)(8936002)(86362001);DIR:OUT;SFP:1102 x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?jmnO+BOrXFdZss+zn8WRXMqRhaoHYPwE4M+5hAFurtfEl6y0bCkQ80NAgkGe?= =?us-ascii?Q?JFb+0cc8YQ+h2N7Bn2zj2L8hft6BWtrtQsowBVrbboZgiqR9Xhkb6dL7RQkP?= =?us-ascii?Q?7isyVZR5Ly8yGeC/poocqsqvNd/wwpQOrHjO3ppi2XXKJZ+R09JHPnMzIdFK?= =?us-ascii?Q?JbZ+P6evu5I839ox5zb9Lb7qh0G64+T5qtNi62esWleELknJ2H5+WeUg0e2D?= =?us-ascii?Q?uCzyVSABdI9vuCEJTFpRiCv9U0ReyDZxGi2+k2TPFQK7GKIydy2ynkXUWWkV?= =?us-ascii?Q?RZXTT9vZnxrp/+Q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9KCk?= =?us-ascii?Q?0bOjxYINZmynMxc4AoS6fqucpNA3me53l3LVy9WgiQxiAHYIWfCra16cwPS9?= =?us-ascii?Q?W9wGE+qj7Kc6cQ2/wpO3HekoFzwLG1jwK51xlORNzbd0Td/kpXifF+8ozlJJ?= =?us-ascii?Q?nwqc3dX8qSQHmoJ0/WFWBmEKINIaiJBMV+hRVD43BJg3IhxkfL/XgkMyKpe2?= =?us-ascii?Q?UdNIRdqHXPlix/cOJWCdlbborDtNec8Tg4hU+XD6Hh+3+andqBXq8AZoKKZS?= =?us-ascii?Q?hZJb0IUNg96cRJsoW5URbNPGoLVbHlhz9VpY+E3DTB2s8C51L6gq6tf8Iy0d?= =?us-ascii?Q?weXqH5KvIN9kZbtywvLlUeb1KNWyFZ2Pzg4EcwzhA4u/+DVd0sl1ymvr7AwA?= =?us-ascii?Q?XoEQgHmQyb3tpoI3DgxGcVckrDJmh5LvYUZUoDEu?= MIME-Version: 1.0 X-OriginatorOrg: nestgroup.net X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: MAZPR01MB6928.INDPRD01.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-Network-Message-Id: 07c6f8b5-fb47-449d-862b-08db3d6f3036 X-MS-Exchange-CrossTenant-originalarrivaltime: 15 Apr 2023 05:06:36.2408 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 413238b0-a7ed-471d-b1a9-615aa47d504c X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: M3ighoRD92+tj7M+pf8qSlU3ViY0tRF9jPI3/CaMeLIs8pezLZrg1jiBVu5agtTqKz+cT75RHzYp9INnoWsR7Q== X-MS-Exchange-Transport-CrossTenantHeadersStamped: MAZPR01MB6300 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: nestgroup.net Content-Language: en-US Content-Type: multipart/alternative; boundary="_000_MAZPR01MB6928952A8A86D52F019E5261859E9MAZPR01MB6928INDP_" X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,HTML_MESSAGE,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS,TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: --_000_MAZPR01MB6928952A8A86D52F019E5261859E9MAZPR01MB6928INDP_ Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hi Newlib team, I have partially able to do for shift_jis by creating tables using 1. wget ftp://sourceware.org/pub/newlib/newlib-4.2.0.20211231.tar.gz 2. tar -xvf newlib-4.2.0.20211231.tar.gz 3. cd newlib/libc/iconv/ccs/ 4. wget https://www.unicode.org/Public/MAPPINGS/OBSOLETE/EASTASIA/JIS/SHIFT= JIS.TXT 5. ./mktbl.pl -S SHIFTJIS.TXT 6. cd ../ces/ 7. ./mkdeps.pl It seems I need to handle more in the scenario when a string is mixed with = English and Japanese Regards, Anas N From: Anas N. Sent: 24 December 2022 19:25 To: newlib@sourceware.org Subject: Adding support for gb2312 and sift-jis to newlib iconv Hi newlib team, In the project I am working there is requirement to covert UCS2 to followin= g code pages 1. Chinese: gb2312 2. Japanese: shift_ jis 3. Russian : cp1251 4. Hungrian, Polish and Cesky: cp1252 5. Default:cp1250 I could see that items 3-5 are supported in newlib iconv library. For gb2312 or gbk I could see that it's supported in Cygwin-windows only.= Is there a feasibility issue to support gb2312 for embedded cortex M contr= ollers? I can see Jis implementation in newlib and but is not available for Cygwin.= Is It available for embedded cortex M controllers? What is the difference between jis and shit-jis Thank & Regards, Anas N Disclaimer The information contained in this communication from the sender is confiden= tial. It is intended solely for use by the recipient and others authorized = to receive it. If you are not the recipient, you are hereby notified that a= ny disclosure, copying, distribution or taking action in relation of the co= ntents of this information is strictly prohibited and may be unlawful. This email has been scanned for viruses and malware, and may have been auto= matically archived by Mimecast, a leader in email security and cyber resili= ence. Mimecast integrates email defenses with brand protection, security aw= areness training, web security, compliance and other essential capabilities= . Mimecast helps protect large and small organizations from malicious activ= ity, human error and technology failure; and to lead the movement toward bu= ilding a more resilient world. To find out more, visit our website. --_000_MAZPR01MB6928952A8A86D52F019E5261859E9MAZPR01MB6928INDP_--