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

Clear LC_ALL for tr call #2429

Merged
merged 1 commit into from
Jul 31, 2024
Merged

Clear LC_ALL for tr call #2429

merged 1 commit into from
Jul 31, 2024

Conversation

headius
Copy link
Contributor

@headius headius commented Jul 30, 2024

This resolves additional issues when tr is called in a shell that has set LC_ALL to a specific encoding. In that case, the tr may fail to ignore binary files, expecting that they are in some encoding.

See #2279

This resolves additional issues when tr is called in a shell that
has set LC_ALL to a specific encoding. In that case, the tr may
fail to ignore binary files, expecting that they are in some
encoding.

See rbenv#2279
@headius
Copy link
Contributor Author

headius commented Jul 30, 2024

@eregon @mislav I took a stab at this based on the discussion. It should clear LC_ALL in the tr call, which I believe resolves the encoding error on environments with an existing LC_ALL env.

Please check my work.

Copy link
Member

@mislav mislav left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for following up

@mislav mislav merged commit 6b90d69 into rbenv:master Jul 31, 2024
4 checks passed
@headius headius deleted the tr_lc_all branch August 1, 2024 14:29
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