Hi, 

 Dia-0.86 can't load files saved under non-latin locales if localization of
the word "Background" (the one used as the name of the base layer) contains
non-ascii (or non-latin1) characters - libxml complaints about attribute value
for some reason, and filename can't be imported. At least this is true for
translations to russian (ru.po) - translation of 'Background' is '���', i.e.
0xe6 0xcf 0xce, but the name of the layer in XML becomes a litteral "揎"
for some unknown reason.
 I've attached a patch that removes sympthoms of this problem - translation 
of 'Background' from /po/*.po for locales that I suspect, but it would be
better if the underlying problem was fixed. Sorry, I don't have time to
inspect it - I hope someone will fix it.

 Best regards,
  -Vlad
# Patch to dia-0.86 (C) 2001 by Vlad Harchev <[EMAIL PROTECTED]>
# Without this patch, dia won't be able to load files saved under non-latin
# locale.
#
diff -ru dia-0.86-was/po/el.po dia-0.86/po/el.po
--- dia-0.86-was/po/el.po       Sun Aug  6 11:13:12 2000
+++ dia-0.86/po/el.po   Tue Jan  9 18:13:46 2001
@@ -1601,9 +1601,9 @@
 msgid "Internal error: Setting corner type of endpoint of bezier"
 msgstr ""
 
-#: lib/diagramdata.c:60
-msgid "Background"
-msgstr "������"
+#: lib/diagramdata.c:60 
+#msgid "Background"
+#msgstr "������"
 
 #: lib/font.c:386
 #, c-format
diff -ru dia-0.86-was/po/ja.po dia-0.86/po/ja.po
--- dia-0.86-was/po/ja.po       Sun Aug  6 11:13:14 2000
+++ dia-0.86/po/ja.po   Tue Jan  9 18:15:14 2001
@@ -1535,8 +1535,8 @@
 msgstr ""
 
 #: lib/diagramdata.c:60
-msgid "Background"
-msgstr "�ط�"
+#msgid "Background"
+#msgstr "�ط�"
 
 #: lib/font.c:386
 #, c-format
diff -ru dia-0.86-was/po/ko.po dia-0.86/po/ko.po
--- dia-0.86-was/po/ko.po       Sun Aug  6 11:13:14 2000
+++ dia-0.86/po/ko.po   Tue Jan  9 18:15:06 2001
@@ -1517,8 +1517,8 @@
 msgstr "���� ����: ������ � ������ �����ڸ� ���� ����"
 
 #: lib/diagramdata.c:60
-msgid "Background"
-msgstr "���"
+#msgid "Background"
+#msgstr "���"
 
 #: lib/font.c:386
 #, c-format
diff -ru dia-0.86-was/po/ru.po dia-0.86/po/ru.po
--- dia-0.86-was/po/ru.po       Sun Aug  6 11:13:15 2000
+++ dia-0.86/po/ru.po   Tue Jan  9 18:14:34 2001
@@ -1510,8 +1510,8 @@
 msgstr "���������� ������: ��������� ���� ���� ��� �������� ����� ������ �����"
 
 #: lib/diagramdata.c:60
-msgid "Background"
-msgstr "���"
+#msgid "Background"
+#msgstr "���"
 
 #: lib/font.c:386
 #, c-format
diff -ru dia-0.86-was/po/uk.po dia-0.86/po/uk.po
--- dia-0.86-was/po/uk.po       Sun Aug  6 11:13:16 2000
+++ dia-0.86/po/uk.po   Tue Jan  9 18:14:57 2001
@@ -1511,8 +1511,8 @@
 "����Ҧ��� �������: ������������ ���� ���� ��� ˦����ϧ ����� ����ϧ ���'�"
 
 #: lib/diagramdata.c:60
-msgid "Background"
-msgstr "���"
+#msgid "Background"
+#msgstr "���"
 
 #: lib/font.c:386
 #, c-format
diff -ru dia-0.86-was/po/zh_TW.Big5.po dia-0.86/po/zh_TW.Big5.po
--- dia-0.86-was/po/zh_TW.Big5.po       Sun Aug  6 11:13:16 2000
+++ dia-0.86/po/zh_TW.Big5.po   Tue Jan  9 18:15:31 2001
@@ -1529,7 +1529,7 @@
 
 #: lib/diagramdata.c:60
-msgid "Background"
-msgstr "�I��"
+#msgid "Background"
+#msgstr "�I��"
 
 #: lib/font.c:386
 #, c-format

Reply via email to