delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2017/09/29/13:53:39

X-Recipient: archive-cygwin AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:mime-version:from:date:message-id:subject:to
:content-type; q=dns; s=default; b=Py1mnqcgCgu1TXz7WD40+2dKrtaPP
S3q+tvXMQYm00Xz0Qjb46x2m/p6WeJC9zlbshH+NE+Q4HJ4pYPk4bhQMZyFxL+GB
DzDJjGrVMJVcPUprFcY/uucY0ymGiH8q/wivTKBo1s2meFLb8LydItoSrLFVnsPj
MynCvjCEnHa3Yg=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:mime-version:from:date:message-id:subject:to
:content-type; s=default; bh=oOxmXEvU244ZOh5a5itGxMcn/Qc=; b=YnF
EJuWXWEGqcl0RcOCdpJs4O97PNJ1gic2gqWFy716AYBf76yYCCSCCCDsAbLkm/pK
X7fN/N+qVgbL/DlY9cFgxyLv5CLzFxlskMzNkim2ir9vj+AWNADpLJEpJd+tjdgn
qs3hOqQBLSYaKkLMulPkFPn6zH3re+SLO9sr2WjQ=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=3.0 required=5.0 tests=AWL,BAYES_00,HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=no version=3.3.2 spammy=launches, H*c:alternative, hiragana, ernie
X-HELO: mail-pf0-f173.google.com
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=u4vcE8OSjkmuDCNjR+dwuP88jslblQEyvVH2imDwDeg=; b=VuWqIt0sKA2YlaqEbWUijF+zC6vEVxg7+kRfHRoumLvtsls7AV7ldf8QmFEvbgqNTZ hj7fUB3q6CJJtDXaZr19HyKtHlU6oD6gSK41mwR8jojxOYZHhoUAs9/fOr2wp1mWM+H/ 9HfiL+nl9bHSEYjGmo8fHv6SVo8Nog41q+CUrY8lF2WjHa7owOUO8LnYvIAL9OKER0j8 nW5VZlErRJgxNzBnmuA3zaFlpY2EXGdqiwWHJN7GDuLDMSg32qNaHlTZq3mpGAswJzCv /anchqsoecBTUSRs8Ol0CQ8PmoEIR+rD96+hqyxUo+amFTFZU86TTYgAQcoBK4QITwqj 862Q==
X-Gm-Message-State: AHPjjUh5BZxIMEMIri9g3rMH+S71L/abgkzCmCfYXLCllKmB1tNeTbTp mexKEXWirGjqhediRmM3stqnKA1Bi7vrybybBqEPu3zE6q4=
X-Google-Smtp-Source: AOwi7QBOwTaZ/xS+kGfiwbkd3iuqJGovH+rnfGsYSqsUrYGOibAoi3WKyfUIWHx8zfOVkQ3SzdCjDKH07WqTM/6jorE=
X-Received: by 10.98.69.137 with SMTP id n9mr8684041pfi.164.1506707597991; Fri, 29 Sep 2017 10:53:17 -0700 (PDT)
MIME-Version: 1.0
From: Ernie Coskrey <Ernie DOT Coskrey AT us DOT sios DOT com>
Date: Fri, 29 Sep 2017 13:53:17 -0400
Message-ID: <CAK5twL04yq=AiP+1-m=AUZyRFw5X+A_ZcqgaFe_rZ66i4XvpnQ@mail.gmail.com>
Subject: Internationalization issue - string processing
To: Cygwin <cygwin AT cygwin DOT com>

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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019