From ed5c60d80b163b4ba7204d7ab694c0ca0607cffa Mon Sep 17 00:00:00 2001 From: Aaron LI Date: Tue, 6 Dec 2016 16:52:27 +0800 Subject: _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 --- _profile | 1 + 1 file changed, 1 insertion(+) 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" -- cgit v1.2.2