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

Several improvements for non-Windows systems #4

Closed
wants to merge 1 commit into from

Conversation

gagern
Copy link
Contributor

@gagern gagern commented Jan 22, 2016

  • Allow lowercase unhyphenated utf8
  • Allow LC_CTYPE to contain language as well as encoding
  • Relax formatting requirements, so foo_BAR@utf-8.quotes or similar gets accepted as well
  • Handle overrides correctly, using the highest priority non-empty setting
  • Simplify test suite by reducing each test to one line
  • Fix tests since assigning null or undefined to process.env will stringify that (at least on my Node 5.3.0), instead of unsetting the variable

This fixes #2. I consider this solution superior to #3, so personally I'd say it supersedes that.

* Allow lowercase unhyphenated `utf8`
* Allow LC_CTYPE to contain language as well as encoding
* Relax formatting requirements, so `foo_BAR@utf-8.quotes` or similar gets
  accepted as well
* Handle overrides correctly, using the highest priority non-empty setting
* Simplify test suite by reducing each test to one line
* Fix tests since assigning null or undefined to process.env will stringify
  that (at least on my Node 5.3.0), instead of unsetting the variable
@iarna
Copy link
Owner

iarna commented Jun 23, 2016

Thanks for putting this together, I've landed it in 2.0.1.

@iarna iarna closed this Jun 23, 2016
iarna added a commit to npm/npm that referenced this pull request Jun 24, 2016
Fix unicode dection on a number of Linux distributions.

Credit: @Darkhogg
Credit: @gagern
Reviewed-By: @iarna
PR-URL: iarna/has-unicode#3
PR-URL: iarna/has-unicode#4
@gagern gagern deleted the mvg branch June 24, 2016 06:33
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 this pull request may close these issues.

Doesn't recognize "utf8"
2 participants