@ogra, thank you for your example from nethack! I hit the same issue
with a simple python3 script that was failing due to
sys.getfilesystemencoding() returning 'ascii'. Modifying my wrapper to
do the following:
export LOCPATH=$SNAP_USER_DATA
LANG=en_US
ENC=UTF-8
LOC="$LANG.$ENC"
if [ ! -e $SNAP_USER_DATA/$LOC ]; then
localedef --prefix=$SNAP_USER_DATA -f $ENC -i $LANG $SNAP_USER_DATA/$LOC
fi
export LC_ALL=$LOC
export LANG=$LOC
export LANGUAGE=${LANG%_*}
seems to be a necessary step for my script. It seems like this is
something we would want to eventually internalize to snapcraft/snapd?
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1576411
Title:
UTF-8 is not very well supported inside snaps
To manage notifications about this bug go to:
https://bugs.launchpad.net/snappy/+bug/1576411/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs