From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by sourceware.org (Postfix) with ESMTPS id 76AD73858D37 for ; Mon, 9 Jan 2023 10:50:13 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 76AD73858D37 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=redhat.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1673261413; h=from:from:reply-to: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=u/poSBVzHoTjgqLriYymLaDCxTHwSK/vvD9bgZWUWJY=; b=CyVDqsfLwvi8ugtT65efhpJhDLJHDLf7PXO/JT2QBBB/GRo9WzF3FTl4PiRTRyXcw3EpvA 0q5hzziKXQLVl2ItLEJCvA8bdulo2CeXlN7pBHzsdp/lMZkDj1ApWWXtTDrqV2iBu5Stao k5hvoZLpDqXvG0L/6dHvLGz8MK6TFuE= Received: from mimecast-mx02.redhat.com (mx3-rdu2.redhat.com [66.187.233.73]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-463-1AM10HTWMnGx4iBGiOE6Pw-1; Mon, 09 Jan 2023 05:50:11 -0500 X-MC-Unique: 1AM10HTWMnGx4iBGiOE6Pw-1 Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.rdu2.redhat.com [10.11.54.2]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 135D92802E21 for ; Mon, 9 Jan 2023 10:50:11 +0000 (UTC) Received: from calimero.vinschen.de (unknown [10.39.193.197]) by smtp.corp.redhat.com (Postfix) with ESMTPS id E17C54014CE2 for ; Mon, 9 Jan 2023 10:50:10 +0000 (UTC) Received: by calimero.vinschen.de (Postfix, from userid 500) id 647D4A80895; Mon, 9 Jan 2023 11:50:09 +0100 (CET) Date: Mon, 9 Jan 2023 11:50:09 +0100 From: Corinna Vinschen To: newlib@sourceware.org Subject: Re: Adding support for gb2312 and sift-jis to newlib iconv Message-ID: Reply-To: newlib@sourceware.org Mail-Followup-To: newlib@sourceware.org References: MIME-Version: 1.0 In-Reply-To: X-Scanned-By: MIMEDefang 3.1 on 10.11.54.2 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset=utf-8 Content-Disposition: inline X-Spam-Status: No, score=-5.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_NONE,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: On Dec 24 13:54, Anas N. via Newlib wrote: > > Hi newlib team, > In the project I am working there is requirement to covert UCS2 to following 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. GB2312 is incompatible with the portable codeset, i.e. ASCII, and we can't handle that in Cygwin. The underlying code translates GB2312 into codepage 936 which defines GBK. So GB2312 in Cygwin is actually GBK. > Is there a feasibility issue to support gb2312 for embedded > cortex M controllers? Somebody would have to provide code... > I can see Jis implementation in newlib and but is not available for > Cygwin.Is It available for embedded cortex M controllers? The newlib code should support it. Cygwin couldn't due to some incompatibility problem. > What is the difference between jis and shit-jis https://de.wikipedia.org/wiki/Shift_JIS Corinna