[#1026] Is this a bug? — Dave Thomas <Dave@...>

18 messages 2000/01/03

[#1084] Infinite loop — Dave Thomas <Dave@...>

17 messages 2000/01/11

[#1104] The value of while... — Dave Thomas <Dave@...>

24 messages 2000/01/11

[ruby-talk:01059] Locales and codesets

From: Dave Thomas <Dave@...>
Date: 2000-01-06 07:35:19 UTC
List: ruby-talk #1059
I'm not an expert on internationalization, so please be patient...

For people in iso-8859-x locales, I suspect we could get Ruby to
support their 8-bit characters in regexps and identifiers by simply
calling 'setlocale(LC_CTYPE, "")' during initialization, and by having 
-Kn be the default KCODE. The 8-bit characters would get passed in to
isalnum(), which should use the locale information

Could anyone with experience comment - is this too simplistic? Does
setlocale() work on Windows?

On a related note-is there an English description of what -K and
$KCODE do anywhere?


Regards

Dave

In This Thread

Prev Next