Bug 507831 - unable to change encoding for ftp
unable to change encoding for ftp
Status: CLOSED UPSTREAM
Product: Fedora
Classification: Fedora
Component: firefox (Show other bugs)
11
All Linux
low Severity medium
: ---
: ---
Assigned To: Gecko Maintainer
Fedora Extras Quality Assurance
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2009-06-24 09:10 EDT by Stas Sergeev
Modified: 2009-06-24 18:19 EDT (History)
2 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2009-06-24 16:59:35 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)
illustration of the localized FTP (60.61 KB, image/png)
2009-06-24 10:38 EDT, Matěj Cepl
no flags Details
screenshot (67.17 KB, image/png)
2009-06-24 12:52 EDT, Stas Sergeev
no flags Details


External Trackers
Tracker ID Priority Status Summary Last Updated
Mozilla Foundation 500282 None None None Never

  None (edit)
Description Stas Sergeev 2009-06-24 09:10:38 EDT
Description of problem:
Changing the encoding while browsing ftp
doesn't work. No matter which I select,
it resets back to 1251.

Version-Release number of selected component (if applicable):
firefox-3.5-0.20.beta4.fc11.x86_64

How reproducible:
Always

Steps to Reproduce:
1. Go ftp://download.fedora.redhat.com/pub
or to any other ftp
2. Change encoding to UTF-8 or any other
3. Check to see if it have changed
  
Actual results:
The encoding doesn't change. Neither in the page,
nor in the UI itself.

Expected results:
Encoding should switch.

Additional info:
This was never the case with the previous firefox
releases.
Comment 1 Matěj Cepl 2009-06-24 10:38:20 EDT
Created attachment 349249 [details]
illustration of the localized FTP

What's your locale (output of the program locale in the command line) and what's the language of your browser? Apparently we try to provide localized terminology in FTP and switching from UTF-8 to 8859-* encoding.

What's actually your problem with this?
Comment 2 Stas Sergeev 2009-06-24 11:29:41 EDT
> What's your locale (output of the program locale in the command line) and
> what's the language of your browser?
My locale is ru_RU.UTF-8 and the language of
firefox is Russian.

> What's actually your problem with this?
I am not sure I understand what you say, but
my problem is that this particular release of
firefox doesn't allow me to select the ftp
encoding, while the previous ones did that fine.
My firefox is set up to have the 1251 encoding
by default, and for some reasons, the default
encoding is now the only encoding it allows
for FTP. The selection via View->Encoding UI
simply doesn't work. Whatever I select, it stays
on 1251. That's the UI bug, the selection should
work, as it always did before. It is not a
locale-specific bug or whatever, just a simple
UI bug. Selecting from the encoding list doesn't
work.
Comment 3 Matěj Cepl 2009-06-24 12:33:53 EDT
(In reply to comment #2)
> > What's actually your problem with this?
> I am not sure I understand what you say, but
> my problem is that this particular release of
> firefox doesn't allow me to select the ftp
> encoding, while the previous ones did that fine.

There is no such thing as "FTP encoding", these are just Firefox generated pages which presents structure of FTP directories. What I meant was asking you for some kind of use case where changing encoding could be useful?

Could you give us a screenshot of the FTP directory in your browser, please? Is it unreadable?

Thank you very much for your cooperation
Comment 4 Stas Sergeev 2009-06-24 12:47:40 EDT
> There is no such thing as "FTP encoding", these are just Firefox generated
> pages which presents structure of FTP directories.
Yes, and View->Encoding dialog used to affect them,
as well as the normal web pages. Now, it works only
for the normal web pages, but not for the FTP pages,
even if they are just the same pages.

> Could you give us a screenshot of the FTP directory in your browser, please?
> Is it unreadable?
I'll make it now, and will attach.
Yes, it is unreadable.
And I repeat: this used to work before.
Comment 5 Stas Sergeev 2009-06-24 12:52:28 EDT
Created attachment 349277 [details]
screenshot

I created a few files with the russian
names, and they are unreadable. If I would
be able to select UTF8, they would became
readable. That was possible in all the previous
releases of firefox, but not any more.
Comment 6 Matěj Cepl 2009-06-24 15:51:16 EDT
(In reply to comment #5)
> I created a few files with the russian
> names, and they are unreadable. If I would
> be able to select UTF8, they would became
> readable. That was possible in all the previous
> releases of firefox, but not any more.  

OK, so it is just filenames, right? Hmm, that could be the issue. I suppose names of those remote files are not UTF-8 encoded, right? Can you by chance got their names in other ftp client with correct encoding?
Comment 7 Stas Sergeev 2009-06-24 15:57:16 EDT
> OK, so it is just filenames, right?
What else could it be on ftp? :)

> I suppose
> names of those remote files are not UTF-8 encoded, right?
They _are_ utf-8 encoded. I created them so.

> Can you by chance got
> their names in other ftp client with correct encoding?
Not too much of them allows to select the encoding,
but firefox did. Now it doesn't. The encoding selection
simply doesn't work when you browse ftp.
Could you just try that yourself? Its not difficult,
just try to change the encoding. It doesn't change.
Comment 8 Stas Sergeev 2009-06-24 16:03:01 EDT
Just tried: even the command-line ftp client
gets them right, as thay are utf8-encoded, and
the locale is utf8 too.
Please just check and see that the firefox doesn't
change the encoding in this release.
Comment 9 Matěj Cepl 2009-06-24 16:59:35 EDT
We filed this bug in the upstream database (https://bugzilla.mozilla.org/show_bug.cgi?id=500282) and believe that it is more appropriate to let it be resolved upstream.

We will continue to track the issue in the centralized upstream bug tracker, and will review any bug fixes that become available for consideration in future updates.

Thank you for the bug report.
Comment 10 Stas Sergeev 2009-06-24 17:47:24 EDT
Just a few notes about the upstream report you filled:

The test URL that you took from the screenshot, is my PC.
It will now disappear, as I go to sleep and switch it off. :)

You haven't mentioned that this always used to work before.
That might be very important. I always enjoyed the fact that
firefox has this feature while the IE does not (or I wasn't
able to find). And now it have disappeared here as well.
Comment 11 Matěj Cepl 2009-06-24 18:19:02 EDT
(In reply to comment #10)
> Just a few notes about the upstream report you filled:
> 
> The test URL that you took from the screenshot, is my PC.
> It will now disappear, as I go to sleep and switch it off. :)
> 
> You haven't mentioned that this always used to work before.
> That might be very important. I always enjoyed the fact that
> firefox has this feature while the IE does not (or I wasn't
> able to find). And now it have disappeared here as well.  

I think the best thing to do is to join the bug upstream and correct my mistakes.

Note You need to log in before you can comment on or make changes to this bug.