-
Notifications
You must be signed in to change notification settings - Fork 7.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Locale native test fails on Unix #2997
Comments
@thezim this isn't a build failure, this is a unit test failure. Can you set your locale to UTF-8? .NET Core isn't expected to work with any other locales currently (that said, ASCII is probably going to work, but still going to fail the sanity test). |
My text encoding was set to "UTF-8" in the Terminal app. While research how to change the locale I came across this article which was helpful. Unchecking the Terminal > Preferences > Advanced > Set locale environment variables on startup corrected the issue. That being said should the build documentation be update with this tidbit as Set locale environment variables on startup is checked by default in macOS 10.12 (Sierra). I know 10.12 isn't officially supported yet but this will be an issue moving forward. I do not have access to a 10.11 machine so I cant tell you what the default setting there is. With Set locale environment variables on startup checked. thezim@foobarhost ~ $ locale
LANG=
LC_COLLATE="C"
LC_CTYPE="C"
LC_MESSAGES="C"
LC_MONETARY="C"
LC_NUMERIC="C"
LC_TIME="C"
LC_ALL=
thezim@foobarhost ~ $ With Set locale environment variables on startup unchecked. thezim@foobarhost ~ $ locale
LANG="en_US.UTF-8"
LC_COLLATE="en_US.UTF-8"
LC_CTYPE="en_US.UTF-8"
LC_MESSAGES="en_US.UTF-8"
LC_MONETARY="en_US.UTF-8"
LC_NUMERIC="en_US.UTF-8"
LC_TIME="en_US.UTF-8"
LC_ALL=
thezim@foobarhost ~ $ |
I actually have problem earlier during the build on 10.12
|
Fair point |
There was same problem reported on gitter Looks like an incorrect test for me. |
@vors please remove macOS from the title (replace with Nix*-like OSes??) and add 'Linux' as label :-) |
@vors if the locale is not UTF-8, we have no guarantees that CoreCLR will work correctly. Much code depends on being able to marshal UTF-8 |
Haven't seen an issue with this anymore |
Steps to reproduce
Run build per documentation.
Expected behavior
Builds successfully.
Actual behavior
Build fails with the following.
Environment data
macOS 10.12
The text was updated successfully, but these errors were encountered: