1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
ruby--ruby/test
Lars Kanis ca76337a00
Windows: Read ENV names and values as UTF-8 encoded Strings (#3818)
* Windows: Read ENV names and values as UTF-8 encoded Strings

Implements issue #12650: fix https://bugs.ruby-lang.org/issues/12650

This also removes the special encoding for ENV['PATH'] and some
complexity in the code that is unnecessary now.

* Windows: Improve readablity of getenv() encoding

getenv() did use the expected codepage as an implicit parameter of the macro.
This is mis-leading since include/ruby/win32.h has a different definition.
Using the "cp" variable explicit (like the other function calls) makes it
more readable and consistent.

* Windows: Change external C-API macros getenv() and execv() to use UTF-8

They used to process and return strings with locale encoding,
but since all ruby-internal spawn and environment functions use UTF-8,
it makes sense to change the C-API equally.
2020-12-08 02:00:39 +09:00
..
-ext- Guard all accesses to RubyVM::MJIT with defined?(RubyVM::MJIT) && 2020-12-04 16:45:54 +01:00
base64
benchmark
bigdecimal bidecimal: improve tests' independence (#3297) 2020-07-12 17:30:29 +09:00
cgi
coverage test/coverage/test_coverage.rb: Add a test for [Bug #16967] 2020-06-20 09:28:03 +09:00
csv [ruby/csv] Add support for \r\n with skip_lines: /...$/ again 2020-11-24 09:33:55 +09:00
date [ruby/date] Fix cannot load complex into simple error when loading marshal dump (Fixes #20) 2020-06-20 18:35:03 +09:00
dbm
did_you_mean Revert "Fixed typo" 2020-10-27 23:26:38 +09:00
digest
drb Guard all accesses to RubyVM::MJIT with defined?(RubyVM::MJIT) && 2020-12-04 16:45:54 +01:00
dtrace
erb Fixup 3292f4d965 2020-08-21 20:40:26 +09:00
etc
excludes
fiber Fix TestFiberMutex#test_condition_variable assertion 2020-11-08 16:49:33 +01:00
fiddle [ruby/fiddle] test: suppress shadowing outer local variable warning 2020-11-18 09:05:13 +09:00
fileutils Make the test suite pass on real Android/Termux environment 2020-10-12 21:26:05 +09:00
gdbm [ruby/gdbm] Workaround for GitHub Actions 2020-06-09 20:54:52 +09:00
io [ruby/io-console] Fix timeout type error (#18) 2020-10-11 02:00:24 +09:00
irb [ruby/irb] support more body argument for oneliner method definition 2020-11-22 21:00:11 +09:00
json SortedSet was removed at a3db08d7b6 2020-12-04 19:36:12 +09:00
lib Guard all accesses to RubyVM::MJIT with defined?(RubyVM::MJIT) && 2020-12-04 16:45:54 +01:00
logger [ruby/logger] Consider cygwin a Windows platform 2020-12-04 20:16:00 +09:00
matrix [ruby/matrix] Optimize ** 2020-12-05 00:56:58 -05:00
mkmf Make the mkmf methods private in the global [Bug #16896] 2020-07-13 18:44:22 +09:00
monitor Fix MonitorMixin when the super's initialize has kwargs 2020-07-17 16:37:18 -07:00
net Guard all accesses to RubyVM::MJIT with defined?(RubyVM::MJIT) && 2020-12-04 16:45:54 +01:00
nkf
objspace Fix ObjectSpace.dump(obj, output: :stdout) 2020-10-03 00:00:01 +09:00
open-uri Remove the deprecated override of Kernel#open in open-uri 2020-08-16 07:41:40 -07:00
openssl Revert the related commits about Tempfile.open change. 2020-09-09 21:10:48 +09:00
optparse
ostruct [lib/ostruct] Fix Marshal loading 2020-10-06 17:11:08 -04:00
pathname Make the test suite pass on real Android/Termux environment 2020-10-12 21:26:05 +09:00
psych [ruby/psych] Forward keyword arguments in load_file and load_stream 2020-09-25 13:11:33 +09:00
racc [ruby/racc] skip the failing test with JRuby 2020-11-10 21:21:07 +09:00
rdoc [ruby/rdoc] update all files if any file is newer 2020-09-18 14:57:58 +09:00
readline Suppress bell during the test 2020-07-18 19:33:11 +09:00
reline [ruby/reline] Editing to initial content is not just cursor moving 2020-12-08 00:08:41 +09:00
resolv fe80 should be case insensitive too 2020-11-09 16:16:30 +09:00
rinda Guard all accesses to RubyVM::MJIT with defined?(RubyVM::MJIT) && 2020-12-04 16:45:54 +01:00
ripper Store all kinds of syntax errors [Bug #17345] 2020-11-26 20:14:34 +09:00
ruby Windows: Read ENV names and values as UTF-8 encoded Strings (#3818) 2020-12-08 02:00:39 +09:00
rubygems Merge rubygems-3.2.0.rc.2 2020-10-15 14:12:02 +09:00
socket Revert getaddrinfo_a() 2020-12-07 13:33:53 +09:00
stringio [stringio] fix stringio codepoint enumerator off by one error 2020-08-27 23:41:22 +09:00
strscan
syslog
uri
webrick [ruby/webrick] Allow empty POST and PUT requests without content length 2020-11-13 11:35:10 +09:00
win32ole
yaml
zlib [ruby/zlib] Add Zlib::Inflate#inflate :buffer keyword argument 2020-12-04 19:12:32 +09:00
runner.rb
test_abbrev.rb
test_delegate.rb Add instance_methods to class generated by DelegateClass 2020-07-09 15:01:10 -07:00
test_extlibs.rb Removed win32api 2020-11-11 09:27:36 +09:00
test_find.rb
test_forwardable.rb
test_ipaddr.rb
test_mutex_m.rb [ruby/mutex_m] Fix Mutex_m#initialize when the super's initialize has kwargs 2020-12-04 19:53:16 +09:00
test_observer.rb
test_open3.rb [open3] only close streams if a block is passed 2020-06-18 10:00:20 -07:00
test_pp.rb
test_prettyprint.rb
test_prime.rb
test_pstore.rb
test_pty.rb
test_rbconfig.rb
test_securerandom.rb Use build_message on test_securerandom.rb (#3543) 2020-09-16 07:45:01 +09:00
test_set.rb [ruby/set] Add Set#<=> 2020-12-04 19:24:22 +09:00
test_shellwords.rb
test_singleton.rb
test_syslog.rb
test_tempfile.rb
test_time.rb
test_timeout.rb
test_tmpdir.rb [ruby/tmpdir] Warn when environment variables skipped (fixes #2) 2020-09-14 18:22:37 +09:00
test_tracer.rb
test_tsort.rb
test_unicode_normalize.rb
test_weakref.rb