|
|
FTP: improve character encoding detection in cases where ICU's first guess is wrong.
Instead of using ICU's first guessed encoding immediately,
we ask it for all possible encodings, try them in order,
and use the first one that works.
For some sites this still results in a gibberish being displayed,
but at least the links are clickable so the site navigation
is possible.
BUG= 61073
TEST=see bug
Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=66664
Total comments: 10
Total comments: 3
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+871 lines, -34 lines) |
Patch |
 |
M |
base/i18n/icu_encoding_detection.h
|
View
|
|
2 chunks |
+6 lines, -0 lines |
0 comments
|
Download
|
 |
M |
base/i18n/icu_encoding_detection.cc
|
View
|
1
|
3 chunks |
+31 lines, -5 lines |
3 comments
|
Download
|
 |
A |
net/data/ftp/dir-listing-ls-20
|
View
|
|
1 chunk |
+18 lines, -0 lines |
0 comments
|
Download
|
 |
A |
net/data/ftp/dir-listing-ls-20.expected
|
View
|
|
1 chunk |
+161 lines, -0 lines |
0 comments
|
Download
|
 |
A |
net/data/ftp/dir-listing-ls-21
|
View
|
|
1 chunk |
+27 lines, -0 lines |
0 comments
|
Download
|
 |
A |
net/data/ftp/dir-listing-ls-21.expected
|
View
|
|
1 chunk |
+242 lines, -0 lines |
0 comments
|
Download
|
 |
A |
net/data/ftp/dir-listing-ls-22
|
View
|
|
1 chunk |
+32 lines, -0 lines |
0 comments
|
Download
|
 |
A |
net/data/ftp/dir-listing-ls-22.expected
|
View
|
|
1 chunk |
+287 lines, -0 lines |
0 comments
|
Download
|
 |
M |
net/ftp/ftp_directory_listing_buffer.h
|
View
|
1
|
2 chunks |
+18 lines, -8 lines |
0 comments
|
Download
|
 |
M |
net/ftp/ftp_directory_listing_buffer.cc
|
View
|
1
|
3 chunks |
+46 lines, -21 lines |
0 comments
|
Download
|
 |
M |
net/ftp/ftp_directory_listing_buffer_unittest.cc
|
View
|
|
1 chunk |
+3 lines, -0 lines |
0 comments
|
Download
|
Total messages: 6 (0 generated)
|