# HG changeset patch # User Xander Ziiryanoff # Date 1437373522 -7200 # Node ID 7184ec55b1aa9da8e38c9b25a4b802e3876590eb # Parent 1c2ff7001ee85c5a9286abfb0f49215a0eb4cef7 wine: modify /etc/locale.conf for UTF-8 support diff -r 1c2ff7001ee8 -r 7184ec55b1aa wine/receipt --- a/wine/receipt Sun Jul 19 15:19:06 2015 +0300 +++ b/wine/receipt Mon Jul 20 08:25:22 2015 +0200 @@ -11,7 +11,7 @@ WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL" TAGS="windows emulator" # wine is not an emulator -DEPENDS="alsa-lib libxml2 libxslt mesa libglu-mesa xorg-dev lcms freetype" +DEPENDS="alsa-lib libxml2 libxslt mesa libglu-mesa lcms freetype" BUILD_DEPENDS="alsa-lib-dev flex bison mesa-dev freetype-dev libtool \ libglu-mesa-dev libxml2-dev libxslt-dev lcms-dev prelink \ jpeg-dev libpng-dev libv4l-dev gnutls-dev libgphoto2-dev cups-dev dbus-dev" @@ -37,4 +37,14 @@ post_install() { [ "$1" ] || modprobe snd-seq 2>/dev/null + + # Enable unicode filenames and localized keyboard layouts input + . $1/etc/locale.conf + case $LANG in + (C|POSIX) echo $LANG - skip modifying /etc/locale.conf ;; + (*) + echo "$LANG changed to ${LANG}.UTF-8 in /etc/locale.conf" + echo "Restart/ReLogin required." + sed -i 's/$/&.UTF-8/' $1/etc/locale.conf ;; + esac }