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

Issue 174139: Fix Issue 19689: Command line URL parameter does not support Chinese.... (Closed)

Created:
11 years, 4 months ago by James Su
Modified:
9 years, 7 months ago
CC:
chromium-reviews_googlegroups.com, brettw
Visibility:
Public.

Description

Fix Issue 19689: Command line URL parameter does not support Chinese. This CL fixes issue 19689 by handling command line values with native encoding on non-Windows systems. For Linux, native encoding specified in current locale is used. For Mac, UTF-8 will always be used. This CL only changes command line values and program name to use native encoding, command line switches still use ASCII. BUG=19689 : Command line URL parameter does not support Chinese TEST=Execute chrome with "http://www.google.com/search?q=中文" to see if this url can be opened successfully. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=24423

Patch Set 1 #

Patch Set 2 : '' #

Patch Set 3 : '' #

Total comments: 2

Patch Set 4 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+16 lines, -9 lines) Patch
M base/command_line.cc View 1 2 3 5 chunks +9 lines, -9 lines 0 comments Download
M chrome/app/chrome_dll_main.cc View 3 2 chunks +7 lines, -0 lines 0 comments Download

Messages

Total messages: 14 (0 generated)
James Su
I just noticed this issue and made a simple patch for it. Regards James Su
11 years, 4 months ago (2009-08-20 12:01:57 UTC) #1
Evan Martin
I think the proper thing to use here is the stuff in sys_string_conversions, which ought ...
11 years, 4 months ago (2009-08-20 13:27:06 UTC) #2
James Su
Yes, sys_string_conversions would be more proper for Linux. Not sure if it's suitable for Mac. ...
11 years, 4 months ago (2009-08-20 15:23:14 UTC) #3
tony
Adding jungshik, although I imagine sys_string_conversions will be fine for linux.
11 years, 4 months ago (2009-08-20 19:04:25 UTC) #4
jungshik at Google
On 2009/08/20 19:04:25, tony wrote: > Adding jungshik, although I imagine sys_string_conversions will be fine ...
11 years, 4 months ago (2009-08-20 21:11:44 UTC) #5
James Su
Thanks for your comments. I'll update this CL asap. James Su On 2009/08/20 21:11:44, Jungshik ...
11 years, 4 months ago (2009-08-21 00:42:14 UTC) #6
James Su
CL has been updated to use functions in sys_string_conversions. I found that setlocale was not ...
11 years, 4 months ago (2009-08-21 02:49:03 UTC) #7
James Su
ping. On 2009/08/21 02:49:03, James Su wrote: > CL has been updated to use functions ...
11 years, 4 months ago (2009-08-26 01:03:12 UTC) #8
Evan Martin
LGTM http://codereview.chromium.org/174139/diff/1007/9 File chrome/app/chrome_dll_main.cc (right): http://codereview.chromium.org/174139/diff/1007/9#newcode332 Line 332: // set c library locale to make ...
11 years, 4 months ago (2009-08-26 01:05:40 UTC) #9
Evan Martin
Oh, and can you update the description? You no longer rely on UTF-8 explicitly.
11 years, 4 months ago (2009-08-26 01:05:59 UTC) #10
James Su
On 2009/08/26 01:05:59, Evan Martin wrote: > Oh, and can you update the description? You ...
11 years, 4 months ago (2009-08-26 01:16:13 UTC) #11
James Su
http://codereview.chromium.org/174139/diff/1007/9 File chrome/app/chrome_dll_main.cc (right): http://codereview.chromium.org/174139/diff/1007/9#newcode332 Line 332: // set c library locale to make sure ...
11 years, 4 months ago (2009-08-26 01:17:15 UTC) #12
James Su
11 years, 4 months ago (2009-08-26 01:17:27 UTC) #13
Evan Martin
11 years, 4 months ago (2009-08-26 01:23:12 UTC) #14
LGTM++

Powered by Google App Engine
This is Rietveld 408576698