Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(289)

Issue 149449: Fix: Linux file:// listings are sorted but not fully internationalized... (Closed)

Created:
11 years, 5 months ago by Yuzo
Modified:
9 years, 7 months ago
Reviewers:
TVL, jungshik at Google
CC:
chromium-reviews_googlegroups.com, John Grabowski, brettw
Base URL:
svn://chrome-svn.corp.google.com/chrome/trunk/src/
Visibility:
Public.

Description

Fix: Linux file:// listings are sorted but not fully internationalized Changed the code such that file names are converted to UTF-16 before comparison by a Collator. BUG=16179 TEST=Open a file:// URL for a directory that contains files with international names. Observe that files are sorted properly in the list. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=20706

Patch Set 1 #

Patch Set 2 : '' #

Total comments: 7

Patch Set 3 : '' #

Total comments: 8

Patch Set 4 : '' #

Total comments: 8

Patch Set 5 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+67 lines, -12 lines) Patch
M base/file_util_posix.cc View 1 2 3 4 3 chunks +67 lines, -12 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
Yuzo
Hi, Jungshik, Can you review this? Yuzo
11 years, 5 months ago (2009-07-10 08:33:37 UTC) #1
TVL
driveby http://codereview.chromium.org/149449/diff/6/1001 File base/file_util_posix.cc (right): http://codereview.chromium.org/149449/diff/6/1001#newcode587 Line 587: // On linux, the file system encoding ...
11 years, 5 months ago (2009-07-10 12:18:27 UTC) #2
jungshik at Google
Thank you for catching this !! See my comments below. http://codereview.chromium.org/149449/diff/6/1001 File base/file_util_posix.cc (right): http://codereview.chromium.org/149449/diff/6/1001#newcode587 ...
11 years, 5 months ago (2009-07-10 18:24:44 UTC) #3
Yuzo
Thank you for your reviews. Can you take another look? Yuzo http://codereview.chromium.org/149449/diff/6/1001 File base/file_util_posix.cc (right): ...
11 years, 5 months ago (2009-07-13 07:45:11 UTC) #4
jungshik at Google
Thank you for addressing my comment. Let's just go over once more. http://codereview.chromium.org/149449/diff/11/1004 File base/file_util_posix.cc ...
11 years, 5 months ago (2009-07-13 19:14:23 UTC) #5
Yuzo
Hi, Jungshik, Thank you very much for the detailed review -- I learned a lot. ...
11 years, 5 months ago (2009-07-14 03:56:56 UTC) #6
jungshik at Google
LGTM !! Thank you for the fix ! http://codereview.chromium.org/149449/diff/1007/1008 File base/file_util_posix.cc (right): http://codereview.chromium.org/149449/diff/1007/1008#newcode60 Line 60: ...
11 years, 5 months ago (2009-07-14 05:36:26 UTC) #7
Yuzo
11 years, 5 months ago (2009-07-14 06:27:52 UTC) #8
Jungshik,

Thank you for reviewing this. All comments have been addressed.
I'll submit this shortly.

Yuzo

http://codereview.chromium.org/149449/diff/1007/1008
File base/file_util_posix.cc (right):

http://codereview.chromium.org/149449/diff/1007/1008#newcode60
Line 60: collator_->setStrength(Collator::TERTIARY);
On 2009/07/14 05:36:27, Jungshik Shin wrote:
> Yet another concern on Linux I meant to mention in the previous comment but
> forgot is that filenames can be in a non-FCD form (
> http://unicode.org/notes/tn5/#FCD ). However, the change is very low and I
guess
> we don't have to turn the attribute for normalization on.  (
>
http://icu-project.org/apiref/icu4c/ucol_8h.html#583fbe7fc4a850e2fcc692e766d2...
> ). Another brief comment to that effect would be nice. Sorry for asking yet
> another comment :-)
> 

I've learned yet another bit of UNICODE. :)
Comment added.

http://codereview.chromium.org/149449/diff/1007/1008#newcode65
Line 65: // TODO(yuzo): Move all or some of l10n_util to base.
On 2009/07/14 05:36:27, Jungshik Shin wrote:
> nit: I think only some of l10n_utils have to be moved :-). So, "Move some of
> ...' :-)
> 

Changed.

http://codereview.chromium.org/149449/diff/1007/1008#newcode87
Line 87: DISALLOW_EVIL_CONSTRUCTORS(LocaleAwareComparator);
On 2009/07/14 05:36:27, Jungshik Shin wrote:
> nit: DISALLOW_COPY_AND_ASSIGN

Changed.

http://codereview.chromium.org/149449/diff/1007/1008#newcode102
Line 102: // TODO(yuzo): Perhaps we should define SysNativeMBToUTF16?
On 2009/07/14 05:36:27, Jungshik Shin wrote:
> yup. I put exactly the same TODO comment in another CL. :-)

I see.

Powered by Google App Engine
This is Rietveld 408576698