mirror of
https://github.com/xonsh/xonsh.git
synced 2025-03-04 08:24:40 +01:00
check encodings in xon.sh
This commit is contained in:
parent
591086c04b
commit
347517821c
1 changed files with 8 additions and 0 deletions
|
@ -1,2 +1,10 @@
|
|||
#!/bin/sh
|
||||
|
||||
# set locale if it is totally undefined
|
||||
if [ -z "${LC_ALL+x}" ] && [ -z "${LC_CTYPE+x}" ] && \
|
||||
[ -z "${LANG+x}" ] && [ -z "${LANGUAGE+x}" ]; then
|
||||
export LANG=C.UTF-8
|
||||
fi
|
||||
|
||||
# run python
|
||||
/usr/bin/env PYTHONUNBUFFERED=1 python3 -u -m xonsh $@
|
||||
|
|
Loading…
Add table
Reference in a new issue