[ruby-cvs:60049] nobu:r52896 (trunk): hash.c: env encoding fallback on Windows
nobu at ruby-lang.org
nobu at ruby-lang.org
Sat Dec 5 17:26:27 JST 2015
nobu 2015-12-05 17:26:26 +0900 (Sat, 05 Dec 2015)
New Revision: 52896
http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=52896
Log:
hash.c: env encoding fallback on Windows
* hash.c (env_str_new, env_path_str_new): make default string
UTF-8 for the case conversion is not possible. [Bug #8822]
* hash.c (get_env_cstr): convert non-ASCII string to UTF-8 string.
* hash.c (ruby_setenv): use wide char version to put environment
variable to deal with non-ASCII value.
Modified files:
trunk/ChangeLog
trunk/hash.c
trunk/test/ruby/test_env.rb
More information about the ruby-cvs
mailing list