diff options
author | Lorry Tar Creator <lorry-tar-importer@baserock.org> | 2014-03-26 19:21:20 +0000 |
---|---|---|
committer | <> | 2014-05-08 15:03:54 +0000 |
commit | fb123f93f9f5ce42c8e5785d2f8e0edaf951740e (patch) | |
tree | c2103d76aec5f1f10892cd1d3a38e24f665ae5db /src/libs/xpcom18a4/xpcom/io/nsNativeCharsetUtils.cpp | |
parent | 58ed4748338f9466599adfc8a9171280ed99e23f (diff) | |
download | VirtualBox-master.tar.gz |
Imported from /home/lorry/working-area/delta_VirtualBox/VirtualBox-4.3.10.tar.bz2.HEADVirtualBox-4.3.10master
Diffstat (limited to 'src/libs/xpcom18a4/xpcom/io/nsNativeCharsetUtils.cpp')
-rw-r--r-- | src/libs/xpcom18a4/xpcom/io/nsNativeCharsetUtils.cpp | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/src/libs/xpcom18a4/xpcom/io/nsNativeCharsetUtils.cpp b/src/libs/xpcom18a4/xpcom/io/nsNativeCharsetUtils.cpp index a9cc2101..55b5c63c 100644 --- a/src/libs/xpcom18a4/xpcom/io/nsNativeCharsetUtils.cpp +++ b/src/libs/xpcom18a4/xpcom/io/nsNativeCharsetUtils.cpp @@ -642,13 +642,9 @@ nsNativeCharsetConverter::GlobalInit() char a = 'a'; unsigned int w = 0; -#ifndef L4ENV int res = mbtowc((wchar_t *) &w, &a, 1); gWCharIsUnicode = (res != -1 && w == 'a'); -#else - gWCharIsUnicode = 0; -#endif #ifdef DEBUG if (!gWCharIsUnicode) @@ -663,8 +659,6 @@ nsNativeCharsetConverter::NativeToUnicode(const char **input, PRUint32 *outputLeft) { if (gWCharIsUnicode) { -#ifndef L4ENV - /* We don't have any wchar support built into uclibc just now */ int incr; // cannot use wchar_t here since it may have been redefined (e.g., @@ -689,7 +683,6 @@ nsNativeCharsetConverter::NativeToUnicode(const char **input, (*output)++; (*outputLeft)--; } -#endif /* not defined L4ENV */ } else { // wchar_t isn't unicode, so the best we can do is treat the @@ -707,8 +700,6 @@ nsNativeCharsetConverter::UnicodeToNative(const PRUnichar **input, PRUint32 *outputLeft) { if (gWCharIsUnicode) { -#ifndef L4ENV - /* We don't have any wchar support built into uclibc just now */ int incr; while (*inputLeft && *outputLeft >= MB_CUR_MAX) { @@ -730,7 +721,6 @@ nsNativeCharsetConverter::UnicodeToNative(const PRUnichar **input, (*input)++; (*inputLeft)--; } -#endif /* not defined L4ENV */ } else { // wchar_t isn't unicode, so the best we can do is treat the |