1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
ruby--ruby/spec/ruby/core
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
..
argf 2.8 -> 3.0 in specs 2020-12-04 16:32:14 +01:00
array Update to ruby/spec@b0b7f53 2020-11-13 13:17:24 +01:00
basicobject
binding 2.8 -> 3.0 in specs 2020-09-15 21:56:00 +02:00
builtin_constants
class Improve error message when subclassing non-Class 2020-11-13 07:06:13 -08:00
comparable
complex Update to ruby/spec@e829fb0 2020-09-17 11:42:26 +02:00
data Update to ruby/spec@bfd843a 2020-09-30 13:43:19 +02:00
dir Update to ruby/spec@ac878ad 2020-11-27 14:55:31 +01:00
encoding Update to ruby/spec@4f59d86 2020-10-24 15:53:53 +02:00
enumerable Update to ruby/spec@4f59d86 2020-10-24 15:53:53 +02:00
enumerator numeric.c, range.c: prohibit zero step 2020-10-23 15:26:51 +09:00
env Windows: Read ENV names and values as UTF-8 encoded Strings (#3818) 2020-12-08 02:00:39 +09:00
exception Update to ruby/spec@b0b7f53 2020-11-13 13:17:24 +01:00
false
fiber Update to ruby/spec@b0b7f53 2020-11-13 13:17:24 +01:00
file Update to ruby/spec@b0b7f53 2020-11-13 13:17:24 +01:00
filetest
float Update to ruby/spec@335eb9b 2020-08-28 20:26:02 +02:00
gc
hash Update the version guard to 3.0 2020-12-07 18:35:59 +09:00
integer Update to ruby/spec@b0b7f53 2020-11-13 13:17:24 +01:00
io 2.8 -> 3.0 in specs 2020-12-04 16:32:14 +01:00
kernel Update to ruby/spec@c4170a3 2020-11-27 15:47:17 +01:00
main
marshal Update to ruby/spec@bfd843a 2020-09-30 13:43:19 +02:00
matchdata
math
method Update to ruby/spec@4f59d86 2020-10-24 15:53:53 +02:00
module Update to ruby/spec@b0b7f53 2020-11-13 13:17:24 +01:00
mutex 2.8 -> 3.0 in specs 2020-09-15 21:56:00 +02:00
nil Update to ruby/spec@e829fb0 2020-09-17 11:42:26 +02:00
numeric numeric.c, range.c: prohibit zero step 2020-10-23 15:26:51 +09:00
objectspace 2.8 -> 3.0 in specs 2020-12-04 16:32:14 +01:00
proc Update to ruby/spec@ac878ad 2020-11-27 14:55:31 +01:00
process Update to ruby/spec@b0b7f53 2020-11-13 13:17:24 +01:00
queue
random Clarify spec and change of behavior for Random::DEFAULT 2020-11-27 10:29:39 +01:00
range 2.8 -> 3.0 in specs 2020-12-04 16:32:14 +01:00
rational
regexp 2.8 -> 3.0 in specs 2020-09-15 21:56:00 +02:00
signal
sizedqueue
string Update to ruby/spec@ac878ad 2020-11-27 14:55:31 +01:00
struct
symbol Update to ruby/spec@e829fb0 2020-09-17 11:42:26 +02:00
systemexit
thread Update to ruby/spec@b0b7f53 2020-11-13 13:17:24 +01:00
threadgroup
time Removed deprecated Time#succ 2020-12-07 18:38:59 +09:00
tracepoint 2.8 -> 3.0 in specs 2020-12-04 16:32:14 +01:00
true Update to ruby/spec@e829fb0 2020-09-17 11:42:26 +02:00
unboundmethod Update to ruby/spec@4f59d86 2020-10-24 15:53:53 +02:00
warning Fix Rubyspec (ruby-2.7) failures 2020-11-01 17:37:03 +09:00