From: Michal Suchanek Date: 2007-12-18T21:00:14+09:00 Subject: Re: multibyte characters in curses On 18/12/2007, Martin Duerst wrote: > At 03:53 07/12/18, Michal Suchanek wrote: > >The same patch applies to the curses extension in 1.9, and the patched > >hello.rb then works as expected. > >The only reference to setlocale appears to be in a comment in > >time.rb. Perhaps ruby should start to care about locale? > > Ruby definitely will start to care about locales, but calling > setlocale may be the wrong thing to do. It would mean for example > that all calls to strcasecmp in the Ruby code have to be carefully > examined. For many programs, the idea of a single locale for an > application also creates problems. > However, some libraries like ncurses rely on the locale to determine what characters are printable. It makes some sense to do that, it's what the locale was designed for. And unless you set the locale ncurses won't display anything outside of iso8859-1. Thanks Michal