public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: Ernie Coskrey <Ernie.Coskrey@us.sios.com>
To: Cygwin <cygwin@cygwin.com>
Subject: Internationalization issue - string processing
Date: Fri, 29 Sep 2017 20:16:00 -0000	[thread overview]
Message-ID: <CAK5twL04yq=AiP+1-m=AUZyRFw5X+A_ZcqgaFe_rZ66i4XvpnQ@mail.gmail.com> (raw)

We have a Java program that launches Cygwin bash processes which in turn
run a script.  The LC_ALL variable is set to "ja_JP".  The script will
execute processes using Unicode strings that are specified like this:

    "\u3053"

(for the Hiragana letter Ko).

For some reason, when bash calls another program and passes the string
above to it, the string is being converted to "0x3f 0x3f".

The script that is being run contains the following command:

    perl dump.pl "\u3053"

The perl script just prints out the hex values of its arguments, and it
displays:

??
3f 3f


The behavior is not reproducible if we run bash from a CMD prompt.  I know
this is pretty open-ended but are there any ideas as to what might be
causing this sort of localization issue?

Ernie Coskrey
SIOS Technology Corp.

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

                 reply	other threads:[~2017-09-29 17:53 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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='CAK5twL04yq=AiP+1-m=AUZyRFw5X+A_ZcqgaFe_rZ66i4XvpnQ@mail.gmail.com' \
    --to=ernie.coskrey@us.sios.com \
    --cc=cygwin@cygwin.com \
    /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).