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

Fix #49 using a file with LC_ALL=C as fallback #56

Merged
merged 1 commit into from
Oct 11, 2016

Conversation

comawill
Copy link
Contributor

@comawill comawill commented Oct 8, 2016

came across the same problem as in issue #49

noticed that /usr/bin/file crashes, when trying to determine the content type

$ file /tmp/test
/tmp/test: ERROR: line 22: regexec error 17, (illegal byte sequence)

by changing the environment variable LC_ALL to C, it works as expected

LC_ALL=C file /tmp/test
/tmp/test: UTF-8 Unicode text

this PR changes the behavior on running file, by trying to run file again with LC_ALL=C if the first run using LC_ALL=en_US.utf8 failed

@tsdorsey
Copy link
Collaborator

Thanks @comawill. I'll merge and release this shortly (48 hours).

@tsdorsey tsdorsey merged commit 2d47f6a into whomwah:master Oct 11, 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 this pull request may close these issues.

2 participants