Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
projet
VPLPP
Commits
6fd4c8b9
Commit
6fd4c8b9
authored
May 27, 2020
by
Guillaume Huard
Browse files
Fixes for the locales issues
parent
addf6ba5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Basic_System/ef/vpl_execution.sh
View file @
6fd4c8b9
...
...
@@ -53,13 +53,12 @@ fi
MODE
=
$1
shift
# TODO :
# Locales are a source of many bad behavior, but changing locale has an unexpected impact
# (for instance vim doesn't work on the server with C as LC_ALL
# export LC_ALL=C
# The best is probably to enable somehow globasciiranges option or to wait because it is
# enbaled by default in bash 5.0
# BUT another issue is that the sort command is sensitive to LC_ALL. Things have to be thought out...
# Locales are a source of many bad behavior (glob in bash, sort order, ...)
export
LC_ALL
=
C
# But changing locale has an unexpected impact,
# for instance vim doesn't work on the server with C as LC_ALL, here's the fix
echo
'set encoding=utf-8'
>>
.vimrc
# Note that globasciiranges will be enbaled by default in bash 5.0, this solves half of the issue
# Can cause unwanted extra ouputs if set
unset
CDPATH
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment