chapel-lang/chapel — pull request #365 by gbtitus (2014-09-10 05:29:31+00:00)
Title: Instead of using Chapel's writeln() to print the value returned by

getenv(), call C's printf() directly. Chapel writeln() doesn't work for
printing c_string arguments on non-0 locales, because writeln() executes
on locale 0 and the pointer for a string on some other locale isn't
meaningful on locale 0 (and we don't deep-copy the string).