-
Notifications
You must be signed in to change notification settings - Fork 2
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
make lpstat
output LANG
aware in MacOS
#3
Conversation
sets the environment variable SOFTWARE to an empty value. so the `lpstat` can output in right `LANG` as you set.
sets the environment variable SOFTWARE to an empty value
Thank you so much for the submission, i already implemented this in the code where you see: Glad it worked! Happy new year. |
@ice6 happy new year to you and yours as well! In a bash script, the line: export SOFTWARE=. does the following: In our Use Case: it doesn’t do anything as it is not used in the script. Two lines that follow in the updated version is what forces English for the all the subprocesses which we spawn and that’s what fixed the issue. |
@sapireli I hope this picture can make the idea clear. ![]() without the |
Thank you 🙏. Let me examine this in a test environment. I don’t fully understand why passing a variable changes anything |
This works well. Great find thank you so much. Happy holidays and happy new year 🙏 @ice6 |
@sapireli happy holidays. 🤗 |
so that the script can work in non-english user's mac machine.