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

Add LANG=C to get tr working. #3

Merged
merged 1 commit into from
Aug 21, 2022
Merged

Add LANG=C to get tr working. #3

merged 1 commit into from
Aug 21, 2022

Conversation

DrearyLisper
Copy link
Contributor

Without explicitly passing LANG=C it won't work correctly on Mac OS.

➜  ~ tr -dc "[:lower:]" < /dev/urandom | fold -w8 | head -n1
tr: Illegal byte sequence
➜  ~ LANG=C tr -dc "[:lower:]" < /dev/urandom | fold -w8 | head -n1
xwbersvj

@drduh
Copy link
Owner

drduh commented Mar 16, 2022

Is this on macOS or were you seeing this on other platforms also? I have LC_ALL set in zshrc and haven't come across this error.

@DrearyLisper
Copy link
Contributor Author

Yes, that was on MacOS.

@drduh drduh merged commit 6976cff into drduh:master Aug 21, 2022
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.

None yet

2 participants