[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#293416: marked as done (ark National symbols problem)



Your message dated Sat, 29 Dec 2007 18:51:06 -0500
with message-id <9f694b820712291551v337e4150lb2317b0d9a63dc69@mail.gmail.com>
and subject line Closing bug 293416
has caused the attached Bug report to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

--- Begin Message ---
Package: ark
Version: 3.3.2-1

I am using Debian GNU/Linux 3.0 unstable, kernel 2.6.9-1-686 and libc6 
2.3.2.ds1-16.

Version: ark 2.4.0
Version: KDE 3.3.2
Version: Qt 3.3.3

Problem:
If file name contains national symbols, they will be replaced with relevant 
symbols from "latin1" codepage.
Attempt to open or view such a file from archive will generate "file not 
found" message.

I developed patch which fixes these issues.
-- 
Sergey Tikhonenko
e-mail: tserge mail.ru
diff -Naur kdeutils-3.3.2.orig/ark/arch.cpp kdeutils-3.3.2/ark/arch.cpp
--- kdeutils-3.3.2.orig/ark/arch.cpp	Sun Jan 30 21:26:45 2005
+++ kdeutils-3.3.2/ark/arch.cpp	Sun Jan 30 20:48:53 2005
@@ -334,7 +334,7 @@
 
 	pos = strpos + len;
 
-	columns[curCol->colRef] = line.mid(strpos, len);
+	columns[curCol->colRef] = QString::fromLocal8Bit( line.mid(strpos, len) );
   }
 
 
diff -Naur kdeutils-3.3.2.orig/ark/arch.h kdeutils-3.3.2/ark/arch.h
--- kdeutils-3.3.2.orig/ark/arch.h	Sun Jan 30 21:26:45 2005
+++ kdeutils-3.3.2/ark/arch.h	Sun Jan 30 21:16:17 2005
@@ -134,7 +134,7 @@
 
   QString getUtility() { return m_archiver_program; }
 
-  void appendShellOutputData( const char * data ) { m_lastShellOutput.append( data ); }
+  void appendShellOutputData( const char * data ) { m_lastShellOutput.append( QString::fromLocal8Bit( data ) ); }
   void clearShellOutput() { m_lastShellOutput.truncate( 0 ); }
   const QString& getLastShellOutput() const { return m_lastShellOutput; }
 
diff -Naur kdeutils-3.3.2.orig/ark/rar.cpp kdeutils-3.3.2/ark/rar.cpp
--- kdeutils-3.3.2.orig/ark/rar.cpp	Sun Jan 30 21:26:45 2005
+++ kdeutils-3.3.2/ark/rar.cpp	Sun Jan 30 21:02:10 2005
@@ -77,7 +77,7 @@
 {
   if ( m_isFirstLine )
   {
-    m_fileName = line;
+    m_fileName = QString::fromLocal8Bit( line );
     m_fileName.remove( 0, 1 );
     m_isFirstLine = false;
     return true;

--- End Message ---
--- Begin Message ---
This bug has been fixed.
Feel free to reopen this bug if you are still experiencing this issue
and you have extra information on how reproduce the issue.

Thanks,
Olivier Vitrat
helper for the Debian Qt/KDE team


--- End Message ---

Reply to: