From: matz@... (Yukihiro Matsumoto) Date: 2002-03-04T08:03:36+09:00 Subject: Re: ruby-m17n Hi, In message "ruby-m17n" on 02/03/04, Alexander Danilov writes: |I make patch for ruby-m17n to support my encoding(koi8-r russian). |Now I want to test my patch, but I don't know how. |Can someone show me an example of m17n api? I'm not sure what do you mean by "m17n api". If koi8-r is a single byte encoding, checks should be: * String#toupper * String#tolower * regex match with /i * regex \w should match word characters For multibyte encodings, additional checks are: * String#size returns number of characters * String#[n] returns codepoint of the nth character * str.split(//) splits into single character strings. * regex should match multibye strings * printf "%10s" should occupy 10 terminal columns. * and other string operations should be "multibyte aware". matz.