git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH] t8005: Nobody writes Russian in shift_jis

From
Junio C Hamano <gitster@pobox.com>
Date
Jun 21, 2009, 10:07 UTC
Message-ID
<7vfxdtsxvq.fsf@alter.siamese.dyndns.org>
In-Reply-To
<dfYgk9RFOucTCHxtLQsMXejAeKlGJg-R15sTW_RFemcrjsjqoYD0eg@cipher.nrlssc.navy.mil>
Brandon Casey <casey@nrlssc.navy.mil> writes:
> No change on my systems.  I can convert eucJP and SJIS from/to UTF-8, but
> I cannot convert between eucJP and SJIS.

I wonder what's different, but I suspect having lang-support-japanese package on the box perhaps is helping me.

> So tests 2 and 3 still fail for
> me.  Nothing was broken though.  The fourth test still passes which converts
> each of the encodings to UTF-8.  So this patch is fine with me.

Yikes, so it does not really help by itself. Taken together with Alexander's comment that he did manage to send Russian in Shift_JIS (I somehow do not think Alexander used Solaris for that, though; neither have I any clue if the receiving end grokked that), perhaps the patch is useless.

Even though I do not think if any Russian writes in KOI8-R and converts to Shift_JIS on purpose, converting eucJP directly to SJIS is something Japanese people who are on UNIX do quite often, or at least used to before everybody moved to UTF-8.

Perhaps we should instead optionally help platform's iconv(3), when it cannot convert A to B directly, by pivoting the conversion on UTF-8 (i.e. A -> UTF-8 -> B)? That would probably help the real world use cases while fixing the issue with this test script.

Previous: Brandon Casey
Message 4 of 4 in “t8005: Nobody writes Russian in shift_jis”
  1. t8005: Nobody writes Russian in shift_jisJunio C Hamano, Jun 19, 2009
  2. Alexander GavrilovJun 19, 2009
  3. Brandon CaseyJun 19, 2009
  4. Junio C HamanoJun 21, 2009

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.