<?xml version="1.0" encoding="UTF-8" ?>

<bugzilla version="5.2"
          urlbase="https://bugzilla.altlinux.org/"
          
          maintainer="jenya@basealt.ru"
>

    <bug>
          <bug_id>20154</bug_id>
          
          <creation_ts>2009-05-22 22:16:41 +0400</creation_ts>
          <short_desc>GtkBuilder в не-UTF8 локалях некорректно выводит переводы</short_desc>
          <delta_ts>2017-01-13 22:45:06 +0300</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>4</classification_id>
          <classification>Development</classification>
          <product>Sisyphus</product>
          <component>python-module-pygtk</component>
          <version>unstable</version>
          <rep_platform>all</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc>http://bugzilla.gnome.org/show_bug.cgi?id=589090</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P3</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Andrey Rahmatullin">wrar</reporter>
          <assigned_to name="Nobody&apos;s working on this, feel free to take it">nobody</assigned_to>
          <cc>mike</cc>
    
    <cc>real.altlinux.org</cc>
          
          <qa_contact>qa-sisyphus</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>91683</commentid>
    <comment_count>0</comment_count>
    <who name="Andrey Rahmatullin">wrar</who>
    <bug_when>2009-05-22 22:16:41 +0400</bug_when>
    <thetext>/usr/bin/blueman-adapters:174: GtkWarning: Failed to set text from markup due to error parsing markup: РћС€РёР±РєР° РІ СЃС‚СЂРѕРєРµ 1 РЅР° СЃРёРјРІРѕР»Рµ 12: РўРµРєСЃС‚ Р·Р°РєРѕРґРёСЂРѕРІР°РЅ РєР°Рє UTF-8 РЅРµРґРѕРїСѓСЃС‚РёРјС‹Рј РѕР±СЂР°Р·РѕРј вЂ” РЅРµРґРѕРїСѓСЃС‚РёРјР°СЏ РїРѕСЃР»РµРґРѕРІР°С‚РµР»СЊРЅРѕСЃС‚СЊ В«&lt;b&gt;Настройка видимости&lt;/b&gt;В»                                                                               
  builder.add_from_file(UI_PATH +&quot;/adapters-tab.ui&quot;)

И т.д. В blueman-applet всегда нормально, в blueman-{adapters,services} - только с локалью UTF-8.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>92732</commentid>
    <comment_count>1</comment_count>
    <who name="Andrey Rahmatullin">wrar</who>
    <bug_when>2009-06-08 19:52:28 +0400</bug_when>
    <thetext>Было выяснено, что сизифный (libgtk+2-2.16.2-alt1) GtkBuilder при использовании в не-UTF8 локалях выводит строки, полученные через translatable=yes, кракозябрами, при этом ругаясь в консоль. Тесткейс приложу попозже.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>92735</commentid>
    <comment_count>2</comment_count>
      <attachid>3596</attachid>
    <who name="Andrey Rahmatullin">wrar</who>
    <bug_when>2009-06-08 21:03:53 +0400</bug_when>
    <thetext>Created attachment 3596
тесткейс</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>92736</commentid>
    <comment_count>3</comment_count>
    <who name="Andrey Rahmatullin">wrar</who>
    <bug_when>2009-06-08 21:04:55 +0400</bug_when>
    <thetext>Тесткейс в локали ru_RU.UTF-8 в заголовке окна пишет &quot;Победа&quot;, в ru_RU.CP1251 - 6 квадратиков с вопросами, при этом в консоли

(a.out:17270): Gdk-CRITICAL **: gdk_x11_atom_to_xatom_for_display: assertion `atom != GDK_NONE&apos; failed

(a.out:17270): Gdk-CRITICAL **: gdk_x11_atom_to_xatom_for_display: assertion `atom != GDK_NONE&apos; failed</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>110869</commentid>
    <comment_count>4</comment_count>
    <who name="real@altlinux.org">real.altlinux.org</who>
    <bug_when>2010-07-29 14:09:26 +0400</bug_when>
    <thetext>А это же вроде не python-module-pygtk виноват...</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>110871</commentid>
    <comment_count>5</comment_count>
    <who name="Andrey Rahmatullin">wrar</who>
    <bug_when>2010-07-29 14:15:25 +0400</bug_when>
    <thetext>(В ответ на комментарий №4)
&gt; А это же вроде не python-module-pygtk виноват...

Url: указан не зря.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>110881</commentid>
    <comment_count>6</comment_count>
    <who name="real@altlinux.org">real.altlinux.org</who>
    <bug_when>2010-07-30 07:13:28 +0400</bug_when>
    <thetext>Наверно, я чего-то не понял, либо баг уже исправили. Оба тесткейса работают: пустое окно с &quot;Победа&quot; в заголовке.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>110882</commentid>
    <comment_count>7</comment_count>
    <who name="Andrey Rahmatullin">wrar</who>
    <bug_when>2010-07-30 08:56:28 +0400</bug_when>
    <thetext>(В ответ на комментарий №6)
