-
-
Notifications
You must be signed in to change notification settings - Fork 101
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
Local language support (LC_ALL) added to installation& launcher on macOS #1881
Conversation
We talked about that in Slack before, I don't think it's a good solution because it will be forcing English locale into users computers. It will instruct internationalized programs to use the English language even if their language isn't English. |
@abtahizadeh the error appears during the installation (before writting/sourcing .bashrc). |
@perone Didn't know about your previous discussion, I don't think there's other solution than this ... what should we do? @tanguyduval thanks! update in progess |
Setting the |
@zougloub normally, |
…e impact and scope
Moving the solution to |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good but I don't have a Mac.
Works on my MAC, @tanguyduval can you please verify? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since the crash occurred during installation (tanguy, charley can you confirm?) i think we also need to take action inside install_sct, right?
Right, crash appears during installation. Lc_all should be define at the
begining of install_sct also.
I cannot check this Pr because I have no more access to a foreign computer.
Le ven. 22 juin 2018 à 20:37, Julien Cohen-Adad <[email protected]>
a écrit :
… ***@***.**** requested changes on this pull request.
Since the crash occurred during installation (tanguy, charley can you
confirm?) i think we also need to take action inside install_sct, right?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#1881 (review)>,
or mute the thread
<https:/notifications/unsubscribe-auth/AHbLZF6hyjMJDHJJY_t9gDlFjOlCZbJKks5t_TligaJpZM4Uz7GA>
.
|
@jcohenadad done |
Can't approve on something that modifies a user's general settings.
install_sct
Outdated
|
||
# Fix for non-English Unicode systems on MAC | ||
if [ -z ${LC_ALL} ]; then | ||
echo "export LC_ALL=en_US.UTF-8" >> ~/.bash_profile |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i though we agreed to not modify the bash_profile? how about updating the env variable during install (to make TF happy), and also modify it in the launcher (to have it run during execution of TF-related functions)?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
I am not able to test, struggling with some problems related to pip ...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it should be tested before merging, esp. on a laptop where the error UTF8-related occurs
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@abtahizadeh changing local language to reproduce the error is extremely easy and takes 5s. Explanation here: microsoft/vscode#7301
install_sct
Outdated
@@ -242,11 +242,11 @@ if uname -a | grep -i darwin > /dev/null 2>&1; then | |||
|
|||
# Fix for non-English Unicode systems on MAC | |||
if [ -z ${LC_ALL} ]; then | |||
echo "export LC_ALL=en_US.UTF-8" >> ~/.bash_profile | |||
export LC_ALL=en_US.UTF-8 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not going to work with (t)csh.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can it enter this if statement in Linux system? (If not, then disregard my comment about csh)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We have an IF
statement to check, we execute only on macOS:
if uname -a | grep -i darwin > /dev/null 2>&1; then
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sorry the previous lines were hidden by github. All good then 👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jcohenadad plz approve
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@abtahizadeh as mentioned in #1881 (comment), this PR needs to be tested before merging. You mentioned you had issues with pip that you will be fixing.
|
tested ea6ef08 on an OSX Terminal configured with Japanese encoding. Installed passed successfully, however
UPDATE 2018-07-03 14:04: The issue with |
@abtahizadeh is this Sucheng (Chinese) macOS running inside a VM or something like that ? The |
@perone Yes, VM, and I agree that might be because of not having enough resources, I also suspected that it might be because of running out of RAM. I am currently running another test to see if it works with 16G RAM and 4 CPUs. |
Test passed, the issue was related to insufficient memory/CPU, however, this bug still introduced: #1900 |
Local language support (LC_ALL) added to installation& launcher on macOS Former-commit-id: e574232
Requirements
Tested on macOS
Description of the Change
Adding support for non-English language local Unicode during the installation.
Please note that
LC_ALL
overwritesLANG
Steps and Constraints
install_sct
updatedApplicable Issues
Implements or Fixes #1880 and #1851 (duplicate)