Skip to content

Commit 8bbdd3c

Browse files
authored
Update docs/unicode.md
1 parent f8e9aa8 commit 8bbdd3c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/unicode.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2854,7 +2854,7 @@ int main() {
28542854
#elif __unix__
28552855
// 反正 Unix 系统默认都是 UTF-8,不设置也行,这里设置全局 locale 是为了让 iswspace 接受全角空格、iswpunct 接受全角逗号 L',' 等
28562856
//setlocale(LC_ALL, "zh_CN.utf-8"); // 设置使用中文本地化,可使 strerror 输出中文(但用户必须 locale-gen 过中文!)
2857-
setlocale(LC_ALL, "C.utf-8"); // 设置使用语言中性 locale(推荐),只影响 iswspace、iswpunct 等函数,不会使 strerror 等输出中文
2857+
setlocale(LC_ALL, "C.utf-8"); // 设置使用语言中性 locale(推荐),只影响 iswspace、iswpunct 等函数,不会使 strerror 等输出中文
28582858
#endif
28592859
// 这里开始写你的主程序吧!
28602860
// ...

0 commit comments

Comments
 (0)