aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAaron LI <aaronly.me@outlook.com>2016-12-06 16:52:27 +0800
committerAaron LI <aaronly.me@outlook.com>2016-12-06 16:52:27 +0800
commited5c60d80b163b4ba7204d7ab694c0ca0607cffa (patch)
tree642424f12d434d6a33df41c6b22fbe9e864ba240
parentf696abc9fdcab2fe6c94d32ba4a73374e446c139 (diff)
downloaddotfiles-ed5c60d80b163b4ba7204d7ab694c0ca0607cffa.tar.bz2
_profile: Add back "LC_CTYPE=zh_CN.UTF-8"
NOTE ---- FontConfig will check the language against system locales, in order to prepend/enable corresponding fonts. For example, Noto CJK font provides multiple variants for the same glyph regions, e.g., "Noto Sans CJK JP" and "Noto Sans CJK SC" may *both* be selected/matched to display Chinese, and the former may even get precedence which is unexpected (see also: Han Unification [1]). Therefore, "LC_CTYPE=zh_CN.UTF-8" should be added back, and explicitly select the wanted/correct font (e.g., "Noto Sans CJK SC") for specific language (e.g., "zh-cn"). [1] https://en.wikipedia.org/wiki/Han_unification
-rw-r--r--_profile1
1 files changed, 1 insertions, 0 deletions
diff --git a/_profile b/_profile
index 72d3c2f..570663b 100644
--- a/_profile
+++ b/_profile
@@ -65,6 +65,7 @@ fi
## Language and locale
export LANG="en_US.UTF-8"
+export LC_CTYPE="zh_CN.UTF-8"
export LC_MONETARY="zh_CN.UTF-8"
export LC_COLLATE="C"