diff options
author | phajdan.jr@chromium.org <phajdan.jr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-04-06 07:26:52 +0000 |
---|---|---|
committer | phajdan.jr@chromium.org <phajdan.jr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-04-06 07:26:52 +0000 |
commit | da322acaebe30d84d9d8b6931752ab27333c3d36 (patch) | |
tree | c47effc5bec77fd099af537193fd0bff13a9629a /net/data/ftp/dir-listing-ls-27.expected | |
parent | 8ceea64ea9e45f97f2bac1df84e770ee23cca0e1 (diff) | |
download | chromium_src-da322acaebe30d84d9d8b6931752ab27333c3d36.zip chromium_src-da322acaebe30d84d9d8b6931752ab27333c3d36.tar.gz chromium_src-da322acaebe30d84d9d8b6931752ab27333c3d36.tar.bz2 |
FTP: Multiple fixes for localized directory listings:
- fix detection of KOI8-R and possibly other encodings
- fix parsing Russian month names
When detecting the listing encoding, we need to not only
check whether the data can be converted using given encoding,
but also whether the result can be parsed as a valid directory listing.
Also, we only need to compare the first three characters of the
abbreviated month name, because that's how they're abbreviated
in FTP directory listings.
Finally, the Russian directory listings have swapped the "month" and "day of month" columns.
BUG=65917
Review URL: http://codereview.chromium.org/6718043
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@80587 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/data/ftp/dir-listing-ls-27.expected')
-rw-r--r-- | net/data/ftp/dir-listing-ls-27.expected | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/net/data/ftp/dir-listing-ls-27.expected b/net/data/ftp/dir-listing-ls-27.expected new file mode 100644 index 0000000..3405f86 --- /dev/null +++ b/net/data/ftp/dir-listing-ls-27.expected @@ -0,0 +1,53 @@ +d +. +-1 +1994 +4 +15 +18 +11 + +d +.. +-1 +1994 +7 +15 +18 +11 + +- +.message +528 +2007 +5 +1 +0 +0 + +- +README +528 +2007 +11 +1 +0 +0 + +- +index.html +560 +2007 +9 +28 +0 +0 + +d +pub +-1 +2008 +2 +12 +0 +0 |