< :前の番号
^ :番号順リスト
> :次の番号
P :前の記事(スレッド移動)
N :次の記事(スレッド移動)
|<:前のスレッド
>|:次のスレッド
^ :返事先
_:自分への返事
>:同じ返事先を持つ記事(前)
<:同じ返事先を持つ記事(後)
---:分割してスレッド表示、再表示
| :分割して(縦)スレッド表示、再表示
~ :スレッドのフレーム消去
.:インデックス
..:インデックスのインデックス
Issue #8677 has been updated by jiayp / glodon.com (茣? 綮九抗).
jonforums (Jon Forums) wrote:
> When require fails, is cmd.exe using codepage 936?
yes
>
> What happens when you `chcp 65001` in cmd.exe but do not encode `$LOAD_PATH` to utf-8?
require do work with my patch for bug https://bugs.ruby-lang.org/issues/8676鐚?and the $LOAD_PATH's encoding is UTF-8.
----------------------------------------
Bug #8677: $LOAD_PATH did not encoded into the "internal encoding"
https://bugs.ruby-lang.org/issues/8677#change-40638
Author: jiayp / glodon.com (茣? 綮九抗)
Status: Open
Priority: Normal
Assignee:
Category: core
Target version:
ruby -v: ruby 2.0.0p277 (2013-07-23 revision 42121) [i386-mingw32]
Backport: 1.9.3: UNKNOWN, 2.0.0: UNKNOWN
=begin
When I use utf-8 as the internal encoding, and I require some file with Chinese name,and the require failure with:
(({E:/code/rubyinstaller-master/sandbox/ruby19_mingw/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:51:in `require': incompatible character encodings: UTF-8 and GBK (Encoding::CompatibilityError)}))
I encode the $LOAD_PATH to utf-8 encoding And the problem gone.
So I think we should encoding the $LOAD_PATH into the internal encoding.
Is it right?
If so,I will try to create a patch.I not,please tell me the right way.
thanks a lot
=end
--
http://bugs.ruby-lang.org/