Hi i18n-zh team,
I'm reporting a bug in the zh_CN translation of util-linux.
In po/zh_CN.po, the translation for disk-utils/sfdisk.c:1943 contains an extra
%s format specifier:
msgid ""
"\n"
"Type 'help' to get more information.\n"
msgstr ""
"\n"
"请执行“%s --help”了解更多信息。\n"
The original msgid does NOT contain any %s, but the translation does.
This causes sfdisk to segfault when run in zh_CN.UTF-8 locale, because the
code calls fdisk_info() with no extra arguments, but printf tries to read a %s
from the stack, hitting address 0x1.
GitHub Issue for reference:
Proposed fix:
- "请执行“%s --help”了解更多信息。\n"
+ "请键入 'help' 来获得更多信息。\n"
Could someone please submit this fix to the Translation Project?
Thanks,
4444ji
user863-dev