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

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

    <bug>
          <bug_id>22461</bug_id>
          
          <creation_ts>2009-12-06 21:25:23 +0300</creation_ts>
          <short_desc>breaks when displaying filenames in the GUI (in ru_RU.KOI8-R)</short_desc>
          <delta_ts>2010-01-05 04:21:02 +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>fslint</component>
          <version>unstable</version>
          <rep_platform>all</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>WORKSFORME</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P3</priority>
          <bug_severity>major</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Ivan Zakharyaschev">imz</reporter>
          <assigned_to name="Ivan Zakharyaschev">imz</assigned_to>
          <cc>antohami</cc>
    
    <cc>cas</cc>
    
    <cc>cow</cc>
    
    <cc>darktemplar</cc>
    
    <cc>enp</cc>
    
    <cc>evg</cc>
    
    <cc>george</cc>
    
    <cc>grenka</cc>
    
    <cc>lav</cc>
    
    <cc>mithraen</cc>
    
    <cc>nbr</cc>
    
    <cc>obirvalger</cc>
    
    <cc>qa_viy</cc>
    
    <cc>rider</cc>
    
    <cc>sem</cc>
    
    <cc>shaba</cc>
    
    <cc>sin</cc>
    
    <cc>slev</cc>
    
    <cc>vitty</cc>
    
    <cc>viy</cc>
          
          <qa_contact>qa-sisyphus</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>103913</commentid>
    <comment_count>0</comment_count>
    <who name="Ivan Zakharyaschev">imz</who>
    <bug_when>2009-12-06 21:25:23 +0300</bug_when>
    <thetext>fslint-2.40-alt1
libpango-1.24.5-alt1
$ rpm -qa &apos;*pygtk*&apos;
python-module-pygtk-libglade-2.16.0-alt3
python-module-pygtk-2.16.0-alt3
python-module-pygtkimageview-1.1.0-alt1
python-module-pygtksourceview-2.0.0-alt2.1
$ 

If I run fslint (under ru_RU.KOI8-R locale), it breaks when displaying filenames.

How to reproduce:

$ mkdir fslint
$ cd fslint/
$ echo a &gt; a 
$ echo a &gt; a.cp
$ locale
LANG=ru_RU.KOI8-R
LC_CTYPE=&quot;ru_RU.KOI8-R&quot;
LC_NUMERIC=&quot;ru_RU.KOI8-R&quot;
LC_TIME=&quot;ru_RU.KOI8-R&quot;
LC_COLLATE=&quot;ru_RU.KOI8-R&quot;
LC_MONETARY=&quot;ru_RU.KOI8-R&quot;
LC_MESSAGES=POSIX
LC_PAPER=&quot;ru_RU.KOI8-R&quot;
LC_NAME=&quot;ru_RU.KOI8-R&quot;
LC_ADDRESS=&quot;ru_RU.KOI8-R&quot;
LC_TELEPHONE=&quot;ru_RU.KOI8-R&quot;
LC_MEASUREMENT=&quot;ru_RU.KOI8-R&quot;
LC_IDENTIFICATION=&quot;ru_RU.KOI8-R&quot;
LC_ALL=
$ fslint-gui ./ 
/usr/bin/fslint-gui:1282: PangoWarning: Invalid UTF-8 string passed to pango_layout_set_text()
  clist.columns_autosize()
/usr/bin/fslint-gui:1283: PangoWarning: Invalid UTF-8 string passed to pango_layout_set_text()
  clist.thaw()
/usr/bin/fslint-gui:1943: PangoWarning: Invalid UTF-8 string passed to pango_layout_set_text()
  gtk.main ()

What I do in the GUI is pressing &quot;Find&quot; (it means find duplicates). After working (examining the FS), it tries to display the results and breaks; it prints the following error message in the area in the lower part of the GUI:

&lt;type &apos;exceptions.UnicodeDecodeError&apos;&gt;: &apos;utf8&apos; codec can&apos;t decode byte 0x9a in position 2: unexpected code byte

At the same time, in the &quot;Name&quot; column, I see smth that looks like &quot;2 x 2&quot;, and in the &quot;Directory&quot; column smth that looks like &quot;4X096&quot; (&quot;X&quot; is framed), and in the &quot;Date&quot; column the string &quot;bytes wasted&quot;.

Expected:

If I run it like this:

$ LC_ALL=C fslint-gui ./ 

then there are no exception, and the 2 filenames appear in the output in addition to the first line (described above).

More info:

$ /usr/share/fslint/fslint/findup ./      
a
a.cp
$</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>105134</commentid>
    <comment_count>1</comment_count>
    <who name="Slava Dubrovskiy">dubrsl</who>
    <bug_when>2010-01-04 04:20:56 +0300</bug_when>
    <thetext>Не могу воспроизвести.
$ rpm -qa &apos;*pygtk*&apos;
python-module-pygtk-libglade-2.17.0-alt1
python-module-pygtk-2.17.0-alt1

libpango-1.26.2-alt1

Может обновление исправило проблему или то, что у меня utf8 влияет. Но и в C тоже работает все.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>105152</commentid>
    <comment_count>2</comment_count>
    <who name="Vitaly Lipatov">lav</who>
    <bug_when>2010-01-05 04:21:02 +0300</bug_when>
    <thetext>Поскольку проблема именно при KOI8-R, конечно в UTF-8 не воспроизвести.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>