From: Yukihiro Matsumoto Date: 2010-03-14T06:57:28+09:00 Subject: [ruby-dev:40630] Re: [bug:trunk] Re: [ruby-cvs:34124] Ruby:r26909 (trunk): * file.c (file_expand_path): should not just copy the encoding まつもと ゆきひろです In message "Re: [ruby-dev:40629] [bug:trunk] Re: [ruby-cvs:34124] Ruby:r26909 (trunk): * file.c (file_expand_path): should not just copy the encoding" on Sun, 14 Mar 2010 01:22:28 +0900, "U.Nakamura" writes: |> * file.c (EXPAND_PATH_BUFFER): set filesystem_encoding, not |> usascii for path buffer. | |encoding libraryのロード前に使われうる処理の中でfilesystem_encoding |を使うと、filesystem_encodingが非組み込みencodingである場合、 | | encodingをロードなくちゃいけないな | ↓ | encoding libraryのパス名を決定しよう | ↓ | パス名にencodingを付与しないといけないな | ↓ | filesystem encodingはまだロードされてないや | ↓ | 振り出しに戻る | |が無限に繰り返されて死にます。 |(つまり何もできない) なるほど。プラットフォームによっては問題が起きそうだと思った のですが、やっぱりそうだったのですね。この部分は戻しておきま す。