[#99115] [Ruby master Bug#17023] How to prevent String memory to be relocated in ruby-ffi — larskanis@...
Issue #17023 has been reported by larskanis (Lars Kanis).
22 messages
2020/07/10
[#99375] [Ruby master Feature#17055] Allow suppressing uninitialized instance variable and method redefined verbose mode warnings — merch-redmine@...
Issue #17055 has been reported by jeremyevans0 (Jeremy Evans).
29 messages
2020/07/28
[#101207] [Ruby master Feature#17055] Allow suppressing uninitialized instance variable and method redefined verbose mode warnings
— merch-redmine@...
2020/12/02
Issue #17055 has been updated by jeremyevans0 (Jeremy Evans).
[#101231] Re: [Ruby master Feature#17055] Allow suppressing uninitialized instance variable and method redefined verbose mode warnings
— Austin Ziegler <halostatue@...>
2020/12/03
What does this mean?
[ruby-core:99322] [Ruby master Bug#16798] ENV.replace on Windows with a variable name not respecting case will clear it
From:
nagachika00@...
Date:
2020-07-25 03:00:54 UTC
List:
ruby-core #99322
Issue #16798 has been updated by nagachika (Tomoyuki Chikanaga).
Backport changed from 2.5: REQUIRED, 2.6: REQUIRED, 2.7: REQUIRED to 2.5: R=
EQUIRED, 2.6: REQUIRED, 2.7: DONE
ruby_2_7 89f06ce8b8a887f12b53ea190d79a58e98b59008 merged revision(s) 08529a=
61153e5c40f57a65272211357511d6e6db.
----------------------------------------
Bug #16798: ENV.replace on Windows with a variable name not respecting case=
will clear it
https://bugs.ruby-lang.org/issues/16798#change-86717
* Author: deivid (David Rodr=EDguez)
* Status: Closed
* Priority: Normal
* Backport: 2.5: REQUIRED, 2.6: REQUIRED, 2.7: DONE
----------------------------------------
On Windows, environment variable names are case insensitive:
```
PS C:\Users\deivi> ruby -e "puts ENV['Path']; ENV['PATH'] =3D 'foo'; puts E=
NV['Path']" =
=
C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Window=
s\System32\WindowsPowerShell\v1.0\;C:\Windows\System32\OpenSSH\;C:\Program =
Files\Git\cmd;C:\Program Files\Git\mingw64\bin;C:\Program Files\Git\usr\bin=
;C:\Ruby26-x64\bin;C:\Ruby25-x64\bin;C:\Windows\system32;C:\Windows;C:\Wind=
ows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Windows\Sy=
stem32\OpenSSH\;C:\Program Files\Git\cmd;C:\Program Files\Git\mingw64\bin;C=
:\Program Files\Git\usr\bin;C:\Windows\system32;C:\Windows;C:\Windows\Syste=
m32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Windows\System32\Op=
enSSH\;C:\Program Files\Git\cmd;C:\Program Files\Git\mingw64\bin;C:\Program=
Files\Git\usr\bin;C:\Ruby27-x64\bin;C:\Ruby25-x64\bin
foo
PS C:\Users\deivi> ruby -e "puts ENV['Path']; ENV.update('PATH' =3D> 'foo')=
; puts ENV['Path']" =
=
C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Window=
s\System32\WindowsPowerShell\v1.0\;C:\Windows\System32\OpenSSH\;C:\Program =
Files\Git\cmd;C:\Program Files\Git\mingw64\bin;C:\Program Files\Git\usr\bin=
;C:\Ruby26-x64\bin;C:\Ruby25-x64\bin;C:\Windows\system32;C:\Windows;C:\Wind=
ows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Windows\Sy=
stem32\OpenSSH\;C:\Program Files\Git\cmd;C:\Program Files\Git\mingw64\bin;C=
:\Program Files\Git\usr\bin;C:\Windows\system32;C:\Windows;C:\Windows\Syste=
m32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Windows\System32\Op=
enSSH\;C:\Program Files\Git\cmd;C:\Program Files\Git\mingw64\bin;C:\Program=
Files\Git\usr\bin;C:\Ruby27-x64\bin;C:\Ruby25-x64\bin
foo
```
However, with `ENV.replace`, if you don't use the "canonical casing" (as gi=
ven by `ENV.keys`, for example), the environment variable will be cleared.
```
PS C:\Users\deivi> ruby -e "puts ENV['Path']; ENV.replace('PATH' =3D> 'foo'=
); puts ENV['Path']" =
=
C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\W=
indows\System32\WindowsPowerShell\v1.0\;C:\Windows\System32\OpenSSH\;C:\Pro=
gram Files\Git\cmd;C:\Program Files\Git\mingw64\bin;C:\Program Files\Git\us=
r\bin;C:\Ruby26-x64\bin;C:\Ruby25-x64\bin;C:\Windows\system32;C:\Windows;C:=
\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Windo=
ws\System32\OpenSSH\;C:\Program Files\Git\cmd;C:\Program Files\Git\mingw64\=
bin;C:\Program Files\Git\usr\bin;C:\Windows\system32;C:\Windows;C:\Windows\=
System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Windows\System=
32\OpenSSH\;C:\Program Files\Git\cmd;C:\Program Files\Git\mingw64\bin;C:\Pr=
ogram Files\Git\usr\bin;C:\Ruby27-x64\bin;C:\Ruby25-x64\bin
```
This is unexpected to me.
-- =
https://bugs.ruby-lang.org/
Unsubscribe: <mailto:ruby-core-request@ruby-lang.org?subject=3Dunsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>