delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2006/03/09/14:05:33

X-Spam-Check-By: sourceware.org
To: cygwin AT cygwin DOT com
From: Eric Blake <ebb9 AT byu DOT net>
Subject: Re: Cygwin and locale
Date: Thu, 9 Mar 2006 19:03:34 +0000 (UTC)
Lines: 34
Message-ID: <loom.20060309T195538-920@post.gmane.org>
References: <op DOT s5152n0b1zjec7 AT nehwon>
Mime-Version: 1.0
User-Agent: Loom/3.14 (http://gmane.org/)
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
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

Ulrich Herrmann <uherr <at> gmx.de> writes:

> I recently switched to my favourite shell the tcsh. I encountered the  
> problem that it didn't display non ascii characters correctly. 

There are more aspects to displaying non-ascii characters than the
(lack of) locale support.  For example, bash is able to display
non-ascii characters, via the directions in
http://cygwin.com/faq/faq-nochunks.html#faq.using.unicode, without
true locale support.

> After  
> diving a little bit deeper into it I figured that Cygwin supports only the  
> minimal "C" locale and not any other locales like for the german language.

Correct - no one has ever contributed locale code to newlib, which is
the C library underlying cygwin.  About the only locale support you
get is through gettext, which only translates messages and does nothing
in the way of currency, time, collation order, or other locale aspects.

> 
> Why is the locale support not in Cygwin? Are there big obstacles to  
> porting it to cygwin?

Lack of volunteer time.  Perhaps you want to take a stab at it?  You
would be very appreciated on this list!  But it really is a HUGE
undertaking, as there are lots of details to get right (and for
newlib to accept your patches, it would have to be an optional
addon that can be compiled out for embedded systems that use
newlib for its lightweight capabilities).

-- 
Eric Blake



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

- Raw text -


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