This is the mail archive of the cygwin@cygwin.com 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]

Re: What's wrong with russian locale ?


Hi!

Sunday, 23 September, 2001 Alexander Gotlib Alexander.Gotlib@f1003.n5080.z2.fidonet.org wrote:

AG>         I want to set up input and output locale to russian KOI8-R.
AG> Exports 'LANG=ru_RU.KOI8-R' and 'CHARSET=KOI8-R' doesn't works.

first of all, it's not the locale job to correctly display characters
on your console and handle keyboard input. so, the question you're
asking in subject is somewhat misleading.

AG> How can I do it ?  I need it for reading news-letters with SLRN via INN
AG> based on freebsd. INN know only KOI8 charset. :-(

unfortunately, cygwin doesn't provide support for KOI8-R. i suppose
that you load specific font and keyboard layout on freebsd to see and
type cyrillic letters, right? that means that you interface with
console driver there. As cygwin use native windows console facilities,
it doesn't allow you to "load" some keyboard layout or screen font.
It seems that your only option (and i think it's the right way to do
such things) is to convert your news-letters from koi8-r to cp1251 or
cp866 -- encodings natively supported by windows -- ergo supported by
cygwin.

it's probably possible to patch cygwin console-handling code to
perform "koi8-r => cp1251" conversion internally, but nobody's
provided such patch so far.

Egor.            mailto:deo@logos-m.ru ICQ 5165414 FidoNet 2:5020/496.19


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


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