public inbox for newlib@sourceware.org
 help / color / mirror / Atom feed
From: Corinna Vinschen <vinschen@redhat.com>
To: newlib@sourceware.org
Subject: Re: Adding support for gb2312 and sift-jis  to newlib iconv
Date: Mon, 9 Jan 2023 11:50:09 +0100	[thread overview]
Message-ID: <Y7vxYap9WM2cV8KX@calimero.vinschen.de> (raw)
In-Reply-To: <PNXPR01MB69155BF65AAD4CAD7FCF7A0D85EE9@PNXPR01MB6915.INDPRD01.PROD.OUTLOOK.COM>

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


  reply	other threads:[~2023-01-09 10:50 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-12-24 13:54 Anas N.
2023-01-09 10:50 ` Corinna Vinschen [this message]
2023-04-15  5:06 ` Anas N.

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=Y7vxYap9WM2cV8KX@calimero.vinschen.de \
    --to=vinschen@redhat.com \
    --cc=newlib@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).