Skip to content
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

Doesn't recognize "utf8" #2

Closed
forivall opened this issue Nov 26, 2015 · 3 comments
Closed

Doesn't recognize "utf8" #2

forivall opened this issue Nov 26, 2015 · 3 comments

Comments

@forivall
Copy link

For some reason (I think it's gnome's fault), my system's locale is en_US.utf8. The following regex should detect both utf8 and UTF-8: /\butf-?8\b/i (found when grepping my system trying to figure out where it's set; it's part of an old perl module).

The following line in gnome shows both UTF-8 and utf8 (more strictly) being accepted: https://github.com/GNOME/gnome-desktop/blob/0e2f15588a89230e60a7dfe9f4164a8c17baa733/libgnome-desktop/gnome-languages.c#L91

forivall added a commit to forivall/has-unicode that referenced this issue Nov 26, 2015
@gagern
Copy link
Contributor

gagern commented Jan 8, 2016

And I think you should use the same regex for LC_CTYPE. It follows the same syntax as the other facets, so it does include the language.

@kaylynb
Copy link

kaylynb commented Apr 28, 2016

I have the same issue here. Arch Linux seems to use the lowercase variant of the locale. Have not been able to track down why (looks like Gentoo does the same thing).

localectl man pages even reference the .utf8 variant so I think it may be a valid.

@iarna
Copy link
Owner

iarna commented Jun 23, 2016

This should be fixed as of 2.0.1.

@iarna iarna closed this as completed Jun 23, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants