All host names with nonascii characters (cyrillic) + escapable characters
commite4c7e68d9ee7a657bfc9fbe3bc8fc32f68e1314d
authorbrettw@gmail.com <brettw@gmail.com@8873c55e-713a-0410-88f8-23d9c3d90b1b>
Tue, 18 Aug 2009 23:48:04 +0000 (18 23:48 +0000)
committerbrettw@gmail.com <brettw@gmail.com@8873c55e-713a-0410-88f8-23d9c3d90b1b>
Tue, 18 Aug 2009 23:48:04 +0000 (18 23:48 +0000)
tree8e1bba2771806df72e4b61a725160d632f028231
parent385bd52c80deff008c821e83a1f0bc6bd5be5541
All host names with nonascii characters (cyrillic) + escapable characters
(,)...  were shown corrupted in suggestion box in Omnibox2, because we escaped
punicode string after it was created. I added some more escaping before IDNA
conversion.

Unittest updated, and main method added so we can init ICU data properly.

http://crbug.com/5490
TEST=Follow bug description, and make sure that test is as expected (orignal
text+%28).

Patch by: cira@chromium.org
Review: http://codereview.chromium.org/160589

git-svn-id: http://google-url.googlecode.com/svn/trunk@113 8873c55e-713a-0410-88f8-23d9c3d90b1b
src/gurl_test_main.cc [new file with mode: 0644]
src/url_canon_host.cc
src/url_canon_internal.h
src/url_canon_unittest.cc