[PATCH] Enable iconv code tables

Ralf Kirchner ralf.kirchner at embedded-brains.de
Fri May 10 09:35:14 UTC 2013


The following patch will activate encodings for iconv.
I intend to use these iconv encodings for UTF8 support in the FAT 
file system. 
UTF8 support will get implemented backwards compatible and will
have to get activated with a mount parameter explicitly. 
As long as you mount the FAT file system as you always
used to, nothing will change and the encodings will not get linked in.

---
 gcc/build.add |   10 +++++++++-
 1 Datei geändert, 9 Zeilen hinzugefügt(+), 1 Zeile entfernt(-)

diff --git a/gcc/build.add b/gcc/build.add
index cedaf4a..667fdeb 100644
--- a/gcc/build.add
+++ b/gcc/build.add
@@ -57,7 +57,15 @@
     %{?with_plugin:--enable-plugin}%{!?with_plugin:--disable-plugin} \
 %if %build_newlib
     --enable-newlib-io-c99-formats \
-    %{?with_iconv:--enable-newlib-iconv} \
+    %{?with_iconv:--enable-newlib-iconv  --enable-newlib-iconv-encodings=\
+big5,cp775,cp850,cp852,cp855,\
+cp866,euc_jp,euc_kr,euc_tw,iso_8859_1,iso_8859_10,iso_8859_11,\
+iso_8859_13,iso_8859_14,iso_8859_15,iso_8859_2,iso_8859_3,\
+iso_8859_4,iso_8859_5,iso_8859_6,iso_8859_7,iso_8859_8,iso_8859_9,\
+iso_ir_111,koi8_r,koi8_ru,koi8_u,koi8_uni,ucs_2,ucs_2_internal,\
+ucs_2be,ucs_2le,ucs_4,ucs_4_internal,ucs_4be,ucs_4le,us_ascii,\
+utf_16,utf_16be,utf_16le,utf_8,win_1250,win_1251,win_1252,\
+win_1253,win_1254,win_1255,win_1256,win_1257,win_1258} \
 %endif
 %if %build_libgcj
     --enable-libgcj \
-- 
1.7.10.4




More information about the devel mailing list