&gt; Наверно, я чего-то не понял, либо баг уже исправили. Оба тесткейса работают:
&gt; пустое окно с &quot;Победа&quot; в заголовке.
Локаль UTF-8?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>110883</commentid>
    <comment_count>8</comment_count>
    <who name="real@altlinux.org">real.altlinux.org</who>
    <bug_when>2010-07-30 09:07:07 +0400</bug_when>
    <thetext>Вот тут я пока не знаю, правильно ли делаю:

python 1.py - заголовок &quot;Победа&quot;
LC_MESSAGES=ru_RU.CP1251 python 1.py - заголовок &quot;Победа&quot;
LC_MESSAGES=en_US python 1.py - заголовок &quot;Success&quot;.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>110884</commentid>
    <comment_count>9</comment_count>
    <who name="real@altlinux.org">real.altlinux.org</who>
    <bug_when>2010-07-30 09:08:07 +0400</bug_when>
    <thetext>Пардон, глючу. Не
LC_MESSAGES=en_US python 1.py
а
LC_MESSAGES=C python 1.py</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>110885</commentid>
    <comment_count>10</comment_count>
    <who name="Andrey Rahmatullin">wrar</who>
    <bug_when>2010-07-30 09:14:12 +0400</bug_when>
    <thetext>LC_ALL, а не LC_MESSAGES</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>110887</commentid>
    <comment_count>11</comment_count>
    <who name="real@altlinux.org">real.altlinux.org</who>
    <bug_when>2010-07-30 09:23:13 +0400</bug_when>
    <thetext>Ладно, попробую (наверно, только на след.неделе получится).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>110888</commentid>
    <comment_count>12</comment_count>
    <who name="Andrey Rahmatullin">wrar</who>
    <bug_when>2010-07-30 09:26:54 +0400</bug_when>
    <thetext>(В ответ на комментарий №11)
&gt; Ладно, попробую (наверно, только на след.неделе получится).
Зачем? У меня воспроизводится, баг в апстриме не закрыт.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>110930</commentid>
    <comment_count>13</comment_count>
    <who name="real@altlinux.org">real.altlinux.org</who>
    <bug_when>2010-08-02 06:54:09 +0400</bug_when>
    <thetext>Просто меня этот баг некоторым образом касается тоже.
Я имею в виду попробовать смоделировать ситуацию у себя с модулем питона, который поддерживаю я в сизифе (pygtk_git), и попробовать поковырять, если получится.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>111008</commentid>
    <comment_count>14</comment_count>
      <attachid>4484</attachid>
    <who name="real@altlinux.org">real.altlinux.org</who>
    <bug_when>2010-08-05 06:04:01 +0400</bug_when>
    <thetext>Created attachment 4484
Модификация тесткейса</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>111009</commentid>
    <comment_count>15</comment_count>
    <who name="real@altlinux.org">real.altlinux.org</who>
    <bug_when>2010-08-05 06:05:44 +0400</bug_when>
    <thetext>Такой код выводит корректный русский текст. Кстати, именно это и советовали по ссылке.

Так что, по-видимому, проблема не в pygtk, а в gettext (python-modules), но его чинить (если действительно надо чинить) мне не по силам. Его собирал sin@, может быть, он что-нибудь скажет на сей счёт?

В любом случае, сейчас есть 2 варианта: либо перевесить багу на python-modules, либо объявить её как NOTABUG.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>111012</commentid>
    <comment_count>16</comment_count>
    <who name="Andrey Rahmatullin">wrar</who>
    <bug_when>2010-08-05 09:54:44 +0400</bug_when>
    <thetext>Да мне пофигу, что будет с этой багой здесь, всё равно чинить её будут только в апстриме.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>111013</commentid>
    <comment_count>17</comment_count>
    <who name="real@altlinux.org">real.altlinux.org</who>
    <bug_when>2010-08-05 10:01:16 +0400</bug_when>
    <thetext>Да апстрим (глядя на python 3) день ото дня всё более неадекватным становится, так что мне слабо верится, что там хотя бы обратят внимание на такую проблему.

А здесь - глаза мозолит, тем более висит на компоненте, ни в чём не виноватом.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>111015</commentid>
    <comment_count>18</comment_count>
    <who name="Andrey Rahmatullin">wrar</who>
    <bug_when>2010-08-05 10:14:28 +0400</bug_when>
    <thetext>(В ответ на комментарий №17)
