From: "NARUSE, Yui" Date: 2008-01-11T21:26:32+09:00 Subject: [ruby-dev:33034] Re: Binary String 成瀬です。 Yukihiro Matsumoto wrote: > まつもと ゆきひろです > > In message "Re: [ruby-dev:33031] Re: Binary String" > on Fri, 11 Jan 2008 19:42:23 +0900, "NARUSE, Yui" writes: > > |> ただ、default_externalがASCII-8BITになってしまうケースがどう > |> してもありますね。その辺を心配しておられるのでしょうか。 > | > |むしろ default_external の問題だと捉えるべきなのですかね。ASCII-8BIT で > |なく locale_charset で dummy encoding をセットした方がいいとか。それも微 > |妙だなぁ。 > > その方向で対応できるなら、そちらが理想だと思います。ところで > > LANG="C" > > のdefault_externalはUS-ASCIIなんですかねえ。 ううん、どうなんだろうと迷ってSUSv3を見たところ、“The tables in Locale Definition describe the characteristics and behavior of the POSIX locale for data consisting entirely of characters from the portable character set and the control character set. For other characters, the behavior is unspecified.”とのこと。つまり、ASCII + 未定義 8BIT なので、まさに ASCII-8BIT のことな気がします。 ちゃんとセットしてよ、という方向ですかねぇ。 -- NARUSE, Yui DBDB A476 FDBD 9450 02CD 0EFC BCE3 C388 472E C1EA