1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
ruby--ruby/include/ruby
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
..
backward
internal Removed deprecated Time#succ 2020-12-07 18:38:59 +09:00
assert.h
backward.h
debug.h
defines.h
encoding.h
intern.h
io.h
memory_view.h Revert "memory_view.c: Add rb_memory_view_extract_item_members" 2020-12-07 00:38:19 +09:00
missing.h
onigmo.h
oniguruma.h
ractor.h ractor local storage C-API 2020-12-01 09:39:30 +09:00
random.h Use opaque struct pointer than void 2020-11-27 21:38:08 +09:00
re.h
regex.h
ruby.h
st.h
subst.h
thread.h
thread_native.h fix public interface 2020-11-18 03:52:41 +09:00
util.h
version.h
vm.h
win32.h Windows: Read ENV names and values as UTF-8 encoded Strings (#3818) 2020-12-08 02:00:39 +09:00