Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm 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 X-Authentication-Warning: slinky.cs.nyu.edu: pechtcha owned process doing -bs Date: Wed, 11 Feb 2004 11:44:35 -0500 (EST) From: Igor Pechtchanski Reply-To: cygwin AT cygwin DOT com To: Alexander Shopov cc: cygwin AT cygwin DOT com Subject: Re: Another NON trivial Cyrillic question In-Reply-To: <402A5871.7070508@contact.bg> Message-ID: References: <402A0DA2 DOT 6030508 AT contact DOT bg> <402A3459 DOT 3000405 AT contact DOT bg> <402A5871 DOT 7070508 AT contact DOT bg> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Scanned-By: MIMEDefang 2.39 Umm, yes, character set/encoding support in Cygwin is minimal. If you look at the fileutils sources, though, there is some code that does presumably locale-specific quoting. I basically glanced at it, but if you wanted to improve the behavior of Cygwin tools, that's the place I would start from. Igor P.S. I believe there are precompiled locales as part of the gettext package. On Wed, 11 Feb 2004, Alexander Shopov wrote: > Well, this is not entirely true. > While programs do lookup the LANG envvar, they do not recode properly. > For example when I do: > export LANG=bg_BG.CP1251 > or > export LANG=bg_BG.UTF-8 > > wget uses the bulgarian po-file translation, but it is not recoded > properly and is just a Latin-1 dump of an UTF-8 file (the wget.mo is > compiled from an properly encoded UTF-8 po file) > In both cases: > I get: > > $ touch ????? > $ rm -v ????? > removing `\352\350\360\350\353' > > I have installed > libgettextpo0 - 0.12.1-3 > libiconv2 - 1.9.1-3 > libintl - 0.10.38.-3 > libintl1 - 0.10.40-1 > libintl2 - 0.12.1-3 > > locale database is part of libc. Where do I look for it in Cygwin? > I have the sources for the Bulgarian locale. I could try to compile it. > While under GNU/Linux I prefer UTF-8 locales, I have to use a CP1251 one > under windows. > > Best regards: > al_shopov > > >>What does it mean to "have your locale settings straight" in cygwin ? > >>Is it possible to make cygwin respect Windows locale settings (it > >>seems that they don't affect cygwin out of the box) ? Or may be > >>one should install Unix-like locale database and use variables like > >>LANG to choose locale ? > > > > The latter. > > Igor -- http://cs.nyu.edu/~pechtcha/ |\ _,,,---,,_ pechtcha AT cs DOT nyu DOT edu ZZZzz /,`.-'`' -. ;-;;,_ igor AT watson DOT ibm DOT com |,4- ) )-,_. ,\ ( `'-' Igor Pechtchanski, Ph.D. '---''(_/--' `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-. Meow! "I have since come to realize that being between your mentor and his route to the bathroom is a major career booster." -- Patrick Naughton -- 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/