|
From: Ethan A M. <sf...@us...> - 2011-11-02 22:04:20
|
On Wednesday, November 02, 2011 02:40:47 am Shigeharu TAKENO wrote: > | > | Or the program could use iconv() to convert the symbol into the > | locale setting of the program environment. > > I think both are not need now. I will consider them when the > degree_sign is used at somewhere in fact. I have revised the new code to use iconv() if it is available. I tested under linux by setting the locale to ja_JP.EUC-JP, which causes it to emit the character sequence \241 \353 (octal) which is 0xA1EB (hexidecimal). But I don't have any EUC-JP fonts installed, so I cannot confirm if this is correct. If you build the new code, you can test it by saying set encoding locale show decimal If your locale is EUC-JP and you see a degree sign, then it is working. If you get an error message then there is a problem with recognizing the locale. Ethan |