delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2009/08/08/16:23:33

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=0.9 required=5.0 tests=AWL,BAYES_00
X-Spam-Check-By: sourceware.org
From: "Tony Lewis" <tlewis AT exelana DOT com>
To: <cygwin AT cygwin DOT com>
Subject: converting to wide characters
Date: Sat, 8 Aug 2009 13:23:10 -0700
Message-ID: <061d01ca1866$0f881db0$2e985910$@com>
MIME-Version: 1.0
X-ACL-Warn: {
X-IsSubscribed: yes
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

According to the documentation, passing an empty string to iconv denotes
locale dependent character encoding. This leads me to conclude that by
default on cygwin:

cd = iconv_open("UTF-16LE", "");

should produce the same encodings as:

cd = iconv_open("UTF-16LE", "ISO-8859-1");

but it doesn't for characters in the range 0x80 to 0x9f. Is there a way to
set my locale within cygwin so that "" means "ISO-8859-1" to iconv_open?


--
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