This is the mail archive of the cygwin mailing list for the Cygwin project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Cygwin and locale

Ulrich Herrmann <uherr <at>> 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, 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:
Problem reports:

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]