Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
GitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
Use "filesystem" encoding for PATH as in MRI. Fixes #3907. #3923
This fixes the one regression in my previous changes. Because MRI always creates new strings when you read from ENV, they just normalize to locale encoding for setenv, and then either use locale encoding or filesystem encoding for getenv. The equivalent for us here is to just let the setenv string decode to Java String and then use the default getBytes to match it up with the default Charset used for locale, rather than attempting to transcode the string directly.