GNOME Bugzilla – Bug 763486
nautilus: g_file_query_info(): nautilus killed by SIGSEGV
Last modified: 2017-10-06 14:36:21 UTC
Description of problem: 1- Copy a nonempty folder 2- paste them in same parent folder 3- nautilus crashed It will not happend at en_US locale environment, but happend at zh_CN locale environment. I debug this bug ,found it crashed at ngettext function.And that's due to a broken translation --- nautilus-3.18.5.orig/po/zh_CN.po +++ nautilus-3.18.5/po/zh_CN.po @@ -1249,12 +1249,12 @@ msgstr[0] "已将 %'d 个文件复制到 #: ../libnautilus-private/nautilus-file-operations.c:3265 msgid "Duplicating %'d file in “%B”" msgid_plural "Duplicating %'d files in “%B”" -msgstr[0] "正在“%B”中复制 %'d 个文件" +msgstr[0] "正在“%2$B”中复制 %1$'d 个文件" #: ../libnautilus-private/nautilus-file-operations.c:3273 msgid "Duplicated %'d file in “%B”" msgid_plural "Duplicated %'d files in “%B”" -msgstr[0] "已在“%B”复制 %'d 个文件" +msgstr[0] "已在“%2$B”复制 %1$'d 个文件" #. To translators: %S will expand to a size like "2 bytes" or "3 MB", so something like "4 kb / 4 MB" #. To translators: %S will expand to a size like "2 bytes" or "3 MB".
move bug to the translation team. You cannot reorder with %B or non-standard printf codes, which nautilus uses.
thanks leaeasy for digging into it and discovering the real issue, much helpful!
Nautilus no longer uses %B. This problem has been fixed in the unstable development version. The fix will be available in the next major software release. You may need to upgrade your Linux distribution to obtain that newer version.