Skip to content

Instantly share code, notes, and snippets.

@keima
Last active August 29, 2015 14:25
Show Gist options
  • Save keima/423d168f018d5c25cbce to your computer and use it in GitHub Desktop.
Save keima/423d168f018d5c25cbce to your computer and use it in GitHub Desktop.
Mac版Inkscapeで日本語にするとクラッシュするのを治す
--- inkscape-original 2015-07-23 17:20:22.000000000 +0900
+++ inkscape 2015-07-23 17:19:02.000000000 +0900
@@ -149,6 +149,12 @@
else
[ $_DEBUG ] && echo "Setting LANG from /usr/share/locale/locale.alias" 1>&2
export LANG="$tmpLANG.UTF-8"
+
+ # PATCH: if $tmpLANG is "sjis", Inkscape is suddenly death!
+ if [ "$tmpLANG" == "sjis" ]
+ then
+ export LANG="ja_JP.UTF-8"
+ fi
fi
fi
[ $_DEBUG ] && echo "Setting Language: $LANG" 1>&2
@keima
Copy link
Author

keima commented Jul 23, 2015

使い方

$ patch -u /Applications/Inkscape.app/Contents/Resources/bin/inkscape < inkscape.patch

あるいは手作業でコードを書き足すか

戻し方

$ patch -u -R /Applications/Inkscape.app/Contents/Resources/bin/inkscape < inkscape.patch

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment