[#109095] [Ruby master Misc#18888] Migrate ruby-lang.org mail services to Google Domains and Google Workspace — "shugo (Shugo Maeda)" <noreply@...>
Issue #18888 has been reported by shugo (Shugo Maeda).
16 messages
2022/06/30
[ruby-core:108799] [Ruby master Bug#8677] $LOAD_PATH did not encoded into the "internal encoding"
From:
"mame (Yusuke Endoh)" <noreply@...>
Date:
2022-06-08 03:35:40 UTC
List:
ruby-core #108799
Issue #8677 has been updated by mame (Yusuke Endoh).
Backport deleted (1.9.3: UNKNOWN, 2.0.0: UNKNOWN)
Status changed from Open to Closed
I'm unsure the precise procedure to reproduce the issue, but I couldn't repro it in any way. Maybe fixed by #18191? Feel free to ping me if it is not fixed yet.
----------------------------------------
Bug #8677: $LOAD_PATH did not encoded into the "internal encoding"
https://bugs.ruby-lang.org/issues/8677#change-97869
* Author: jiayp@glodon.com (雍セ 蟒カ蟷ウ)
* Status: Closed
* Priority: Normal
* ruby -v: ruby 2.0.0p277 (2013-07-23 revision 42121) [i386-mingw32]
----------------------------------------
=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
---Files--------------------------------
loadpath.patch (552 Bytes)
--
https://bugs.ruby-lang.org/
Unsubscribe: <mailto:ruby-core-request@ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>