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

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

    <bug>
          <bug_id>22462</bug_id>
          
          <creation_ts>2009-12-07 02:56:24 +0300</creation_ts>
          <short_desc>can&apos;t access a file with Russian name (in ru_RU.CP1251)</short_desc>
          <delta_ts>2010-01-06 20:56:08 +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>file-roller</component>
          <version>unstable</version>
          <rep_platform>all</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>10851</dup_id>
          
          <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="Yuri N. Sedunov">aris</assigned_to>
          <cc>aris</cc>
    
    <cc>mike</cc>
          
          <qa_contact>qa-sisyphus</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>103920</commentid>
    <comment_count>0</comment_count>
    <who name="Ivan Zakharyaschev">imz</who>
    <bug_when>2009-12-07 02:56:24 +0300</bug_when>
    <thetext>file-roller-2.26.2-alt1

glib2-2.22.2-alt1
libgio-2.22.2-alt1
libgtk+2-2.16.6-alt1
libnautilus-2.22.3-alt2

file-roller can&apos;t access a file with Russian name (at least, when working in ru_RU.CP1251).

How to reproduce:

$ locale
LANG=ru_RU.CP1251
LC_CTYPE=&quot;ru_RU.CP1251&quot;
LC_NUMERIC=&quot;ru_RU.CP1251&quot;
LC_TIME=&quot;ru_RU.CP1251&quot;
LC_COLLATE=&quot;ru_RU.CP1251&quot;
LC_MONETARY=&quot;ru_RU.CP1251&quot;
LC_MESSAGES=&quot;ru_RU.CP1251&quot;
LC_PAPER=&quot;ru_RU.CP1251&quot;
LC_NAME=&quot;ru_RU.CP1251&quot;
LC_ADDRESS=&quot;ru_RU.CP1251&quot;
LC_TELEPHONE=&quot;ru_RU.CP1251&quot;
LC_MEASUREMENT=&quot;ru_RU.CP1251&quot;
LC_IDENTIFICATION=&quot;ru_RU.CP1251&quot;
LC_ALL=
$ touch a 
$ zip a.zip a
  adding: a (stored 0%)
$ file-roller a.zip # Ok.
$ zip имя.zip a
  adding: a (stored 0%)
$ file-roller имя.zip 

It shows an error message: &quot;Не удалось открыть «имя.zip»

Файл не существует&quot;


Workaround:

Use &quot;unzip&quot;.

Also, selecting the file through the &quot;Open&quot; dialog in file-roller works (but the filename is not correctly displayed in the title of the window then--it is displayed as three framed Xs).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>103921</commentid>
    <comment_count>1</comment_count>
    <who name="Ivan Zakharyaschev">imz</who>
    <bug_when>2009-12-07 02:59:03 +0300</bug_when>
    <thetext>Details:

$ strace -e trace=file file-roller имя.zip 2&gt;&amp;1 | fgrep .zip   
execve(&quot;/usr/bin/file-roller&quot;, [&quot;file-roller&quot;, &quot;\350\354\377.zip&quot;], [/* 63 vars */]) = 0
lstat64(&quot;/home/mama/tech-problems/zip-Russian/\320\270\320\274\321\217.zip&quot;, 0xbff35130) = -1 ENOENT (No such file or directory)
$</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>103922</commentid>
    <comment_count>2</comment_count>
    <who name="Ivan Zakharyaschev">imz</who>
    <bug_when>2009-12-07 03:00:00 +0300</bug_when>
    <thetext>+1 workaround: use xarchiver-0.5.2-alt1.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>103926</commentid>
    <comment_count>3</comment_count>
    <who name="Ivan Zakharyaschev">imz</who>
    <bug_when>2009-12-07 03:12:09 +0300</bug_when>
    <thetext>So neither archive manager with GUI (file-roller or xarchiver) is working well with Russian filenames: cf. https://bugzilla.altlinux.org/show_bug.cgi?id=22463 -- either the problem is with a Russian name of an included file, or with a Russian name of the archive file. :(</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>103928</commentid>
    <comment_count>4</comment_count>
    <who name="Ivan Zakharyaschev">imz</who>
    <bug_when>2009-12-07 03:24:37 +0300</bug_when>
    <thetext>(In reply to comment #3)
&gt; So neither archive manager with GUI (file-roller or xarchiver) is working well
&gt; with Russian filenames: cf. https://bugzilla.altlinux.org/show_bug.cgi?id=22463
&gt; -- either the problem is with a Russian name of an included file, or with a
&gt; Russian name of the archive file. :(

Workaround: /usr/lib/kde4/bin/ark from kde4utils-ark-4.3.3-alt0.M51.1 works fine in this situation.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>103979</commentid>
    <comment_count>5</comment_count>
    <who name="Michael Shigorin">mike</who>
    <bug_when>2009-12-08 15:33:47 +0300</bug_when>
    <thetext>I&apos;m afraid gtk/gnome folks just can&apos;t imagine 8-bit locales...  I&apos;ve patched file-roller a few years ago (before unzip was patched to cope with charsets), but please clarify: is it feasible for you to follow the masses and migrate to UTF-8 (which I started for new systems but didn&apos;t do for existing ones yet myself), *or* should I try and dig it up, update and apply to the package?

[moving to Sisyphus as that&apos;s where the bug might be fixed before copying/backporting the package]</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>105208</commentid>
    <comment_count>6</comment_count>
    <who name="Michael Shigorin">mike</who>
    <bug_when>2010-01-06 20:56:08 +0300</bug_when>
    <thetext>BTW I&apos;ve partially fixed this a while ago for a customer, patches were posted.

*** This bug has been marked as a duplicate of bug 10851 ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>