After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 763486 - nautilus: g_file_query_info(): nautilus killed by SIGSEGV
nautilus: g_file_query_info(): nautilus killed by SIGSEGV
Status: RESOLVED FIXED
Product: l10n
Classification: Infrastructure
Component: Chinese (Simplified) [zh_CN]
GNOME 3.22
Other Linux
: High major
: ---
Assigned To: Aron Xu
Aron Xu
Depends on:
Blocks:
 
 
Reported: 2016-03-11 01:54 UTC by leaeasy
Modified: 2017-10-06 14:36 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description leaeasy 2016-03-11 01:54:46 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".
Comment 1 Carlos Soriano 2016-10-24 19:56:50 UTC
move bug to the translation team. You cannot reorder with %B or non-standard printf codes, which nautilus uses.
Comment 2 Carlos Soriano 2016-10-24 19:58:22 UTC
thanks leaeasy for digging into it and discovering the real issue, much helpful!
Comment 3 Piotr Drąg 2017-10-06 14:36:21 UTC
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.