Bug 74980 - Support changing charset for remote filenames
Summary: Support changing charset for remote filenames
Status: RESOLVED FIXED
Alias: None
Product: kio
Classification: Unmaintained
Component: fish (show other bugs)
Version: unspecified
Platform: unspecified Linux
: NOR wishlist
Target Milestone: ---
Assignee: Jörg Walter
URL:
Keywords:
: 81373 85509 (view as bug list)
Depends on:
Blocks:
 
Reported: 2004-02-11 18:05 UTC by Thiago Macieira
Modified: 2005-01-19 23:19 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
Image with the problem (142.85 KB, image/png)
2005-01-19 16:50 UTC, Gustavo Michels
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Thiago Macieira 2004-02-11 18:05:59 UTC
Version:           unknown (using KDE 3.2.0 RC1, compiled sources)
Compiler:          gcc version 3.3.2
OS:          Linux (i686) release 2.6.1

I'm marking this as a wishlist because it's an unimplemented feature. However, given that the menu option for changing charsets is already enabled for fish, from the user point of view, this is a bug.

Please see Bug #56197 for information on what this is about: fish has to support changing the encoding for the filenames received from the server. To do that, all it has to do is use KIO::SlaveBase::remoteEncoding() (http://developer.kde.org/documentation/library/cvs-api/kio/html/classKIO_1_1SlaveBase.html#a33).
Comment 1 Nicolas Goutte 2004-07-31 18:24:54 UTC
See also bug #81373 and bug #85509
Comment 2 Thiago Macieira 2004-08-11 00:24:09 UTC
*** Bug 81373 has been marked as a duplicate of this bug. ***
Comment 3 Thiago Macieira 2004-08-11 00:24:52 UTC
*** Bug 85509 has been marked as a duplicate of this bug. ***
Comment 4 Toomas Mõttus 2004-09-13 16:56:04 UTC
I have the same problem with Estonian locale on SuSE 9.1 (2.6.5 ; UTF-8). Display and handling of ISO characters with fish is OK, but UTF-8 does not work. It seems to be problem between ssh and KIO, as files are displayed (although not properly), but commands sent to ssh do not work (file names are wrong).

I did get fish working "properly" if I used ISO encoding - 'export LANG=et_EE.iso8859-15' or 'export LANG=et_EE@euro' - in ~/.profile file. Filenames were gibberish but copy, paste and so on, worked fine.

All file manipulations quit working after I changed language settings back to UTF-8 'export LANG=et_EE.UTF-8'. FISH did still work, but could not enter folders with non-ANSI characters and copy, move etc. did not work.

File names are UTF-8 (checked with convmv script provided in distribution)
All files look ok with SSH and all file manipulations work OK.
FISH protocol shows files and manipulation is OK if LANG is set et_EE@euro (ISO).
Changing remote character set has no impact.
SSH version: OpenSSH_3.8p1, SSH protocols 1.5/2.0, OpenSSL 0.9.7d 17 Mar 2004

I hope it explains the issue further.
Comment 5 Thiago Macieira 2004-09-13 23:44:23 UTC
Toomas: it is enough that kio_fish be ported to use the new functions, I believe.
Comment 6 Toomas Mõttus 2004-09-14 08:55:45 UTC
Thiago: What do you have in mind by 'ported'? Do you mean ported to Estonian language? It is not the case, as I had default setting of English with UTF-8. I started tinkering with language settings only after I encountered problems. 

The problem seems to be in the process:
ssh sends file names -> kio_fish assumes them to be ISO something (or konqueror assumes that) -> File names are displayed wrongly in file manager -> Sends command to SSH in UTF-8 without changing encoding (wrong file names now).

For example: I get filenames that look something like bx;c:dh (just for visualisation. No actual name). I decide to correct the filename and rename it to 'big fish'. I get a dialog stating that a file with that name already exists and do I want to replace it. Therefore I assume, that kio_fish sends information correctly in UTF-8 (the dialog window also displays new filename correctly). Problem is in recieving part and interpreting the input.

I am using KDE 3.3.0 btw.
Comment 7 Thiago Macieira 2004-09-14 11:37:05 UTC
> Thiago: What do you have in mind by 'ported'?

What I had already said in the original bug description. See comment #0.
Comment 8 Waldo Bastian 2004-09-21 17:38:09 UTC
CVS commit by waba: 

Use remoteEncoding() (BR74980)
CCMAIL: 74980-done@bugs.kde.org


  M +49 -35    fish.cpp   1.54



Comment 9 Gustavo Michels 2005-01-19 16:49:28 UTC
Are you sure it's fixed? I am having this problem using kde-3.3.2. See attachment.
Comment 10 Gustavo Michels 2005-01-19 16:50:19 UTC
Created attachment 9176 [details]
Image with the problem

Both my and targe system are set to UTF-8.
Comment 11 Thiago Macieira 2005-01-19 23:19:03 UTC
Working fine with HEAD 20050104.