- fix <rdar://problem/
5315265> REGRESSION: Leopard launch time -
there are about 190 stats of icudt36b files during launch
* platform/TextEncodingRegistry.cpp: (WebCore::atomicCanonicalTextEncodingName):
Add a special case for the empty string so we don't load the extended text
encodings just so we can return 0 for that case.
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@24203
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
+2007-07-11 Darin Adler <darin@apple.com>
+
+ Reviewed by Sam Weinig.
+
+ - fix <rdar://problem/5315265> REGRESSION: Leopard launch time -
+ there are about 190 stats of icudt36b files during launch
+
+ * platform/TextEncodingRegistry.cpp: (WebCore::atomicCanonicalTextEncodingName):
+ Add a special case for the empty string so we don't load the extended text
+ encodings just so we can return 0 for that case.
+
2007-07-11 Anders Carlsson <andersca@apple.com>
Reviewed by Darin.
const char* atomicCanonicalTextEncodingName(const char* name)
{
- if (!name)
+ if (!name || !name[0])
return 0;
if (!textEncodingNameMap)
buildBaseTextCodecMaps();