summaryrefslogtreecommitdiff
path: root/src/libs/xpcom18a4/xpcom/io/nsNativeCharsetUtils.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/libs/xpcom18a4/xpcom/io/nsNativeCharsetUtils.cpp')
-rw-r--r--src/libs/xpcom18a4/xpcom/io/nsNativeCharsetUtils.cpp10
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