From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20097 invoked by alias); 29 Oct 2009 14:37:38 -0000 Received: (qmail 20086 invoked by uid 22791); 29 Oct 2009 14:37:38 -0000 X-SWARE-Spam-Status: No, hits=-1.6 required=5.0 tests=AWL,BAYES_00,SARE_SUB_ENC_UTF8,SPF_NEUTRAL X-Spam-Check-By: sourceware.org Received: from granite1.mail.cornell.edu (HELO authusersmtp.mail.cornell.edu) (128.253.83.141) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 29 Oct 2009 14:37:34 +0000 Received: from [128.84.234.191] (markov.math.cornell.edu [128.84.234.191]) (authenticated bits=0) by authusersmtp.mail.cornell.edu (8.13.1/8.12.10) with ESMTP id n9TEbVha007975 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT) for ; Thu, 29 Oct 2009 10:37:31 -0400 (EDT) Message-ID: <4AE9A8AD.2030702@cornell.edu> Date: Thu, 29 Oct 2009 14:37:00 -0000 From: Ken Brown User-Agent: Thunderbird 2.0.0.23 (Windows/20090812) MIME-Version: 1.0 To: cygwin-xfree@cygwin.com Subject: Re: X11R7.5 and C.UTF-8 References: <4AE8539E.9080004@cornell.edu> <4AE8D942.8020806@dronecode.org.uk> <416096c60910281707t3249dfb7tc6d0caf0e57ba626@mail.gmail.com> <4AE99BAD.6060303@dronecode.org.uk> In-Reply-To: <4AE99BAD.6060303@dronecode.org.uk> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Mailing-List: contact cygwin-xfree-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-xfree-owner@cygwin.com Reply-To: cygwin-xfree@cygwin.com Mail-Followup-To: cygwin-xfree@cygwin.com X-SW-Source: 2009-10/txt/msg00130.txt.bz2 On 10/29/2009 9:42 AM, Jon TURNEY wrote: > On 29/10/2009 00:07, Andy Koppe wrote: >> 2009/10/28 Jon TURNEY: >>> On 28/10/2009 14:22, Ken Brown wrote: >>>> >>>> X11R7.5 doesn't like the (default) locale C.UTF-8. If I start the >>>> server with 'LANG=C.UTF-8 /usr/bin/startxwin.bat', the server exits >>>> immediately, and the log has complaints about the locale. If I instead >>>> use 'LANG=en_US.UTF-8', there's no problem. I've attached both logs and >>>> cygcheck output. >>> >>> Thanks for the bug report. >>> >>> I'm afraid I'm not immediately able to reproduce this, though, using the >>> command you give. >> >> You might have LC_ALL or LC_CTYPE set, which would override LANG. Or >> perhaps startxwin.bat overrides things somewhere along the way? >> >> To avoid all that, you could try invoking Xwin directly with LC_ALL >> set, which is top dog among locale variables. >> >> LC_ALL=C.UTF-8 xwin -multiwindow& >> >> It fails with en.UTF-8 too (which also is a legal Cygwin locale), but >> it works with en_US.UTF-8. > > Nope, I don't have LC_ALL or LC_CTYPE set > > This is pretty curious, since all XSupportsLocale() should be doing > effectively is checking if setlocale (LC_ALL, NULL) returns a name it > understands. > > Perhaps you can try the attached small test program. $ LANG=C.UTF-8 ./Xlocale.exe Setting locale from LANG succeeded Locale is C.UTF-8 XSupportsLocale returned false $ LANG=en_US.UTF-8 ./Xlocale.exe Setting locale from LANG succeeded Locale is en_US.UTF-8 XSupportsLocale returned true $ unset LANG $ ./Xlocale.exe Setting locale from LANG succeeded Locale is C XSupportsLocale returned true $ uname -a CYGWIN_NT-5.1 markov 1.7.0(0.214/5/3) 2009-10-03 14:33 i686 Cygwin Ken -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://x.cygwin.com/docs/ FAQ: http://x.cygwin.com/docs/faq/