Bugfix https://tizendev.org/bugs/browse/TDIS-4756
authorZbigniew Kostrzewa <z.kostrzewa@samsung.com>
Wed, 17 Apr 2013 05:54:23 +0000 (07:54 +0200)
committerGerrit Code Review <gerrit2@kim11>
Thu, 18 Apr 2013 07:30:58 +0000 (16:30 +0900)
[Issue#] N/A
[Problem] Conversion of IRI encoded in Unicode to ASCII failed
on some platforms but on others succeeded.
[Cause] Due to char type being treated as signed on some platforms and
unsigned on others.
[Solution] The code that causes the issue is not used so it has been
removed.
[SCMRequest] N/A

[Verification]
1. Build respository.
2. Run `wrt-extra-tests-w3c-widget-policy --output=text
--regexp='load_image_using_toASCII'`

Change-Id: Ie56e2b6a3b673617350836d688032c63c0b9c0b1

modules/utils/src/warp_iri.cpp

index ae30121..4f6aa0c 100644 (file)
@@ -111,8 +111,6 @@ void WarpIRI::set(const char *p_iri,
         }
     }
 
-    DPL::String str = DPL::FromASCIIString(std::string(iri->host));
-
     std::string utf8host = iri->host;
     std::list<std::string> hostTokenList;
     DPL::Tokenize(utf8host, ".", std::front_inserter(hostTokenList));