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 Update to ruby/spec@d419e74 2019-12-27 16:46:08 +01:00
class Improve error message when subclassing non-Class 2020-11-13 07:06:13 -08:00
comparable Update to ruby/spec@ec84479 2020-03-28 00:22:51 +01:00
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 Update to ruby/spec@032ee74 2020-05-03 12:28:29 +02:00
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 Use rb_warn_deprecated for File.exists? and Dir.exists? 2020-04-06 21:43:32 +09:00
float Update to ruby/spec@335eb9b 2020-08-28 20:26:02 +02:00
gc Update to ruby/spec@032ee74 2020-05-03 12:28:29 +02:00
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 Update to ruby/spec@032ee74 2020-05-03 12:28:29 +02:00
math Update to ruby/spec@032ee74 2020-05-03 12:28:29 +02:00
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 Update to ruby/spec@032ee74 2020-05-03 12:28:29 +02:00
sizedqueue
string Update to ruby/spec@ac878ad 2020-11-27 14:55:31 +01:00
struct Drop support for ruby 2.4 from ruby/spec 2020-04-01 15:36:20 +09:00
symbol Update to ruby/spec@e829fb0 2020-09-17 11:42:26 +02:00
systemexit Update to ruby/spec@032ee74 2020-05-03 12:28:29 +02:00
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