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" To: Subject: converting to wide characters Date: Sat, 8 Aug 2009 13:23:10 -0700 Message-ID: <061d01ca1866$0f881db0$2e985910$@com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-ACL-Warn: { X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , 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