From: Yukihiro Matsumoto Date: 2008-10-19T00:32:22+09:00 Subject: [ruby-core:19379] Re: Constant names in 1.9 Hi, In message "Re: [ruby-core:19378] Constant names in 1.9" on Sun, 19 Oct 2008 00:16:27 +0900, Dave Thomas writes: |When Ruby makes the tIDENTIFIER/tCONSTANT test, it looks to see if the |first letter is upper case using | | ISUPPER(tok[0]) | |which eventually calls | | ctype_test(c, ONIGENC_CTYPE_UPPER); And its definition is (rb_isascii(c) && ONIGENC_IS_ASCII_CODE_CTYPE((c), ONIGENC_CTYPE_UPPER)) Basically Ruby's case sensitivity (except for regular expressions) works on ASCII region only, mostly because we've followed Tim Bray's advice at the past RubyConf (2006?). I was told that case sensitivity is sometimes locale dependent. I don't think the semantics of a program should depend on locale. Tell me if I'm wrong. matz.