Skip to content
Snippets Groups Projects
utf32.patch 1.63 KiB
Newer Older
diff --git a/source/common/ucnv_bld.cpp b/source/common/ucnv_bld.cpp
Jungshik Shin's avatar
Jungshik Shin committed
index 078f293..a8c41cc 100644
--- a/source/common/ucnv_bld.cpp
+++ b/source/common/ucnv_bld.cpp
Jungshik Shin's avatar
Jungshik Shin committed
@@ -67,11 +67,7 @@ converterData[UCNV_NUMBER_OF_SUPPORTED_CONVERTER_TYPES]={
 
     &_Latin1Data,
     &_UTF8Data, &_UTF16BEData, &_UTF16LEData,
-#if UCONFIG_ONLY_HTML_CONVERSION
-    NULL, NULL,
-#else
     &_UTF32BEData, &_UTF32LEData,
-#endif
     NULL,
 
 #if UCONFIG_NO_LEGACY_CONVERSION
Jungshik Shin's avatar
Jungshik Shin committed
@@ -105,7 +101,7 @@ converterData[UCNV_NUMBER_OF_SUPPORTED_CONVERTER_TYPES]={
 
     &_ASCIIData,
 #if UCONFIG_ONLY_HTML_CONVERSION
-    NULL, NULL, &_UTF16Data, NULL, NULL, NULL,
+    NULL, NULL, &_UTF16Data, &_UTF32Data, NULL, NULL,
 #else
     &_UTF7Data, &_Bocu1Data, &_UTF16Data, &_UTF32Data, &_CESU8Data, &_IMAPData,
 #endif
Jungshik Shin's avatar
Jungshik Shin committed
@@ -170,7 +166,6 @@ static struct {
   { "utf16oppositeendian", UCNV_UTF16_BigEndian},
   { "utf16platformendian", UCNV_UTF16_LittleEndian },
 #endif
-#if !UCONFIG_ONLY_HTML_CONVERSION
   { "utf32", UCNV_UTF32 },
   { "utf32be", UCNV_UTF32_BigEndian },
   { "utf32le", UCNV_UTF32_LittleEndian },
Jungshik Shin's avatar
Jungshik Shin committed
@@ -181,7 +176,6 @@ static struct {
   { "utf32oppositeendian", UCNV_UTF32_BigEndian },
   { "utf32platformendian", UCNV_UTF32_LittleEndian },
 #endif
-#endif
 #if !UCONFIG_ONLY_HTML_CONVERSION
   { "utf7", UCNV_UTF7 },
 #endif
Jungshik Shin's avatar
Jungshik Shin committed
diff --git a/source/common/ucnv_u32.cpp b/source/common/ucnv_u32.cpp
Jungshik Shin's avatar
Jungshik Shin committed
index b0a0fe2..5a4d6fc 100644
Jungshik Shin's avatar
Jungshik Shin committed
--- a/source/common/ucnv_u32.cpp
+++ b/source/common/ucnv_u32.cpp
Jungshik Shin's avatar
Jungshik Shin committed
@@ -18,7 +18,7 @@
 
 #include "unicode/utypes.h"
 
-#if !UCONFIG_NO_CONVERSION && !UCONFIG_ONLY_HTML_CONVERSION
+#if !UCONFIG_NO_CONVERSION
 
 #include "unicode/ucnv.h"
 #include "unicode/utf.h"