&gt; Да апстрим (глядя на python 3) день ото дня всё более неадекватным становится,
Апстрим pygtk к python 3 отношения не имеет.

&gt; на компоненте, ни в чём не виноватом.
Апстримный баг даёт понять, что это не совсем так.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="1"
              ispatch="0"
              isprivate="0"
          >
            <attachid>3596</attachid>
            <date>2009-06-08 21:03:53 +0400</date>
            <delta_ts>2010-07-30 08:56:50 +0400</delta_ts>
            <desc>тесткейс</desc>
            <filename>1.c</filename>
            <type>text/plain</type>
            <size>604</size>
            <attacher name="Andrey Rahmatullin">wrar</attacher>
            
              <data encoding="base64">I2luY2x1ZGUgPGd0ay9ndGsuaD4KCmludCBtYWluKGludCBhcmdjLCBjaGFyICphcmd2W10pCnsK
ICBndGtfaW5pdCgmYXJnYywgJmFyZ3YpOwogIEd0a0J1aWxkZXIqIGJ1aWxkZXIgPSBndGtfYnVp
bGRlcl9uZXcoKTsKICBndGtfYnVpbGRlcl9zZXRfdHJhbnNsYXRpb25fZG9tYWluKGJ1aWxkZXIs
ICJsaWJjIik7CiAgZ3RrX2J1aWxkZXJfYWRkX2Zyb21fc3RyaW5nKGJ1aWxkZXIsCiAgICAiPD94
bWwgdmVyc2lvbj1cIjEuMFwiPz4iCiAgICAiPGludGVyZmFjZT48b2JqZWN0IGNsYXNzPVwiR3Rr
RGlhbG9nXCIgaWQ9XCJkaWFsb2dcIj4iCiAgICAiPHByb3BlcnR5IG5hbWU9XCJ0aXRsZVwiIHRy
YW5zbGF0YWJsZT1cInllc1wiPlN1Y2Nlc3M8L3Byb3BlcnR5PiIKICAgICI8L29iamVjdD48L2lu
dGVyZmFjZT4iLAogICAgLTEsIDApOwogIEd0a1dpZGdldCogZGlhbG9nID0gKEd0a1dpZGdldCop
IGd0a19idWlsZGVyX2dldF9vYmplY3QoYnVpbGRlciwgImRpYWxvZyIpOwogIGd0a193aWRnZXRf
c2V0X3NpemVfcmVxdWVzdChkaWFsb2csIDMwMCwgMTAwKTsKICBndGtfd2lkZ2V0X3Nob3coZGlh
bG9nKTsKICBndGtfbWFpbigpOwogIHJldHVybiAwOwp9Cg==
</data>

          </attachment>
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>4484</attachid>
            <date>2010-08-05 06:04:01 +0400</date>
            <delta_ts>2010-08-05 06:04:01 +0400</delta_ts>
            <desc>Модификация тесткейса</desc>
            <filename>1.py</filename>
            <type>text/x-python</type>
            <size>472</size>
            <attacher name="real@altlinux.org">real.altlinux.org</attacher>
            
              <data encoding="base64">IyEvdXNyL2Jpbi9weXRob24KaW1wb3J0IGd0awppbXBvcnQgbG9jYWxlCmZyb20gbG9jYWxlIGlt
cG9ydCAqCgpzZXRsb2NhbGUoTENfQUxMLCAnJykKbG9jYWxlLmJpbmRfdGV4dGRvbWFpbl9jb2Rl
c2V0KCJsaWJjIiwgIlVURi04IikKQnVpbGRlciA9IGd0ay5CdWlsZGVyKCkKQnVpbGRlci5zZXRf
dHJhbnNsYXRpb25fZG9tYWluKCJsaWJjIikKQnVpbGRlci5hZGRfZnJvbV9zdHJpbmcoCiIiIjw/
eG1sIHZlcnNpb249IjEuMCI/Pgo8aW50ZXJmYWNlPjxvYmplY3QgY2xhc3M9Ikd0a0RpYWxvZyIg
aWQ9ImRpYWxvZyI+Cjxwcm9wZXJ0eSBuYW1lPSJ0aXRsZSIgdHJhbnNsYXRhYmxlPSJ5ZXMiPlN1
Y2Nlc3M8L3Byb3BlcnR5Pgo8L29iamVjdD48L2ludGVyZmFjZT4iIiIpCkRpYWxvZyA9IEJ1aWxk
ZXIuZ2V0X29iamVjdCgiZGlhbG9nIikKRGlhbG9nLnJlc2l6ZSgzMDAsIDEwMCkKRGlhbG9nLnNo
b3coKQpndGsubWFpbigpCg==
</data>

          </attachment>
      

    </bug>

</bugzilla>