mirror of
https://github.com/darlinghq/darling-libiconv.git
synced 2024-11-26 22:10:34 +00:00
Move Source From Main Repo
Source is based on libiconv-59
This commit is contained in:
commit
c047ea56be
79
CMakeLists.txt
Normal file
79
CMakeLists.txt
Normal file
@ -0,0 +1,79 @@
|
||||
project(libiconv)
|
||||
|
||||
cmake_minimum_required(VERSION 3.0)
|
||||
|
||||
if(COMMAND cmake_policy)
|
||||
cmake_policy(SET CMP0003 NEW)
|
||||
endif(COMMAND cmake_policy)
|
||||
|
||||
add_definitions(-DHAVE_STDINT_H=1)
|
||||
|
||||
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -nostdinc -D__DARWIN_UNIX03 -fPIC -w -O0 -ggdb")
|
||||
set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -nostdlib")
|
||||
|
||||
add_definitions(
|
||||
-DHAVE_CONFIG_H
|
||||
-DBUILDING_DLL
|
||||
-DENABLE_RELOCATABLE
|
||||
-DIN_LIBRARY
|
||||
-DNO_XMALLOC
|
||||
-DPIC
|
||||
)
|
||||
|
||||
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/libiconv)
|
||||
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/libiconv/lib)
|
||||
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/libiconv/srclib)
|
||||
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/libiconv/include)
|
||||
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/libiconv/libcharset/include)
|
||||
|
||||
set(iconv_SRCS
|
||||
libiconv/lib/iconv.c
|
||||
libiconv/libcharset/lib/relocatable.c
|
||||
)
|
||||
|
||||
set(charset_SRCS
|
||||
libiconv/libcharset/lib/localcharset.c
|
||||
libiconv/libcharset/lib/relocatable.c
|
||||
)
|
||||
|
||||
set(DYLIB_COMPAT_VERSION "7.0.0")
|
||||
set(DYLIB_CURRENT_VERSION "7.0.0")
|
||||
set(DYLIB_INSTALL_NAME "/usr/lib/libiconv.2.dylib")
|
||||
add_darling_library(iconv SHARED ${iconv_SRCS})
|
||||
make_fat(iconv)
|
||||
target_link_libraries(iconv PRIVATE system)
|
||||
set_target_properties(iconv PROPERTIES OUTPUT_NAME "iconv.2")
|
||||
InstallSymlink("libiconv.2.dylib" "${CMAKE_INSTALL_PREFIX}/libexec/darling/usr/lib/libiconv.dylib")
|
||||
|
||||
install(TARGETS iconv DESTINATION libexec/darling/usr/lib)
|
||||
|
||||
target_compile_definitions(iconv PRIVATE
|
||||
BUILDING_LIBICONV
|
||||
relocate=libiconv_relocate
|
||||
set_relocation_prefix=libiconv_set_relocation_prefix
|
||||
)
|
||||
|
||||
set_property(TARGET iconv APPEND_STRING PROPERTY LINK_FLAGS
|
||||
" -sub_library libcharset"
|
||||
)
|
||||
|
||||
set(DYLIB_COMPAT_VERSION "2.0.0")
|
||||
set(DYLIB_CURRENT_VERSION "2.0.0")
|
||||
set(DYLIB_INSTALL_NAME "/usr/lib/libcharset.1.dylib")
|
||||
add_darling_library(charset SHARED ${charset_SRCS})
|
||||
make_fat(charset)
|
||||
target_link_libraries(charset PRIVATE system)
|
||||
set_target_properties(charset PROPERTIES OUTPUT_NAME "charset.1")
|
||||
InstallSymlink("libcharset.1.dylib" "${CMAKE_INSTALL_PREFIX}/libexec/darling/usr/lib/libcharset.dylib")
|
||||
|
||||
install(TARGETS charset DESTINATION libexec/darling/usr/lib)
|
||||
|
||||
target_compile_definitions(charset PRIVATE
|
||||
BUILDING_LIBCHARSET
|
||||
relocate=libcharset_relocate
|
||||
set_relocation_prefix=libcharset_set_relocation_prefix
|
||||
)
|
||||
|
||||
target_link_libraries(iconv PRIVATE charset)
|
||||
|
||||
install(FILES libiconv/lib/charset.alias DESTINATION libexec/darling/usr/lib)
|
1
install/libcharset.txt
Symbolic link
1
install/libcharset.txt
Symbolic link
@ -0,0 +1 @@
|
||||
../libiconv/libcharset/COPYING.LIB
|
1
install/libiconv.txt
Symbolic link
1
install/libiconv.txt
Symbolic link
@ -0,0 +1 @@
|
||||
../libiconv/COPYING.LIB
|
35
libiconv.plist
Normal file
35
libiconv.plist
Normal file
@ -0,0 +1,35 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
<array>
|
||||
<dict>
|
||||
<key>OpenSourceImportDate</key>
|
||||
<string>2007-02-11</string>
|
||||
<key>OpenSourceLicense</key>
|
||||
<string>LGPL</string>
|
||||
<key>OpenSourceLicenseFile</key>
|
||||
<string>libiconv.txt</string>
|
||||
<key>OpenSourceModifications</key>
|
||||
<array>
|
||||
<string>changes to build under XBS</string>
|
||||
<string>4740335 - MacRoman with Euro</string>
|
||||
<string>4468207 - convert apple icon</string>
|
||||
<string>add macutf8</string>
|
||||
<string>UNIX2003 changes</string>
|
||||
<string>do not inline gperf lookup functions (12056452)</string>
|
||||
<string>lib/loop_wchar.h: 2cf3ee65d04ac4e41e29aa7526361ec3f20f5e29</string>
|
||||
<string>lib/loop_unicode.h: bb8f7987b00e303f690b59eb62c8eede974c2dd1, and supporting lib/converters.h changes. (23050414)
|
||||
</array>
|
||||
<key>OpenSourceProject</key>
|
||||
<string>libiconv</string>
|
||||
<key>OpenSourceSHA1</key>
|
||||
<string>df09c3ef43443ac15c0c2d49fd791aa73a64bf30</string>
|
||||
<key>OpenSourceURL</key>
|
||||
<string>http://ftp.gnu.org/pub/gnu/libiconv/libiconv-1.11.tar.gz</string>
|
||||
<key>OpenSourceVersion</key>
|
||||
<string>1.11</string>
|
||||
<key>OpenSourceWebsiteURL</key>
|
||||
<string>http://www.gnu.org/software/libiconv/</string>
|
||||
</dict>
|
||||
</array>
|
||||
</plist>
|
2108
libiconv.xcodeproj/project.pbxproj
Normal file
2108
libiconv.xcodeproj/project.pbxproj
Normal file
File diff suppressed because one or more lines are too long
986
libiconv/ABOUT-NLS
Normal file
986
libiconv/ABOUT-NLS
Normal file
@ -0,0 +1,986 @@
|
||||
1 Notes on the Free Translation Project
|
||||
***************************************
|
||||
|
||||
Free software is going international! The Free Translation Project is
|
||||
a way to get maintainers of free software, translators, and users all
|
||||
together, so that free software will gradually become able to speak many
|
||||
languages. A few packages already provide translations for their
|
||||
messages.
|
||||
|
||||
If you found this `ABOUT-NLS' file inside a distribution, you may
|
||||
assume that the distributed package does use GNU `gettext' internally,
|
||||
itself available at your nearest GNU archive site. But you do _not_
|
||||
need to install GNU `gettext' prior to configuring, installing or using
|
||||
this package with messages translated.
|
||||
|
||||
Installers will find here some useful hints. These notes also
|
||||
explain how users should proceed for getting the programs to use the
|
||||
available translations. They tell how people wanting to contribute and
|
||||
work on translations can contact the appropriate team.
|
||||
|
||||
When reporting bugs in the `intl/' directory or bugs which may be
|
||||
related to internationalization, you should tell about the version of
|
||||
`gettext' which is used. The information can be found in the
|
||||
`intl/VERSION' file, in internationalized packages.
|
||||
|
||||
1.1 Quick configuration advice
|
||||
==============================
|
||||
|
||||
If you want to exploit the full power of internationalization, you
|
||||
should configure it using
|
||||
|
||||
./configure --with-included-gettext
|
||||
|
||||
to force usage of internationalizing routines provided within this
|
||||
package, despite the existence of internationalizing capabilities in the
|
||||
operating system where this package is being installed. So far, only
|
||||
the `gettext' implementation in the GNU C library version 2 provides as
|
||||
many features (such as locale alias, message inheritance, automatic
|
||||
charset conversion or plural form handling) as the implementation here.
|
||||
It is also not possible to offer this additional functionality on top
|
||||
of a `catgets' implementation. Future versions of GNU `gettext' will
|
||||
very likely convey even more functionality. So it might be a good idea
|
||||
to change to GNU `gettext' as soon as possible.
|
||||
|
||||
So you need _not_ provide this option if you are using GNU libc 2 or
|
||||
you have installed a recent copy of the GNU gettext package with the
|
||||
included `libintl'.
|
||||
|
||||
1.2 INSTALL Matters
|
||||
===================
|
||||
|
||||
Some packages are "localizable" when properly installed; the programs
|
||||
they contain can be made to speak your own native language. Most such
|
||||
packages use GNU `gettext'. Other packages have their own ways to
|
||||
internationalization, predating GNU `gettext'.
|
||||
|
||||
By default, this package will be installed to allow translation of
|
||||
messages. It will automatically detect whether the system already
|
||||
provides the GNU `gettext' functions. If not, the included GNU
|
||||
`gettext' library will be used. This library is wholly contained
|
||||
within this package, usually in the `intl/' subdirectory, so prior
|
||||
installation of the GNU `gettext' package is _not_ required.
|
||||
Installers may use special options at configuration time for changing
|
||||
the default behaviour. The commands:
|
||||
|
||||
./configure --with-included-gettext
|
||||
./configure --disable-nls
|
||||
|
||||
will, respectively, bypass any pre-existing `gettext' to use the
|
||||
internationalizing routines provided within this package, or else,
|
||||
_totally_ disable translation of messages.
|
||||
|
||||
When you already have GNU `gettext' installed on your system and run
|
||||
configure without an option for your new package, `configure' will
|
||||
probably detect the previously built and installed `libintl.a' file and
|
||||
will decide to use this. This might not be desirable. You should use
|
||||
the more recent version of the GNU `gettext' library. I.e. if the file
|
||||
`intl/VERSION' shows that the library which comes with this package is
|
||||
more recent, you should use
|
||||
|
||||
./configure --with-included-gettext
|
||||
|
||||
to prevent auto-detection.
|
||||
|
||||
The configuration process will not test for the `catgets' function
|
||||
and therefore it will not be used. The reason is that even an
|
||||
emulation of `gettext' on top of `catgets' could not provide all the
|
||||
extensions of the GNU `gettext' library.
|
||||
|
||||
Internationalized packages usually have many `po/LL.po' files, where
|
||||
LL gives an ISO 639 two-letter code identifying the language. Unless
|
||||
translations have been forbidden at `configure' time by using the
|
||||
`--disable-nls' switch, all available translations are installed
|
||||
together with the package. However, the environment variable `LINGUAS'
|
||||
may be set, prior to configuration, to limit the installed set.
|
||||
`LINGUAS' should then contain a space separated list of two-letter
|
||||
codes, stating which languages are allowed.
|
||||
|
||||
1.3 Using This Package
|
||||
======================
|
||||
|
||||
As a user, if your language has been installed for this package, you
|
||||
only have to set the `LANG' environment variable to the appropriate
|
||||
`LL_CC' combination. Here `LL' is an ISO 639 two-letter language code,
|
||||
and `CC' is an ISO 3166 two-letter country code. For example, let's
|
||||
suppose that you speak German and live in Germany. At the shell
|
||||
prompt, merely execute `setenv LANG de_DE' (in `csh'),
|
||||
`export LANG; LANG=de_DE' (in `sh') or `export LANG=de_DE' (in `bash').
|
||||
This can be done from your `.login' or `.profile' file, once and for
|
||||
all.
|
||||
|
||||
You might think that the country code specification is redundant.
|
||||
But in fact, some languages have dialects in different countries. For
|
||||
example, `de_AT' is used for Austria, and `pt_BR' for Brazil. The
|
||||
country code serves to distinguish the dialects.
|
||||
|
||||
The locale naming convention of `LL_CC', with `LL' denoting the
|
||||
language and `CC' denoting the country, is the one use on systems based
|
||||
on GNU libc. On other systems, some variations of this scheme are
|
||||
used, such as `LL' or `LL_CC.ENCODING'. You can get the list of
|
||||
locales supported by your system for your country by running the command
|
||||
`locale -a | grep '^LL''.
|
||||
|
||||
Not all programs have translations for all languages. By default, an
|
||||
English message is shown in place of a nonexistent translation. If you
|
||||
understand other languages, you can set up a priority list of languages.
|
||||
This is done through a different environment variable, called
|
||||
`LANGUAGE'. GNU `gettext' gives preference to `LANGUAGE' over `LANG'
|
||||
for the purpose of message handling, but you still need to have `LANG'
|
||||
set to the primary language; this is required by other parts of the
|
||||
system libraries. For example, some Swedish users who would rather
|
||||
read translations in German than English for when Swedish is not
|
||||
available, set `LANGUAGE' to `sv:de' while leaving `LANG' to `sv_SE'.
|
||||
|
||||
Special advice for Norwegian users: The language code for Norwegian
|
||||
bokma*l changed from `no' to `nb' recently (in 2003). During the
|
||||
transition period, while some message catalogs for this language are
|
||||
installed under `nb' and some older ones under `no', it's recommended
|
||||
for Norwegian users to set `LANGUAGE' to `nb:no' so that both newer and
|
||||
older translations are used.
|
||||
|
||||
In the `LANGUAGE' environment variable, but not in the `LANG'
|
||||
environment variable, `LL_CC' combinations can be abbreviated as `LL'
|
||||
to denote the language's main dialect. For example, `de' is equivalent
|
||||
to `de_DE' (German as spoken in Germany), and `pt' to `pt_PT'
|
||||
(Portuguese as spoken in Portugal) in this context.
|
||||
|
||||
1.4 Translating Teams
|
||||
=====================
|
||||
|
||||
For the Free Translation Project to be a success, we need interested
|
||||
people who like their own language and write it well, and who are also
|
||||
able to synergize with other translators speaking the same language.
|
||||
Each translation team has its own mailing list. The up-to-date list of
|
||||
teams can be found at the Free Translation Project's homepage,
|
||||
`http://www.iro.umontreal.ca/contrib/po/HTML/', in the "National teams"
|
||||
area.
|
||||
|
||||
If you'd like to volunteer to _work_ at translating messages, you
|
||||
should become a member of the translating team for your own language.
|
||||
The subscribing address is _not_ the same as the list itself, it has
|
||||
`-request' appended. For example, speakers of Swedish can send a
|
||||
message to `sv-request@li.org', having this message body:
|
||||
|
||||
subscribe
|
||||
|
||||
Keep in mind that team members are expected to participate
|
||||
_actively_ in translations, or at solving translational difficulties,
|
||||
rather than merely lurking around. If your team does not exist yet and
|
||||
you want to start one, or if you are unsure about what to do or how to
|
||||
get started, please write to `translation@iro.umontreal.ca' to reach the
|
||||
coordinator for all translator teams.
|
||||
|
||||
The English team is special. It works at improving and uniformizing
|
||||
the terminology in use. Proven linguistic skill are praised more than
|
||||
programming skill, here.
|
||||
|
||||
1.5 Available Packages
|
||||
======================
|
||||
|
||||
Languages are not equally supported in all packages. The following
|
||||
matrix shows the current state of internationalization, as of April
|
||||
2005. The matrix shows, in regard of each package, for which languages
|
||||
PO files have been submitted to translation coordination, with a
|
||||
translation percentage of at least 50%.
|
||||
|
||||
Ready PO files af am ar az be bg bs ca cs cy da de el en en_GB
|
||||
+-------------------------------------------------+
|
||||
GNUnet | |
|
||||
a2ps | [] [] [] [] [] |
|
||||
aegis | () |
|
||||
ant-phone | () |
|
||||
anubis | [] |
|
||||
ap-utils | |
|
||||
aspell | [] [] [] [] |
|
||||
bash | [] [] |
|
||||
batchelor | [] |
|
||||
bfd | |
|
||||
bibshelf | [] |
|
||||
binutils | [] |
|
||||
bison | [] [] |
|
||||
bluez-pin | [] [] [] [] |
|
||||
clisp | [] [] |
|
||||
console-tools | [] [] |
|
||||
coreutils | [] [] [] [] |
|
||||
cpio | |
|
||||
cpplib | [] [] [] |
|
||||
darkstat | [] () [] |
|
||||
dialog | [] [] [] [] [] [] |
|
||||
diffutils | [] [] [] [] [] |
|
||||
doodle | [] |
|
||||
e2fsprogs | [] [] |
|
||||
enscript | [] [] [] [] |
|
||||
error | [] [] [] [] |
|
||||
fetchmail | [] () [] [] [] |
|
||||
fileutils | [] [] |
|
||||
findutils | [] [] [] |
|
||||
flex | [] [] [] |
|
||||
fslint | [] |
|
||||
gas | |
|
||||
gawk | [] [] [] |
|
||||
gbiff | [] |
|
||||
gcal | [] |
|
||||
gcc | [] |
|
||||
gettext-examples | [] [] [] [] |
|
||||
gettext-runtime | [] [] [] [] |
|
||||
gettext-tools | [] [] |
|
||||
gimp-print | [] [] [] [] |
|
||||
gip | |
|
||||
gliv | [] |
|
||||
glunarclock | |
|
||||
gmult | [] [] |
|
||||
gnubiff | () |
|
||||
gnucash | [] () () [] |
|
||||
gnucash-glossary | [] () |
|
||||
gpe-aerial | [] [] |
|
||||
gpe-beam | [] [] |
|
||||
gpe-calendar | [] [] |
|
||||
gpe-clock | [] [] |
|
||||
gpe-conf | [] [] |
|
||||
gpe-contacts | |
|
||||
gpe-edit | [] |
|
||||
gpe-go | [] |
|
||||
gpe-login | [] [] |
|
||||
gpe-ownerinfo | [] [] |
|
||||
gpe-sketchbook | [] [] |
|
||||
gpe-su | [] [] |
|
||||
gpe-taskmanager | [] [] |
|
||||
gpe-timesheet | [] |
|
||||
gpe-today | [] [] |
|
||||
gpe-todo | [] [] |
|
||||
gphoto2 | [] [] [] [] |
|
||||
gprof | [] [] |
|
||||
gpsdrive | () () |
|
||||
gramadoir | [] [] |
|
||||
grep | [] [] [] [] [] [] |
|
||||
gretl | |
|
||||
gsasl | [] |
|
||||
gss | |
|
||||
gst-plugins | [] [] [] [] [] [] |
|
||||
gstreamer | [] [] [] [] [] |
|
||||
gtick | [] () |
|
||||
gtkspell | [] [] [] |
|
||||
hello | [] [] [] [] |
|
||||
id-utils | [] [] |
|
||||
impost | |
|
||||
indent | [] [] |
|
||||
iso_3166 | |
|
||||
iso_3166_1 | [] [] [] [] [] |
|
||||
iso_3166_2 | |
|
||||
iso_3166_3 | [] |
|
||||
iso_4217 | |
|
||||
iso_639 | |
|
||||
jpilot | [] |
|
||||
jtag | |
|
||||
jwhois | |
|
||||
kbd | [] [] [] [] |
|
||||
latrine | () |
|
||||
ld | [] |
|
||||
libc | [] [] [] [] [] |
|
||||
libextractor | |
|
||||
libgpewidget | [] [] [] |
|
||||
libgsasl | |
|
||||
libiconv | [] [] [] [] [] |
|
||||
libidn | |
|
||||
lifelines | [] () |
|
||||
lilypond | [] |
|
||||
lingoteach | |
|
||||
lynx | [] [] [] [] |
|
||||
m4 | [] [] [] [] |
|
||||
mailutils | [] |
|
||||
make | [] [] |
|
||||
man-db | [] () [] [] |
|
||||
minicom | [] [] |
|
||||
mysecretdiary | [] [] |
|
||||
nano | [] () [] |
|
||||
nano_1_0 | [] () [] [] |
|
||||
opcodes | [] |
|
||||
parted | [] [] [] [] |
|
||||
psmisc | |
|
||||
ptx | [] [] [] |
|
||||
pwdutils | |
|
||||
python | |
|
||||
radius | [] |
|
||||
recode | [] [] [] [] [] |
|
||||
rpm | [] [] |
|
||||
screem | |
|
||||
scrollkeeper | [] [] [] [] [] [] [] [] |
|
||||
sed | [] [] |
|
||||
sh-utils | [] [] |
|
||||
shared-mime-info | [] [] |
|
||||
sharutils | [] [] [] [] [] |
|
||||
silky | |
|
||||
skencil | [] () |
|
||||
sketch | [] () |
|
||||
solfege | [] |
|
||||
soundtracker | [] [] |
|
||||
sp | [] |
|
||||
stardict | [] |
|
||||
tar | |
|
||||
texinfo | [] [] |
|
||||
textutils | [] [] [] |
|
||||
tin | () () |
|
||||
tp-robot | [] |
|
||||
tuxpaint | [] [] [] [] [] [] [] |
|
||||
unicode-han-tra... | |
|
||||
unicode-transla... | |
|
||||
util-linux | [] [] [] [] |
|
||||
vorbis-tools | [] [] [] [] |
|
||||
wastesedge | () |
|
||||
wdiff | [] [] [] [] |
|
||||
wget | [] [] [] [] [] [] |
|
||||
xchat | [] [] [] [] |
|
||||
xkeyboard-config | |
|
||||
xpad | |
|
||||
+-------------------------------------------------+
|
||||
af am ar az be bg bs ca cs cy da de el en en_GB
|
||||
10 0 0 2 7 4 0 41 43 3 52 90 20 1 15
|
||||
|
||||
eo es et eu fa fi fr ga gl he hr hu id is it
|
||||
+-----------------------------------------------+
|
||||
GNUnet | |
|
||||
a2ps | [] [] [] () |
|
||||
aegis | |
|
||||
ant-phone | [] |
|
||||
anubis | [] |
|
||||
ap-utils | [] |
|
||||
aspell | [] [] |
|
||||
bash | [] [] [] [] |
|
||||
batchelor | [] [] |
|
||||
bfd | [] |
|
||||
bibshelf | [] [] [] |
|
||||
binutils | [] [] |
|
||||
bison | [] [] [] [] [] [] |
|
||||
bluez-pin | [] [] [] [] [] [] |
|
||||
clisp | [] [] |
|
||||
console-tools | |
|
||||
coreutils | [] [] [] [] [] |
|
||||
cpio | [] [] |
|
||||
cpplib | [] [] |
|
||||
darkstat | [] () [] [] [] |
|
||||
dialog | [] [] [] [] [] [] [] [] |
|
||||
diffutils | [] [] [] [] [] [] [] [] [] [] |
|
||||
doodle | [] [] |
|
||||
e2fsprogs | [] [] [] |
|
||||
enscript | [] [] |
|
||||
error | [] [] [] [] [] |
|
||||
fetchmail | [] |
|
||||
fileutils | [] [] [] [] [] [] |
|
||||
findutils | [] [] [] [] [] |
|
||||
flex | [] [] [] |
|
||||
fslint | [] |
|
||||
gas | [] [] |
|
||||
gawk | [] [] [] [] |
|
||||
gbiff | [] |
|
||||
gcal | [] [] |
|
||||
gcc | [] |
|
||||
gettext-examples | [] [] [] [] |
|
||||
gettext-runtime | [] [] [] [] [] [] |
|
||||
gettext-tools | [] [] [] |
|
||||
gimp-print | [] [] |
|
||||
gip | [] [] [] |
|
||||
gliv | () |
|
||||
glunarclock | [] [] [] |
|
||||
gmult | [] [] [] |
|
||||
gnubiff | () () |
|
||||
gnucash | [] () [] |
|
||||
gnucash-glossary | [] [] |
|
||||
gpe-aerial | [] [] |
|
||||
gpe-beam | [] [] |
|
||||
gpe-calendar | [] [] [] [] |
|
||||
gpe-clock | [] [] [] |
|
||||
gpe-conf | [] |
|
||||
gpe-contacts | [] |
|
||||
gpe-edit | [] [] |
|
||||
gpe-go | [] [] |
|
||||
gpe-login | [] [] [] |
|
||||
gpe-ownerinfo | [] [] [] [] [] |
|
||||
gpe-sketchbook | [] [] |
|
||||
gpe-su | [] [] [] |
|
||||
gpe-taskmanager | [] [] [] |
|
||||
gpe-timesheet | [] [] [] [] |
|
||||
gpe-today | [] [] [] [] |
|
||||
gpe-todo | [] [] [] |
|
||||
gphoto2 | [] [] [] [] [] |
|
||||
gprof | [] [] [] |
|
||||
gpsdrive | () () [] () |
|
||||
gramadoir | [] [] |
|
||||
grep | [] [] [] [] [] [] [] [] [] [] [] [] |
|
||||
gretl | [] [] [] |
|
||||
gsasl | [] [] [] |
|
||||
gss | [] |
|
||||
gst-plugins | [] [] [] |
|
||||
gstreamer | [] |
|
||||
gtick | [] [] [] [] [] |
|
||||
gtkspell | [] [] [] [] [] [] |
|
||||
hello | [] [] [] [] [] [] [] [] [] [] [] [] [] [] |
|
||||
id-utils | [] [] [] [] |
|
||||
impost | [] [] |
|
||||
indent | [] [] [] [] [] [] [] [] [] [] [] |
|
||||
iso_3166 | [] [] [] |
|
||||
iso_3166_1 | [] [] [] [] [] [] [] |
|
||||
iso_3166_2 | [] |
|
||||
iso_3166_3 | [] |
|
||||
iso_4217 | [] [] [] |
|
||||
iso_639 | [] [] [] [] |
|
||||
jpilot | [] [] |
|
||||
jtag | [] |
|
||||
jwhois | [] [] [] [] [] |
|
||||
kbd | [] [] |
|
||||
latrine | [] [] [] |
|
||||
ld | [] [] |
|
||||
libc | [] [] [] [] [] |
|
||||
libextractor | |
|
||||
libgpewidget | [] [] [] [] [] |
|
||||
libgsasl | [] [] |
|
||||
libiconv | [] [] [] [] [] [] [] [] [] [] [] |
|
||||
libidn | [] [] |
|
||||
lifelines | () |
|
||||
lilypond | [] |
|
||||
lingoteach | [] [] [] |
|
||||
lynx | [] [] [] |
|
||||
m4 | [] [] [] [] |
|
||||
mailutils | [] [] |
|
||||
make | [] [] [] [] [] [] [] |
|
||||
man-db | () |
|
||||
minicom | [] [] [] [] |
|
||||
mysecretdiary | [] [] [] |
|
||||
nano | [] [] () [] [] |
|
||||
nano_1_0 | [] [] [] [] [] |
|
||||
opcodes | [] [] |
|
||||
parted | [] [] [] [] |
|
||||
psmisc | [] [] |
|
||||
ptx | [] [] [] [] [] [] [] [] [] |
|
||||
pwdutils | |
|
||||
python | |
|
||||
radius | [] [] |
|
||||
recode | [] [] [] [] [] [] [] [] |
|
||||
rpm | [] |
|
||||
screem | |
|
||||
scrollkeeper | [] [] [] |
|
||||
sed | [] [] [] [] [] |
|
||||
sh-utils | [] [] [] [] [] [] [] |
|
||||
shared-mime-info | [] [] [] [] [] [] |
|
||||
sharutils | [] [] [] [] [] [] [] |
|
||||
silky | [] |
|
||||
skencil | [] [] |
|
||||
sketch | [] [] |
|
||||
solfege | [] |
|
||||
soundtracker | [] [] [] |
|
||||
sp | [] |
|
||||
stardict | [] |
|
||||
tar | [] [] [] [] [] |
|
||||
texinfo | [] [] [] |
|
||||
textutils | [] [] [] [] [] |
|
||||
tin | [] () |
|
||||
tp-robot | [] [] |
|
||||
tuxpaint | [] [] [] [] [] [] [] [] [] |
|
||||
unicode-han-tra... | |
|
||||
unicode-transla... | [] [] |
|
||||
util-linux | [] [] [] [] [] [] |
|
||||
vorbis-tools | [] [] |
|
||||
wastesedge | () |
|
||||
wdiff | [] [] [] [] [] [] [] [] |
|
||||
wget | [] [] [] [] [] [] [] [] [] [] |
|
||||
xchat | [] [] [] [] [] |
|
||||
xkeyboard-config | |
|
||||
xpad | [] [] [] |
|
||||
+-----------------------------------------------+
|
||||
eo es et eu fa fi fr ga gl he hr hu id is it
|
||||
13 85 21 15 2 35 115 45 17 8 6 40 27 1 45
|
||||
|
||||
ja ko ku lg lt lv mk mn ms mt nb nl nn no nso
|
||||
+-----------------------------------------------+
|
||||
GNUnet | |
|
||||
a2ps | () [] [] () |
|
||||
aegis | () |
|
||||
ant-phone | [] |
|
||||
anubis | [] [] [] |
|
||||
ap-utils | |
|
||||
aspell | [] [] |
|
||||
bash | [] |
|
||||
batchelor | [] |
|
||||
bfd | |
|
||||
bibshelf | |
|
||||
binutils | |
|
||||
bison | [] [] [] |
|
||||
bluez-pin | [] |
|
||||
clisp | [] |
|
||||
console-tools | |
|
||||
coreutils | [] [] |
|
||||
cpio | |
|
||||
cpplib | |
|
||||
darkstat | [] [] |
|
||||
dialog | [] |
|
||||
diffutils | [] [] [] |
|
||||
doodle | |
|
||||
e2fsprogs | |
|
||||
enscript | [] |
|
||||
error | [] |
|
||||
fetchmail | [] [] |
|
||||
fileutils | [] [] |
|
||||
findutils | [] |
|
||||
flex | [] [] |
|
||||
fslint | [] |
|
||||
gas | |
|
||||
gawk | [] [] |
|
||||
gbiff | [] |
|
||||
gcal | |
|
||||
gcc | |
|
||||
gettext-examples | [] [] |
|
||||
gettext-runtime | [] [] [] |
|
||||
gettext-tools | [] [] |
|
||||
gimp-print | [] [] |
|
||||
gip | [] |
|
||||
gliv | [] |
|
||||
glunarclock | [] [] |
|
||||
gmult | [] |
|
||||
gnubiff | |
|
||||
gnucash | () () [] |
|
||||
gnucash-glossary | [] |
|
||||
gpe-aerial | [] |
|
||||
gpe-beam | [] |
|
||||
gpe-calendar | [] |
|
||||
gpe-clock | [] |
|
||||
gpe-conf | [] |
|
||||
gpe-contacts | |
|
||||
gpe-edit | [] |
|
||||
gpe-go | [] |
|
||||
gpe-login | [] |
|
||||
gpe-ownerinfo | [] |
|
||||
gpe-sketchbook | [] |
|
||||
gpe-su | [] |
|
||||
gpe-taskmanager | [] [] |
|
||||
gpe-timesheet | [] |
|
||||
gpe-today | [] |
|
||||
gpe-todo | [] |
|
||||
gphoto2 | [] [] |
|
||||
gprof | |
|
||||
gpsdrive | () () () |
|
||||
gramadoir | () |
|
||||
grep | [] [] [] |
|
||||
gretl | |
|
||||
gsasl | [] |
|
||||
gss | |
|
||||
gst-plugins | [] |
|
||||
gstreamer | [] |
|
||||
gtick | [] |
|
||||
gtkspell | [] [] |
|
||||
hello | [] [] [] [] [] [] [] [] |
|
||||
id-utils | [] |
|
||||
impost | |
|
||||
indent | [] [] |
|
||||
iso_3166 | [] |
|
||||
iso_3166_1 | [] [] |
|
||||
iso_3166_2 | [] |
|
||||
iso_3166_3 | [] |
|
||||
iso_4217 | [] [] [] |
|
||||
iso_639 | [] [] [] |
|
||||
jpilot | () () () |
|
||||
jtag | |
|
||||
jwhois | [] |
|
||||
kbd | [] |
|
||||
latrine | [] |
|
||||
ld | |
|
||||
libc | [] [] [] [] [] |
|
||||
libextractor | |
|
||||
libgpewidget | [] |
|
||||
libgsasl | [] |
|
||||
libiconv | [] |
|
||||
libidn | |
|
||||
lifelines | [] |
|
||||
lilypond | [] |
|
||||
lingoteach | [] |
|
||||
lynx | [] [] |
|
||||
m4 | [] [] |
|
||||
mailutils | |
|
||||
make | [] [] [] |
|
||||
man-db | () |
|
||||
minicom | [] |
|
||||
mysecretdiary | [] |
|
||||
nano | [] [] |
|
||||
nano_1_0 | [] [] [] |
|
||||
opcodes | [] |
|
||||
parted | [] [] |
|
||||
psmisc | [] [] |
|
||||
ptx | [] [] [] |
|
||||
pwdutils | |
|
||||
python | |
|
||||
radius | |
|
||||
recode | [] |
|
||||
rpm | [] [] |
|
||||
screem | [] |
|
||||
scrollkeeper | [] [] [] |
|
||||
sed | [] [] |
|
||||
sh-utils | [] [] |
|
||||
shared-mime-info | [] [] [] [] |
|
||||
sharutils | [] [] |
|
||||
silky | [] |
|
||||
skencil | |
|
||||
sketch | |
|
||||
solfege | [] [] |
|
||||
soundtracker | |
|
||||
sp | () |
|
||||
stardict | [] [] |
|
||||
tar | [] [] |
|
||||
texinfo | [] [] [] |
|
||||
textutils | [] [] [] |
|
||||
tin | |
|
||||
tp-robot | [] |
|
||||
tuxpaint | [] [] [] [] [] [] |
|
||||
unicode-han-tra... | |
|
||||
unicode-transla... | |
|
||||
util-linux | [] [] |
|
||||
vorbis-tools | [] |
|
||||
wastesedge | [] |
|
||||
wdiff | [] [] |
|
||||
wget | [] [] |
|
||||
xchat | [] [] [] [] |
|
||||
xkeyboard-config | [] |
|
||||
xpad | [] |
|
||||
+-----------------------------------------------+
|
||||
ja ko ku lg lt lv mk mn ms mt nb nl nn no nso
|
||||
33 11 1 1 1 2 2 3 11 0 15 96 7 5 0
|
||||
|
||||
or pa pl pt pt_BR rm ro ru rw sk sl sq sr sv ta
|
||||
+-------------------------------------------------+
|
||||
GNUnet | |
|
||||
a2ps | () [] [] [] [] [] [] |
|
||||
aegis | () () |
|
||||
ant-phone | [] |
|
||||
anubis | [] [] [] |
|
||||
ap-utils | () |
|
||||
aspell | [] [] |
|
||||
bash | [] [] [] |
|
||||
batchelor | [] |
|
||||
bfd | |
|
||||
bibshelf | |
|
||||
binutils | [] [] |
|
||||
bison | [] [] [] [] [] |
|
||||
bluez-pin | [] [] [] [] [] [] [] [] |
|
||||
clisp | [] |
|
||||
console-tools | [] |
|
||||
coreutils | [] [] [] [] |
|
||||
cpio | [] [] |
|
||||
cpplib | |
|
||||
darkstat | [] [] [] [] [] [] |
|
||||
dialog | [] [] [] [] [] [] [] |
|
||||
diffutils | [] [] [] [] [] [] |
|
||||
doodle | [] |
|
||||
e2fsprogs | [] [] |
|
||||
enscript | [] [] [] [] |
|
||||
error | [] [] [] |
|
||||
fetchmail | [] () [] [] [] |
|
||||
fileutils | [] [] [] [] [] |
|
||||
findutils | [] [] [] [] [] [] |
|
||||
flex | [] [] [] [] [] |
|
||||
fslint | [] [] [] |
|
||||
gas | |
|
||||
gawk | [] [] [] [] |
|
||||
gbiff | [] |
|
||||
gcal | [] |
|
||||
gcc | |
|
||||
gettext-examples | [] [] [] [] [] [] |
|
||||
gettext-runtime | [] [] [] [] [] [] [] |
|
||||
gettext-tools | [] [] [] [] [] [] [] |
|
||||
gimp-print | [] [] |
|
||||
gip | [] [] [] |
|
||||
gliv | [] [] [] |
|
||||
glunarclock | [] [] [] [] [] [] |
|
||||
gmult | [] [] [] [] |
|
||||
gnubiff | () [] |
|
||||
gnucash | () [] [] [] [] |
|
||||
gnucash-glossary | [] [] [] |
|
||||
gpe-aerial | [] [] [] [] [] [] |
|
||||
gpe-beam | [] [] [] [] [] [] |
|
||||
gpe-calendar | [] [] [] [] [] [] [] |
|
||||
gpe-clock | [] [] [] [] [] [] [] |
|
||||
gpe-conf | [] [] [] [] [] [] |
|
||||
gpe-contacts | [] [] [] |
|
||||
gpe-edit | [] [] [] [] [] [] [] |
|
||||
gpe-go | [] [] [] [] [] |
|
||||
gpe-login | [] [] [] [] [] [] [] |
|
||||
gpe-ownerinfo | [] [] [] [] [] [] [] |
|
||||
gpe-sketchbook | [] [] [] [] [] [] [] |
|
||||
gpe-su | [] [] [] [] [] [] [] |
|
||||
gpe-taskmanager | [] [] [] [] [] [] [] |
|
||||
gpe-timesheet | [] [] [] [] [] [] [] |
|
||||
gpe-today | [] [] [] [] [] [] [] |
|
||||
gpe-todo | [] [] [] [] [] [] [] |
|
||||
gphoto2 | [] [] [] [] |
|
||||
gprof | [] [] [] |
|
||||
gpsdrive | [] |
|
||||
gramadoir | [] |
|
||||
grep | [] [] [] [] [] [] [] |
|
||||
gretl | [] |
|
||||
gsasl | [] [] [] [] [] |
|
||||
gss | [] [] [] |
|
||||
gst-plugins | [] [] [] [] |
|
||||
gstreamer | [] [] [] [] |
|
||||
gtick | [] [] [] |
|
||||
gtkspell | [] [] [] [] [] [] |
|
||||
hello | [] [] [] [] [] [] [] |
|
||||
id-utils | [] [] [] [] |
|
||||
impost | |
|
||||
indent | [] [] [] [] [] [] |
|
||||
iso_3166 | [] [] [] [] [] |
|
||||
iso_3166_1 | [] [] [] [] |
|
||||
iso_3166_2 | |
|
||||
iso_3166_3 | [] [] [] |
|
||||
iso_4217 | [] [] |
|
||||
iso_639 | [] [] [] |
|
||||
jpilot | |
|
||||
jtag | [] |
|
||||
jwhois | [] [] [] () () |
|
||||
kbd | [] [] [] |
|
||||
latrine | [] [] |
|
||||
ld | [] |
|
||||
libc | [] [] [] [] [] |
|
||||
libextractor | [] |
|
||||
libgpewidget | [] [] [] [] [] [] |
|
||||
libgsasl | [] [] [] |
|
||||
libiconv | [] [] [] [] [] [] [] [] [] [] |
|
||||
libidn | [] () |
|
||||
lifelines | [] [] |
|
||||
lilypond | [] |
|
||||
lingoteach | [] |
|
||||
lynx | [] [] [] |
|
||||
m4 | [] [] [] [] [] |
|
||||
mailutils | [] [] [] |
|
||||
make | [] [] [] [] |
|
||||
man-db | [] [] |
|
||||
minicom | [] [] [] [] |
|
||||
mysecretdiary | [] [] [] [] |
|
||||
nano | [] [] [] |
|
||||
nano_1_0 | [] [] [] [] |
|
||||
opcodes | [] [] |
|
||||
parted | [] [] [] [] |
|
||||
psmisc | [] [] |
|
||||
ptx | [] [] [] [] [] [] |
|
||||
pwdutils | [] |
|
||||
python | |
|
||||
radius | [] [] |
|
||||
recode | [] [] [] [] [] [] |
|
||||
rpm | [] [] [] [] |
|
||||
screem | |
|
||||
scrollkeeper | [] [] [] [] [] [] [] |
|
||||
sed | [] [] [] [] [] [] [] [] |
|
||||
sh-utils | [] [] [] |
|
||||
shared-mime-info | [] [] [] [] [] |
|
||||
sharutils | [] [] [] |
|
||||
silky | [] |
|
||||
skencil | [] [] [] |
|
||||
sketch | [] [] [] |
|
||||
solfege | |
|
||||
soundtracker | [] [] |
|
||||
sp | |
|
||||
stardict | [] [] |
|
||||
tar | [] [] [] [] |
|
||||
texinfo | [] [] [] [] |
|
||||
textutils | [] [] [] |
|
||||
tin | |
|
||||
tp-robot | [] |
|
||||
tuxpaint | [] [] [] [] [] [] [] [] |
|
||||
unicode-han-tra... | |
|
||||
unicode-transla... | |
|
||||
util-linux | [] [] [] |
|
||||
vorbis-tools | [] [] |
|
||||
wastesedge | |
|
||||
wdiff | [] [] [] [] [] [] |
|
||||
wget | [] [] [] [] [] [] [] [] [] |
|
||||
xchat | [] [] [] [] [] [] |
|
||||
xkeyboard-config | |
|
||||
xpad | |
|
||||
+-------------------------------------------------+
|
||||
or pa pl pt pt_BR rm ro ru rw sk sl sq sr sv ta
|
||||
1 0 48 30 58 6 79 71 5 45 13 12 50 86 0
|
||||
|
||||
tg th tk tr uk ven vi wa xh zh_CN zh_TW zu
|
||||
+--------------------------------------------+
|
||||
GNUnet | | 0
|
||||
a2ps | [] [] [] | 19
|
||||
aegis | | 0
|
||||
ant-phone | [] | 4
|
||||
anubis | [] | 9
|
||||
ap-utils | () | 1
|
||||
aspell | [] [] [] | 13
|
||||
bash | | 10
|
||||
batchelor | [] [] | 7
|
||||
bfd | | 1
|
||||
bibshelf | [] | 5
|
||||
binutils | [] | 6
|
||||
bison | [] | 17
|
||||
bluez-pin | [] [] [] [] [] | 24
|
||||
clisp | | 7
|
||||
console-tools | [] | 4
|
||||
coreutils | [] | 16
|
||||
cpio | [] [] | 6
|
||||
cpplib | [] [] | 7
|
||||
darkstat | [] () () | 15
|
||||
dialog | [] [] [] | 25
|
||||
diffutils | [] [] [] [] | 28
|
||||
doodle | [] | 5
|
||||
e2fsprogs | [] | 8
|
||||
enscript | [] | 12
|
||||
error | [] [] [] | 16
|
||||
fetchmail | [] | 12
|
||||
fileutils | [] [] [] | 18
|
||||
findutils | [] [] | 17
|
||||
flex | [] [] | 15
|
||||
fslint | [] | 7
|
||||
gas | [] | 3
|
||||
gawk | [] | 14
|
||||
gbiff | | 4
|
||||
gcal | [] | 5
|
||||
gcc | [] | 3
|
||||
gettext-examples | [] [] [] [] | 20
|
||||
gettext-runtime | [] [] [] [] [] | 25
|
||||
gettext-tools | [] [] [] | 17
|
||||
gimp-print | [] | 11
|
||||
gip | [] | 8
|
||||
gliv | [] | 6
|
||||
glunarclock | [] [] | 13
|
||||
gmult | [] [] [] | 13
|
||||
gnubiff | [] | 3
|
||||
gnucash | () [] | 10
|
||||
gnucash-glossary | [] | 8
|
||||
gpe-aerial | [] [] | 13
|
||||
gpe-beam | [] [] | 13
|
||||
gpe-calendar | [] [] [] [] | 18
|
||||
gpe-clock | [] [] [] [] | 17
|
||||
gpe-conf | [] [] | 12
|
||||
gpe-contacts | [] [] | 6
|
||||
gpe-edit | [] [] [] [] | 15
|
||||
gpe-go | [] [] | 11
|
||||
gpe-login | [] [] [] [] [] | 18
|
||||
gpe-ownerinfo | [] [] [] [] | 19
|
||||
gpe-sketchbook | [] [] | 14
|
||||
gpe-su | [] [] [] | 16
|
||||
gpe-taskmanager | [] [] [] | 17
|
||||
gpe-timesheet | [] [] [] [] | 17
|
||||
gpe-today | [] [] [] [] [] | 19
|
||||
gpe-todo | [] [] [] | 16
|
||||
gphoto2 | [] [] | 17
|
||||
gprof | [] [] | 10
|
||||
gpsdrive | | 2
|
||||
gramadoir | [] | 6
|
||||
grep | [] [] [] [] | 32
|
||||
gretl | | 4
|
||||
gsasl | [] [] | 12
|
||||
gss | [] | 5
|
||||
gst-plugins | [] [] | 16
|
||||
gstreamer | [] [] [] | 14
|
||||
gtick | [] | 11
|
||||
gtkspell | [] [] [] | 20
|
||||
hello | [] [] [] [] | 37
|
||||
id-utils | [] [] | 13
|
||||
impost | [] | 3
|
||||
indent | [] [] [] | 24
|
||||
iso_3166 | [] [] [] | 12
|
||||
iso_3166_1 | [] [] | 20
|
||||
iso_3166_2 | | 2
|
||||
iso_3166_3 | [] [] | 8
|
||||
iso_4217 | [] [] | 10
|
||||
iso_639 | [] [] | 12
|
||||
jpilot | [] [] [] | 6
|
||||
jtag | | 2
|
||||
jwhois | [] [] [] | 12
|
||||
kbd | [] [] | 12
|
||||
latrine | [] [] | 8
|
||||
ld | [] | 5
|
||||
libc | [] [] | 22
|
||||
libextractor | | 1
|
||||
libgpewidget | [] [] | 17
|
||||
libgsasl | [] | 7
|
||||
libiconv | [] [] [] [] [] | 32
|
||||
libidn | [] [] | 5
|
||||
lifelines | | 4
|
||||
lilypond | [] | 5
|
||||
lingoteach | | 5
|
||||
lynx | [] [] | 14
|
||||
m4 | [] [] | 17
|
||||
mailutils | [] | 7
|
||||
make | [] [] | 18
|
||||
man-db | | 5
|
||||
minicom | | 11
|
||||
mysecretdiary | [] [] | 12
|
||||
nano | | 11
|
||||
nano_1_0 | [] [] | 17
|
||||
opcodes | [] | 7
|
||||
parted | [] [] [] | 17
|
||||
psmisc | [] | 7
|
||||
ptx | [] [] | 23
|
||||
pwdutils | | 1
|
||||
python | | 0
|
||||
radius | [] | 6
|
||||
recode | [] [] | 22
|
||||
rpm | [] [] | 11
|
||||
screem | | 1
|
||||
scrollkeeper | [] [] | 23
|
||||
sed | [] [] | 19
|
||||
sh-utils | [] | 15
|
||||
shared-mime-info | [] [] | 19
|
||||
sharutils | [] [] [] | 20
|
||||
silky | | 3
|
||||
skencil | | 6
|
||||
sketch | | 6
|
||||
solfege | | 4
|
||||
soundtracker | [] | 8
|
||||
sp | [] | 3
|
||||
stardict | [] [] [] [] | 10
|
||||
tar | [] [] | 13
|
||||
texinfo | [] [] | 14
|
||||
textutils | [] [] [] | 17
|
||||
tin | | 1
|
||||
tp-robot | [] [] | 7
|
||||
tuxpaint | [] [] [] [] | 34
|
||||
unicode-han-tra... | | 0
|
||||
unicode-transla... | | 2
|
||||
util-linux | [] [] | 17
|
||||
vorbis-tools | [] | 10
|
||||
wastesedge | | 1
|
||||
wdiff | [] [] | 22
|
||||
wget | [] [] [] [] | 31
|
||||
xchat | [] [] [] | 22
|
||||
xkeyboard-config | | 1
|
||||
xpad | [] | 5
|
||||
+--------------------------------------------+
|
||||
72 teams tg th tk tr uk ven vi wa xh zh_CN zh_TW zu
|
||||
147 domains 0 0 1 78 29 0 71 16 0 41 20 0 1711
|
||||
|
||||
Some counters in the preceding matrix are higher than the number of
|
||||
visible blocks let us expect. This is because a few extra PO files are
|
||||
used for implementing regional variants of languages, or language
|
||||
dialects.
|
||||
|
||||
For a PO file in the matrix above to be effective, the package to
|
||||
which it applies should also have been internationalized and
|
||||
distributed as such by its maintainer. There might be an observable
|
||||
lag between the mere existence a PO file and its wide availability in a
|
||||
distribution.
|
||||
|
||||
If April 2005 seems to be old, you may fetch a more recent copy of
|
||||
this `ABOUT-NLS' file on most GNU archive sites. The most up-to-date
|
||||
matrix with full percentage details can be found at
|
||||
`http://www.iro.umontreal.ca/contrib/po/HTML/matrix.html'.
|
||||
|
||||
1.6 Using `gettext' in new packages
|
||||
===================================
|
||||
|
||||
If you are writing a freely available program and want to
|
||||
internationalize it you are welcome to use GNU `gettext' in your
|
||||
package. Of course you have to respect the GNU Library General Public
|
||||
License which covers the use of the GNU `gettext' library. This means
|
||||
in particular that even non-free programs can use `libintl' as a shared
|
||||
library, whereas only free software can use `libintl' as a static
|
||||
library or use modified versions of `libintl'.
|
||||
|
||||
Once the sources are changed appropriately and the setup can handle
|
||||
the use of `gettext' the only thing missing are the translations. The
|
||||
Free Translation Project is also available for packages which are not
|
||||
developed inside the GNU project. Therefore the information given above
|
||||
applies also for every other Free Software Project. Contact
|
||||
`translation@iro.umontreal.ca' to make the `.pot' files available to
|
||||
the translation teams.
|
||||
|
1
libiconv/AUTHORS
Normal file
1
libiconv/AUTHORS
Normal file
@ -0,0 +1 @@
|
||||
Bruno Haible <bruno@clisp.org>
|
482
libiconv/COPYING.LIB
Normal file
482
libiconv/COPYING.LIB
Normal file
@ -0,0 +1,482 @@
|
||||
GNU LIBRARY GENERAL PUBLIC LICENSE
|
||||
Version 2, June 1991
|
||||
|
||||
Copyright (C) 1991 Free Software Foundation, Inc.
|
||||
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
|
||||
Everyone is permitted to copy and distribute verbatim copies
|
||||
of this license document, but changing it is not allowed.
|
||||
|
||||
[This is the first released version of the library GPL. It is
|
||||
numbered 2 because it goes with version 2 of the ordinary GPL.]
|
||||
|
||||
Preamble
|
||||
|
||||
The licenses for most software are designed to take away your
|
||||
freedom to share and change it. By contrast, the GNU General Public
|
||||
Licenses are intended to guarantee your freedom to share and change
|
||||
free software--to make sure the software is free for all its users.
|
||||
|
||||
This license, the Library General Public License, applies to some
|
||||
specially designated Free Software Foundation software, and to any
|
||||
other libraries whose authors decide to use it. You can use it for
|
||||
your libraries, too.
|
||||
|
||||
When we speak of free software, we are referring to freedom, not
|
||||
price. Our General Public Licenses are designed to make sure that you
|
||||
have the freedom to distribute copies of free software (and charge for
|
||||
this service if you wish), that you receive source code or can get it
|
||||
if you want it, that you can change the software or use pieces of it
|
||||
in new free programs; and that you know you can do these things.
|
||||
|
||||
To protect your rights, we need to make restrictions that forbid
|
||||
anyone to deny you these rights or to ask you to surrender the rights.
|
||||
These restrictions translate to certain responsibilities for you if
|
||||
you distribute copies of the library, or if you modify it.
|
||||
|
||||
For example, if you distribute copies of the library, whether gratis
|
||||
or for a fee, you must give the recipients all the rights that we gave
|
||||
you. You must make sure that they, too, receive or can get the source
|
||||
code. If you link a program with the library, you must provide
|
||||
complete object files to the recipients so that they can relink them
|
||||
with the library, after making changes to the library and recompiling
|
||||
it. And you must show them these terms so they know their rights.
|
||||
|
||||
Our method of protecting your rights has two steps: (1) copyright
|
||||
the library, and (2) offer you this license which gives you legal
|
||||
permission to copy, distribute and/or modify the library.
|
||||
|
||||
Also, for each distributor's protection, we want to make certain
|
||||
that everyone understands that there is no warranty for this free
|
||||
library. If the library is modified by someone else and passed on, we
|
||||
want its recipients to know that what they have is not the original
|
||||
version, so that any problems introduced by others will not reflect on
|
||||
the original authors' reputations.
|
||||
|
||||
Finally, any free program is threatened constantly by software
|
||||
patents. We wish to avoid the danger that companies distributing free
|
||||
software will individually obtain patent licenses, thus in effect
|
||||
transforming the program into proprietary software. To prevent this,
|
||||
we have made it clear that any patent must be licensed for everyone's
|
||||
free use or not licensed at all.
|
||||
|
||||
Most GNU software, including some libraries, is covered by the ordinary
|
||||
GNU General Public License, which was designed for utility programs. This
|
||||
license, the GNU Library General Public License, applies to certain
|
||||
designated libraries. This license is quite different from the ordinary
|
||||
one; be sure to read it in full, and don't assume that anything in it is
|
||||
the same as in the ordinary license.
|
||||
|
||||
The reason we have a separate public license for some libraries is that
|
||||
they blur the distinction we usually make between modifying or adding to a
|
||||
program and simply using it. Linking a program with a library, without
|
||||
changing the library, is in some sense simply using the library, and is
|
||||
analogous to running a utility program or application program. However, in
|
||||
a textual and legal sense, the linked executable is a combined work, a
|
||||
derivative of the original library, and the ordinary General Public License
|
||||
treats it as such.
|
||||
|
||||
Because of this blurred distinction, using the ordinary General
|
||||
Public License for libraries did not effectively promote software
|
||||
sharing, because most developers did not use the libraries. We
|
||||
concluded that weaker conditions might promote sharing better.
|
||||
|
||||
However, unrestricted linking of non-free programs would deprive the
|
||||
users of those programs of all benefit from the free status of the
|
||||
libraries themselves. This Library General Public License is intended to
|
||||
permit developers of non-free programs to use free libraries, while
|
||||
preserving your freedom as a user of such programs to change the free
|
||||
libraries that are incorporated in them. (We have not seen how to achieve
|
||||
this as regards changes in header files, but we have achieved it as regards
|
||||
changes in the actual functions of the Library.) The hope is that this
|
||||
will lead to faster development of free libraries.
|
||||
|
||||
The precise terms and conditions for copying, distribution and
|
||||
modification follow. Pay close attention to the difference between a
|
||||
"work based on the library" and a "work that uses the library". The
|
||||
former contains code derived from the library, while the latter only
|
||||
works together with the library.
|
||||
|
||||
Note that it is possible for a library to be covered by the ordinary
|
||||
General Public License rather than by this special one.
|
||||
|
||||
GNU LIBRARY GENERAL PUBLIC LICENSE
|
||||
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
|
||||
|
||||
0. This License Agreement applies to any software library which
|
||||
contains a notice placed by the copyright holder or other authorized
|
||||
party saying it may be distributed under the terms of this Library
|
||||
General Public License (also called "this License"). Each licensee is
|
||||
addressed as "you".
|
||||
|
||||
A "library" means a collection of software functions and/or data
|
||||
prepared so as to be conveniently linked with application programs
|
||||
(which use some of those functions and data) to form executables.
|
||||
|
||||
The "Library", below, refers to any such software library or work
|
||||
which has been distributed under these terms. A "work based on the
|
||||
Library" means either the Library or any derivative work under
|
||||
copyright law: that is to say, a work containing the Library or a
|
||||
portion of it, either verbatim or with modifications and/or translated
|
||||
straightforwardly into another language. (Hereinafter, translation is
|
||||
included without limitation in the term "modification".)
|
||||
|
||||
"Source code" for a work means the preferred form of the work for
|
||||
making modifications to it. For a library, complete source code means
|
||||
all the source code for all modules it contains, plus any associated
|
||||
interface definition files, plus the scripts used to control compilation
|
||||
and installation of the library.
|
||||
|
||||
Activities other than copying, distribution and modification are not
|
||||
covered by this License; they are outside its scope. The act of
|
||||
running a program using the Library is not restricted, and output from
|
||||
such a program is covered only if its contents constitute a work based
|
||||
on the Library (independent of the use of the Library in a tool for
|
||||
writing it). Whether that is true depends on what the Library does
|
||||
and what the program that uses the Library does.
|
||||
|
||||
1. You may copy and distribute verbatim copies of the Library's
|
||||
complete source code as you receive it, in any medium, provided that
|
||||
you conspicuously and appropriately publish on each copy an
|
||||
appropriate copyright notice and disclaimer of warranty; keep intact
|
||||
all the notices that refer to this License and to the absence of any
|
||||
warranty; and distribute a copy of this License along with the
|
||||
Library.
|
||||
|
||||
You may charge a fee for the physical act of transferring a copy,
|
||||
and you may at your option offer warranty protection in exchange for a
|
||||
fee.
|
||||
|
||||
2. You may modify your copy or copies of the Library or any portion
|
||||
of it, thus forming a work based on the Library, and copy and
|
||||
distribute such modifications or work under the terms of Section 1
|
||||
above, provided that you also meet all of these conditions:
|
||||
|
||||
a) The modified work must itself be a software library.
|
||||
|
||||
b) You must cause the files modified to carry prominent notices
|
||||
stating that you changed the files and the date of any change.
|
||||
|
||||
c) You must cause the whole of the work to be licensed at no
|
||||
charge to all third parties under the terms of this License.
|
||||
|
||||
d) If a facility in the modified Library refers to a function or a
|
||||
table of data to be supplied by an application program that uses
|
||||
the facility, other than as an argument passed when the facility
|
||||
is invoked, then you must make a good faith effort to ensure that,
|
||||
in the event an application does not supply such function or
|
||||
table, the facility still operates, and performs whatever part of
|
||||
its purpose remains meaningful.
|
||||
|
||||
(For example, a function in a library to compute square roots has
|
||||
a purpose that is entirely well-defined independent of the
|
||||
application. Therefore, Subsection 2d requires that any
|
||||
application-supplied function or table used by this function must
|
||||
be optional: if the application does not supply it, the square
|
||||
root function must still compute square roots.)
|
||||
|
||||
These requirements apply to the modified work as a whole. If
|
||||
identifiable sections of that work are not derived from the Library,
|
||||
and can be reasonably considered independent and separate works in
|
||||
themselves, then this License, and its terms, do not apply to those
|
||||
sections when you distribute them as separate works. But when you
|
||||
distribute the same sections as part of a whole which is a work based
|
||||
on the Library, the distribution of the whole must be on the terms of
|
||||
this License, whose permissions for other licensees extend to the
|
||||
entire whole, and thus to each and every part regardless of who wrote
|
||||
it.
|
||||
|
||||
Thus, it is not the intent of this section to claim rights or contest
|
||||
your rights to work written entirely by you; rather, the intent is to
|
||||
exercise the right to control the distribution of derivative or
|
||||
collective works based on the Library.
|
||||
|
||||
In addition, mere aggregation of another work not based on the Library
|
||||
with the Library (or with a work based on the Library) on a volume of
|
||||
a storage or distribution medium does not bring the other work under
|
||||
the scope of this License.
|
||||
|
||||
3. You may opt to apply the terms of the ordinary GNU General Public
|
||||
License instead of this License to a given copy of the Library. To do
|
||||
this, you must alter all the notices that refer to this License, so
|
||||
that they refer to the ordinary GNU General Public License, version 2,
|
||||
instead of to this License. (If a newer version than version 2 of the
|
||||
ordinary GNU General Public License has appeared, then you can specify
|
||||
that version instead if you wish.) Do not make any other change in
|
||||
these notices.
|
||||
|
||||
Once this change is made in a given copy, it is irreversible for
|
||||
that copy, so the ordinary GNU General Public License applies to all
|
||||
subsequent copies and derivative works made from that copy.
|
||||
|
||||
This option is useful when you wish to copy part of the code of
|
||||
the Library into a program that is not a library.
|
||||
|
||||
4. You may copy and distribute the Library (or a portion or
|
||||
derivative of it, under Section 2) in object code or executable form
|
||||
under the terms of Sections 1 and 2 above provided that you accompany
|
||||
it with the complete corresponding machine-readable source code, which
|
||||
must be distributed under the terms of Sections 1 and 2 above on a
|
||||
medium customarily used for software interchange.
|
||||
|
||||
If distribution of object code is made by offering access to copy
|
||||
from a designated place, then offering equivalent access to copy the
|
||||
source code from the same place satisfies the requirement to
|
||||
distribute the source code, even though third parties are not
|
||||
compelled to copy the source along with the object code.
|
||||
|
||||
5. A program that contains no derivative of any portion of the
|
||||
Library, but is designed to work with the Library by being compiled or
|
||||
linked with it, is called a "work that uses the Library". Such a
|
||||
work, in isolation, is not a derivative work of the Library, and
|
||||
therefore falls outside the scope of this License.
|
||||
|
||||
However, linking a "work that uses the Library" with the Library
|
||||
creates an executable that is a derivative of the Library (because it
|
||||
contains portions of the Library), rather than a "work that uses the
|
||||
library". The executable is therefore covered by this License.
|
||||
Section 6 states terms for distribution of such executables.
|
||||
|
||||
When a "work that uses the Library" uses material from a header file
|
||||
that is part of the Library, the object code for the work may be a
|
||||
derivative work of the Library even though the source code is not.
|
||||
Whether this is true is especially significant if the work can be
|
||||
linked without the Library, or if the work is itself a library. The
|
||||
threshold for this to be true is not precisely defined by law.
|
||||
|
||||
If such an object file uses only numerical parameters, data
|
||||
structure layouts and accessors, and small macros and small inline
|
||||
functions (ten lines or less in length), then the use of the object
|
||||
file is unrestricted, regardless of whether it is legally a derivative
|
||||
work. (Executables containing this object code plus portions of the
|
||||
Library will still fall under Section 6.)
|
||||
|
||||
Otherwise, if the work is a derivative of the Library, you may
|
||||
distribute the object code for the work under the terms of Section 6.
|
||||
Any executables containing that work also fall under Section 6,
|
||||
whether or not they are linked directly with the Library itself.
|
||||
|
||||
6. As an exception to the Sections above, you may also compile or
|
||||
link a "work that uses the Library" with the Library to produce a
|
||||
work containing portions of the Library, and distribute that work
|
||||
under terms of your choice, provided that the terms permit
|
||||
modification of the work for the customer's own use and reverse
|
||||
engineering for debugging such modifications.
|
||||
|
||||
You must give prominent notice with each copy of the work that the
|
||||
Library is used in it and that the Library and its use are covered by
|
||||
this License. You must supply a copy of this License. If the work
|
||||
during execution displays copyright notices, you must include the
|
||||
copyright notice for the Library among them, as well as a reference
|
||||
directing the user to the copy of this License. Also, you must do one
|
||||
of these things:
|
||||
|
||||
a) Accompany the work with the complete corresponding
|
||||
machine-readable source code for the Library including whatever
|
||||
changes were used in the work (which must be distributed under
|
||||
Sections 1 and 2 above); and, if the work is an executable linked
|
||||
with the Library, with the complete machine-readable "work that
|
||||
uses the Library", as object code and/or source code, so that the
|
||||
user can modify the Library and then relink to produce a modified
|
||||
executable containing the modified Library. (It is understood
|
||||
that the user who changes the contents of definitions files in the
|
||||
Library will not necessarily be able to recompile the application
|
||||
to use the modified definitions.)
|
||||
|
||||
b) Accompany the work with a written offer, valid for at
|
||||
least three years, to give the same user the materials
|
||||
specified in Subsection 6a, above, for a charge no more
|
||||
than the cost of performing this distribution.
|
||||
|
||||
c) If distribution of the work is made by offering access to copy
|
||||
from a designated place, offer equivalent access to copy the above
|
||||
specified materials from the same place.
|
||||
|
||||
d) Verify that the user has already received a copy of these
|
||||
materials or that you have already sent this user a copy.
|
||||
|
||||
For an executable, the required form of the "work that uses the
|
||||
Library" must include any data and utility programs needed for
|
||||
reproducing the executable from it. However, as a special exception,
|
||||
the source code distributed need not include anything that is normally
|
||||
distributed (in either source or binary form) with the major
|
||||
components (compiler, kernel, and so on) of the operating system on
|
||||
which the executable runs, unless that component itself accompanies
|
||||
the executable.
|
||||
|
||||
It may happen that this requirement contradicts the license
|
||||
restrictions of other proprietary libraries that do not normally
|
||||
accompany the operating system. Such a contradiction means you cannot
|
||||
use both them and the Library together in an executable that you
|
||||
distribute.
|
||||
|
||||
7. You may place library facilities that are a work based on the
|
||||
Library side-by-side in a single library together with other library
|
||||
facilities not covered by this License, and distribute such a combined
|
||||
library, provided that the separate distribution of the work based on
|
||||
the Library and of the other library facilities is otherwise
|
||||
permitted, and provided that you do these two things:
|
||||
|
||||
a) Accompany the combined library with a copy of the same work
|
||||
based on the Library, uncombined with any other library
|
||||
facilities. This must be distributed under the terms of the
|
||||
Sections above.
|
||||
|
||||
b) Give prominent notice with the combined library of the fact
|
||||
that part of it is a work based on the Library, and explaining
|
||||
where to find the accompanying uncombined form of the same work.
|
||||
|
||||
8. You may not copy, modify, sublicense, link with, or distribute
|
||||
the Library except as expressly provided under this License. Any
|
||||
attempt otherwise to copy, modify, sublicense, link with, or
|
||||
distribute the Library is void, and will automatically terminate your
|
||||
rights under this License. However, parties who have received copies,
|
||||
or rights, from you under this License will not have their licenses
|
||||
terminated so long as such parties remain in full compliance.
|
||||
|
||||
9. You are not required to accept this License, since you have not
|
||||
signed it. However, nothing else grants you permission to modify or
|
||||
distribute the Library or its derivative works. These actions are
|
||||
prohibited by law if you do not accept this License. Therefore, by
|
||||
modifying or distributing the Library (or any work based on the
|
||||
Library), you indicate your acceptance of this License to do so, and
|
||||
all its terms and conditions for copying, distributing or modifying
|
||||
the Library or works based on it.
|
||||
|
||||
10. Each time you redistribute the Library (or any work based on the
|
||||
Library), the recipient automatically receives a license from the
|
||||
original licensor to copy, distribute, link with or modify the Library
|
||||
subject to these terms and conditions. You may not impose any further
|
||||
restrictions on the recipients' exercise of the rights granted herein.
|
||||
You are not responsible for enforcing compliance by third parties to
|
||||
this License.
|
||||
|
||||
11. If, as a consequence of a court judgment or allegation of patent
|
||||
infringement or for any other reason (not limited to patent issues),
|
||||
conditions are imposed on you (whether by court order, agreement or
|
||||
otherwise) that contradict the conditions of this License, they do not
|
||||
excuse you from the conditions of this License. If you cannot
|
||||
distribute so as to satisfy simultaneously your obligations under this
|
||||
License and any other pertinent obligations, then as a consequence you
|
||||
may not distribute the Library at all. For example, if a patent
|
||||
license would not permit royalty-free redistribution of the Library by
|
||||
all those who receive copies directly or indirectly through you, then
|
||||
the only way you could satisfy both it and this License would be to
|
||||
refrain entirely from distribution of the Library.
|
||||
|
||||
If any portion of this section is held invalid or unenforceable under any
|
||||
particular circumstance, the balance of the section is intended to apply,
|
||||
and the section as a whole is intended to apply in other circumstances.
|
||||
|
||||
It is not the purpose of this section to induce you to infringe any
|
||||
patents or other property right claims or to contest validity of any
|
||||
such claims; this section has the sole purpose of protecting the
|
||||
integrity of the free software distribution system which is
|
||||
implemented by public license practices. Many people have made
|
||||
generous contributions to the wide range of software distributed
|
||||
through that system in reliance on consistent application of that
|
||||
system; it is up to the author/donor to decide if he or she is willing
|
||||
to distribute software through any other system and a licensee cannot
|
||||
impose that choice.
|
||||
|
||||
This section is intended to make thoroughly clear what is believed to
|
||||
be a consequence of the rest of this License.
|
||||
|
||||
12. If the distribution and/or use of the Library is restricted in
|
||||
certain countries either by patents or by copyrighted interfaces, the
|
||||
original copyright holder who places the Library under this License may add
|
||||
an explicit geographical distribution limitation excluding those countries,
|
||||
so that distribution is permitted only in or among countries not thus
|
||||
excluded. In such case, this License incorporates the limitation as if
|
||||
written in the body of this License.
|
||||
|
||||
13. The Free Software Foundation may publish revised and/or new
|
||||
versions of the Library General Public License from time to time.
|
||||
Such new versions will be similar in spirit to the present version,
|
||||
but may differ in detail to address new problems or concerns.
|
||||
|
||||
Each version is given a distinguishing version number. If the Library
|
||||
specifies a version number of this License which applies to it and
|
||||
"any later version", you have the option of following the terms and
|
||||
conditions either of that version or of any later version published by
|
||||
the Free Software Foundation. If the Library does not specify a
|
||||
license version number, you may choose any version ever published by
|
||||
the Free Software Foundation.
|
||||
|
||||
14. If you wish to incorporate parts of the Library into other free
|
||||
programs whose distribution conditions are incompatible with these,
|
||||
write to the author to ask for permission. For software which is
|
||||
copyrighted by the Free Software Foundation, write to the Free
|
||||
Software Foundation; we sometimes make exceptions for this. Our
|
||||
decision will be guided by the two goals of preserving the free status
|
||||
of all derivatives of our free software and of promoting the sharing
|
||||
and reuse of software generally.
|
||||
|
||||
NO WARRANTY
|
||||
|
||||
15. BECAUSE THE LIBRARY IS LICENSED FREE OF CHARGE, THERE IS NO
|
||||
WARRANTY FOR THE LIBRARY, TO THE EXTENT PERMITTED BY APPLICABLE LAW.
|
||||
EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR
|
||||
OTHER PARTIES PROVIDE THE LIBRARY "AS IS" WITHOUT WARRANTY OF ANY
|
||||
KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
||||
PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE
|
||||
LIBRARY IS WITH YOU. SHOULD THE LIBRARY PROVE DEFECTIVE, YOU ASSUME
|
||||
THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
|
||||
|
||||
16. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN
|
||||
WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY
|
||||
AND/OR REDISTRIBUTE THE LIBRARY AS PERMITTED ABOVE, BE LIABLE TO YOU
|
||||
FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR
|
||||
CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE
|
||||
LIBRARY (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING
|
||||
RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A
|
||||
FAILURE OF THE LIBRARY TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF
|
||||
SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
|
||||
DAMAGES.
|
||||
|
||||
END OF TERMS AND CONDITIONS
|
||||
|
||||
Appendix: How to Apply These Terms to Your New Libraries
|
||||
|
||||
If you develop a new library, and you want it to be of the greatest
|
||||
possible use to the public, we recommend making it free software that
|
||||
everyone can redistribute and change. You can do so by permitting
|
||||
redistribution under these terms (or, alternatively, under the terms of the
|
||||
ordinary General Public License).
|
||||
|
||||
To apply these terms, attach the following notices to the library. It is
|
||||
safest to attach them to the start of each source file to most effectively
|
||||
convey the exclusion of warranty; and each file should have at least the
|
||||
"copyright" line and a pointer to where the full notice is found.
|
||||
|
||||
<one line to give the library's name and a brief idea of what it does.>
|
||||
Copyright (C) <year> <name of author>
|
||||
|
||||
This library is free software; you can redistribute it and/or
|
||||
modify it under the terms of the GNU Library General Public
|
||||
License as published by the Free Software Foundation; either
|
||||
version 2 of the License, or (at your option) any later version.
|
||||
|
||||
This library is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
Library General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Library General Public
|
||||
License along with this library; if not, write to the Free
|
||||
Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
|
||||
MA 02110-1301, USA
|
||||
|
||||
Also add information on how to contact you by electronic and paper mail.
|
||||
|
||||
You should also get your employer (if you work as a programmer) or your
|
||||
school, if any, to sign a "copyright disclaimer" for the library, if
|
||||
necessary. Here is a sample; alter the names:
|
||||
|
||||
Yoyodyne, Inc., hereby disclaims all copyright interest in the
|
||||
library `Frob' (a library for tweaking knobs) written by James Random Hacker.
|
||||
|
||||
<signature of Ty Coon>, 1 April 1990
|
||||
Ty Coon, President of Vice
|
||||
|
||||
That's all there is to it!
|
3724
libiconv/ChangeLog
Normal file
3724
libiconv/ChangeLog
Normal file
File diff suppressed because it is too large
Load Diff
64
libiconv/DESIGN
Normal file
64
libiconv/DESIGN
Normal file
@ -0,0 +1,64 @@
|
||||
While some other iconv(3) implementations - like FreeBSD iconv(3) - choose
|
||||
the "many small shared libraries" and dlopen(3) approach, this implementation
|
||||
packs everything into a single shared library. Here is a comparison of the
|
||||
two designs.
|
||||
|
||||
* Run-time efficiency
|
||||
1. A dlopen() based approach needs a cache of loaded shared libraries.
|
||||
Otherwise, every iconv_open() call will result in a call to dlopen()
|
||||
and thus to file system related system calls - which is prohibitive
|
||||
because some applications use the iconv_open/iconv/iconv_close sequence
|
||||
for every single filename, string, or piece of text.
|
||||
2. In terms of virtual memory use, both approaches are on par. Being shared
|
||||
libraries, the tables are shared between any processes that use them.
|
||||
And because of the demand loading used by Unix systems (and because libiconv
|
||||
does not have initialization functions), only those parts of the tables
|
||||
which are needed (typically very few kilobytes) will be read from disk and
|
||||
paged into main memory.
|
||||
3. Even with a cache of loaded shared libraries, the dlopen() based approach
|
||||
makes more system calls, because it has to load one or two shared libraries
|
||||
for every encoding in use.
|
||||
|
||||
* Total size
|
||||
In the dlopen(3) approach, every shared library has a symbol table and
|
||||
relocation offset. All together, FreeBSD iconv installs more than 200 shared
|
||||
libraries with a total size of 2.3 MB. Whereas libiconv installs 0.45 MB.
|
||||
|
||||
* Extensibility
|
||||
The dlopen(3) approach is good for guaranteeing extensibility if the iconv
|
||||
implementation is distributed without source. (Or when, as in glibc, you
|
||||
cannot rebuild iconv without rebuilding your libc, thus possibly
|
||||
destabilizing your system.)
|
||||
The libiconv package achieves extensibility through the LGPL license:
|
||||
Every user has access to the source of the package and can extend and
|
||||
replace just libiconv.so.
|
||||
The places which have to be modified when a new encoding is added are as
|
||||
follows: add an #include statement in iconv.c, add an entry in the table in
|
||||
iconv.c, and of course, update the README and iconv_open.3 manual page.
|
||||
|
||||
* Use within other packages
|
||||
If you want to incorporate an iconv implementation into another package
|
||||
(such as a mail user agent or web browser), the single library approach
|
||||
is easier, because:
|
||||
1. In the shared library approach you have to provide the right directory
|
||||
prefix which will be used at run time.
|
||||
2. Incorporating iconv as a static library into the executable is easy -
|
||||
it won't need dynamic loading. (This assumes that your package is under
|
||||
the LGPL or GPL license.)
|
||||
|
||||
|
||||
All conversions go through Unicode. This is possible because most of the
|
||||
world's characters have already been allocated in the Unicode standard.
|
||||
Therefore we have for each encoding two functions:
|
||||
- For conversion from the encoding to Unicode, a function called xxx_mbtowc.
|
||||
- For conversion from Unicode to the encoding, a function called xxx_wctomb,
|
||||
and for stateful encodings, a function called xxx_reset which returns to
|
||||
the initial shift state.
|
||||
|
||||
|
||||
All our functions operate on a single Unicode character at a time. This is
|
||||
obviously less efficient than operating on an entire buffer of characters at
|
||||
a time, but it makes the coding considerably easier and less bug-prone. Those
|
||||
who wish best performance should install the Real Thing (TM): GNU libc 2.1
|
||||
or newer.
|
||||
|
246
libiconv/INSTALL.generic
Normal file
246
libiconv/INSTALL.generic
Normal file
@ -0,0 +1,246 @@
|
||||
Basic Installation
|
||||
==================
|
||||
|
||||
These are generic installation instructions.
|
||||
|
||||
The `configure' shell script attempts to guess correct values for
|
||||
various system-dependent variables used during compilation. It uses
|
||||
those values to create a `Makefile' in each directory of the package.
|
||||
It may also create one or more `.h' files containing system-dependent
|
||||
definitions. Finally, it creates a shell script `config.status' that
|
||||
you can run in the future to recreate the current configuration, a file
|
||||
`config.cache' that saves the results of its tests to speed up
|
||||
reconfiguring, and a file `config.log' containing compiler output
|
||||
(useful mainly for debugging `configure').
|
||||
|
||||
If you need to do unusual things to compile the package, please try
|
||||
to figure out how `configure' could check whether to do them, and mail
|
||||
diffs or instructions to the address given in the `README' so they can
|
||||
be considered for the next release. If at some point `config.cache'
|
||||
contains results you don't want to keep, you may remove or edit it.
|
||||
|
||||
The file `configure.ac' is used to create `configure' by a program
|
||||
called `autoconf'. You only need `configure.ac' if you want to change
|
||||
it or regenerate `configure' using a newer version of `autoconf'.
|
||||
|
||||
The simplest way to compile this package is:
|
||||
|
||||
1. `cd' to the directory containing the package's source code and type
|
||||
`./configure' to configure the package for your system. If you're
|
||||
using `csh' on an old version of System V, you might need to type
|
||||
`sh ./configure' instead to prevent `csh' from trying to execute
|
||||
`configure' itself.
|
||||
|
||||
Running `configure' takes awhile. While running, it prints some
|
||||
messages telling which features it is checking for.
|
||||
|
||||
2. Type `make' to compile the package.
|
||||
|
||||
3. Optionally, type `make check' to run any self-tests that come with
|
||||
the package.
|
||||
|
||||
4. Type `make install' to install the programs and any data files and
|
||||
documentation.
|
||||
|
||||
5. You can remove the program binaries and object files from the
|
||||
source code directory by typing `make clean'. To also remove the
|
||||
files that `configure' created (so you can compile the package for
|
||||
a different kind of computer), type `make distclean'. There is
|
||||
also a `make maintainer-clean' target, but that is intended mainly
|
||||
for the package's developers. If you use it, you may have to get
|
||||
all sorts of other programs in order to regenerate files that came
|
||||
with the distribution.
|
||||
|
||||
Compilers and Options
|
||||
=====================
|
||||
|
||||
Some systems require unusual options for compilation or linking that
|
||||
the `configure' script does not know about. You can give `configure'
|
||||
initial values for variables by setting them in the environment. Using
|
||||
a Bourne-compatible shell, you can do that on the command line like
|
||||
this:
|
||||
CC=c89 CFLAGS=-O2 LIBS=-lposix ./configure
|
||||
|
||||
Or on systems that have the `env' program, you can do it like this:
|
||||
env CPPFLAGS=-I/usr/local/include LDFLAGS=-s ./configure
|
||||
|
||||
Compiling For Multiple Architectures
|
||||
====================================
|
||||
|
||||
You can compile the package for more than one kind of computer at the
|
||||
same time, by placing the object files for each architecture in their
|
||||
own directory. To do this, you must use a version of `make' that
|
||||
supports the `VPATH' variable, such as GNU `make'. `cd' to the
|
||||
directory where you want the object files and executables to go and run
|
||||
the `configure' script. `configure' automatically checks for the
|
||||
source code in the directory that `configure' is in and in `..'.
|
||||
|
||||
If you have to use a `make' that does not supports the `VPATH'
|
||||
variable, you have to compile the package for one architecture at a time
|
||||
in the source code directory. After you have installed the package for
|
||||
one architecture, use `make distclean' before reconfiguring for another
|
||||
architecture.
|
||||
|
||||
Installation Names
|
||||
==================
|
||||
|
||||
By default, `make install' will install the package's files in
|
||||
`/usr/local/bin', `/usr/local/man', etc. You can specify an
|
||||
installation prefix other than `/usr/local' by giving `configure' the
|
||||
option `--prefix=PATH'.
|
||||
|
||||
You can specify separate installation prefixes for
|
||||
architecture-specific files and architecture-independent files. If you
|
||||
give `configure' the option `--exec-prefix=PATH', the package will use
|
||||
PATH as the prefix for installing programs and libraries.
|
||||
Documentation and other data files will still use the regular prefix.
|
||||
|
||||
In addition, if you use an unusual directory layout you can give
|
||||
options like `--bindir=PATH' to specify different values for particular
|
||||
kinds of files. Run `configure --help' for a list of the directories
|
||||
you can set and what kinds of files go in them.
|
||||
|
||||
If the package supports it, you can cause programs to be installed
|
||||
with an extra prefix or suffix on their names by giving `configure' the
|
||||
option `--program-prefix=PREFIX' or `--program-suffix=SUFFIX'.
|
||||
|
||||
Relocatable Installation
|
||||
========================
|
||||
|
||||
By default, `make install' will install a package with hardwired
|
||||
file names, and the package will not work correctly when copied or
|
||||
moved to a different location in the filesystem.
|
||||
|
||||
Some packages pay attention to the `--enable-relocatable' option to
|
||||
`configure'. This option makes the entire installed package
|
||||
relocatable. This means, it can be moved or copied to a different
|
||||
location on the filesystem. It is possible to make symlinks to the
|
||||
installed and moved programs, and invoke them through the symlink. It
|
||||
is possible to do the same thing with a hard link _only_ if the hard
|
||||
linked file is in the same directory as the real program.
|
||||
|
||||
For reliability it is best to give together with --enable-relocatable
|
||||
a `--prefix' option pointing to an otherwise unused (and never used
|
||||
again) directory, for example, `--prefix=/tmp/inst$$'. This is
|
||||
recommended because on some OSes the executables remember the location
|
||||
of shared libraries (and prefer them over LD_LIBRARY_PATH !), therefore
|
||||
such an executable will look for its shared libraries first in the
|
||||
original installation directory and only then in the current
|
||||
installation directory.
|
||||
|
||||
Installation with `--enable-relocatable' will not work for setuid /
|
||||
setgid executables. (This is because such an executable kills its
|
||||
LD_LIBRARY_PATH variable when it is launched.)
|
||||
|
||||
The runtime penalty and size penalty are nearly zero on Linux 2.2 or
|
||||
newer (just one system call more when an executable is launched), and
|
||||
small on other systems (the wrapper program just sets an environment
|
||||
variable and execs the real program).
|
||||
|
||||
Optional Features
|
||||
=================
|
||||
|
||||
Some packages pay attention to `--enable-FEATURE' options to
|
||||
`configure', where FEATURE indicates an optional part of the package.
|
||||
They may also pay attention to `--with-PACKAGE' options, where PACKAGE
|
||||
is something like `gnu-as' or `x' (for the X Window System). The
|
||||
`README' should mention any `--enable-' and `--with-' options that the
|
||||
package recognizes.
|
||||
|
||||
For packages that use the X Window System, `configure' can usually
|
||||
find the X include and library files automatically, but if it doesn't,
|
||||
you can use the `configure' options `--x-includes=DIR' and
|
||||
`--x-libraries=DIR' to specify their locations.
|
||||
|
||||
For packages that use the GNU libiconv library, you can use the
|
||||
`configure' option `--with-libiconv-prefix' to specify the prefix you
|
||||
used while installing GNU libiconv. This option is not necessary if
|
||||
that other prefix is the same as the one now specified through --prefix.
|
||||
|
||||
For packages that use the GNU libintl library, you can use the
|
||||
`configure' option `--with-libintl-prefix' to specify the prefix you
|
||||
used while installing GNU gettext-runtime. This option is not necessary if
|
||||
that other prefix is the same as the one now specified through --prefix.
|
||||
|
||||
Particular Systems
|
||||
==================
|
||||
|
||||
On HP-UX, the default C compiler is not ANSI C compatible. If GNU CC
|
||||
is not installed, it is recommended to use the following options in order
|
||||
to use an ANSI C compiler:
|
||||
|
||||
env CC="cc -Ae" ./configure
|
||||
|
||||
On AIX 3, the C include files by default don't define some necessary
|
||||
prototype declarations. If GNU CC is not installed, it is recommended to
|
||||
use the following options:
|
||||
|
||||
env CC="xlc -D_ALL_SOURCE" ./configure
|
||||
|
||||
On BeOS, user installed software goes in /boot/home/config, not
|
||||
/usr/local. It is recommended to use the following options:
|
||||
|
||||
./configure --prefix=/boot/home/config
|
||||
|
||||
Specifying the System Type
|
||||
==========================
|
||||
|
||||
There may be some features `configure' can not figure out
|
||||
automatically, but needs to determine by the type of host the package
|
||||
will run on. Usually `configure' can figure that out, but if it prints
|
||||
a message saying it can not guess the host type, give it the
|
||||
`--host=TYPE' option. TYPE can either be a short name for the system
|
||||
type, such as `sun4', or a canonical name with three fields:
|
||||
CPU-COMPANY-SYSTEM
|
||||
|
||||
See the file `config.sub' for the possible values of each field. If
|
||||
`config.sub' isn't included in this package, then this package doesn't
|
||||
need to know the host type.
|
||||
|
||||
If you are building compiler tools for cross-compiling, you can also
|
||||
use the `--target=TYPE' option to select the type of system they will
|
||||
produce code for and the `--build=TYPE' option to select the type of
|
||||
system on which you are compiling the package.
|
||||
|
||||
Sharing Defaults
|
||||
================
|
||||
|
||||
If you want to set default values for `configure' scripts to share,
|
||||
you can create a site shell script called `config.site' that gives
|
||||
default values for variables like `CC', `cache_file', and `prefix'.
|
||||
`configure' looks for `PREFIX/share/config.site' if it exists, then
|
||||
`PREFIX/etc/config.site' if it exists. Or, you can set the
|
||||
`CONFIG_SITE' environment variable to the location of the site script.
|
||||
A warning: not all `configure' scripts look for a site script.
|
||||
|
||||
Operation Controls
|
||||
==================
|
||||
|
||||
`configure' recognizes the following options to control how it
|
||||
operates.
|
||||
|
||||
`--cache-file=FILE'
|
||||
Use and save the results of the tests in FILE instead of
|
||||
`./config.cache'. Set FILE to `/dev/null' to disable caching, for
|
||||
debugging `configure'.
|
||||
|
||||
`--help'
|
||||
Print a summary of the options to `configure', and exit.
|
||||
|
||||
`--quiet'
|
||||
`--silent'
|
||||
`-q'
|
||||
Do not print messages saying which checks are being made. To
|
||||
suppress all normal output, redirect it to `/dev/null' (any error
|
||||
messages will still be shown).
|
||||
|
||||
`--srcdir=DIR'
|
||||
Look for the package's source code in directory DIR. Usually
|
||||
`configure' can determine that directory automatically.
|
||||
|
||||
`--version'
|
||||
Print the version of Autoconf used to generate the `configure'
|
||||
script, and exit.
|
||||
|
||||
`configure' also accepts some other, not widely useful, options.
|
||||
|
240
libiconv/Makefile.devel
Normal file
240
libiconv/Makefile.devel
Normal file
@ -0,0 +1,240 @@
|
||||
# -*- makefile -*-
|
||||
# This is the developer's makefile, not the user's makefile.
|
||||
# Don't use it unless you know exactly what you do!
|
||||
|
||||
SHELL = /bin/sh
|
||||
MAKE = make
|
||||
AUTOCONF = autoconf-2.60
|
||||
AUTOHEADER = autoheader-2.60
|
||||
AUTOMAKE = automake-1.9
|
||||
ACLOCAL = aclocal-1.9
|
||||
GPERF = gperf
|
||||
CC = gcc
|
||||
CFLAGS = -O
|
||||
MAN2HTML = groff -mandoc -Thtml
|
||||
CP = cp
|
||||
RM = rm -f
|
||||
|
||||
|
||||
all : configures config.h.in srclib/Makefile.in config.h_vms config.h.msvc lib/config.h_vms lib/config.h.msvc include/iconv.h.build.in include/iconv.h_vms include/iconv.h.msvc-static include/iconv.h.msvc-shared lib/aliases.h lib/aliases_aix.h lib/aliases_osf1.h lib/aliases_dos.h lib/aliases_extra.h lib/flags.h lib/translit.h man/iconv.1.html man/iconv.3.html man/iconv_close.3.html man/iconv_open.3.html po/Makefile.msvc force
|
||||
cd libcharset && $(MAKE) -f Makefile.devel all
|
||||
|
||||
|
||||
# Before making a new release:
|
||||
# - check that the encoding lists in README and man/iconv_open.3 are up to date,
|
||||
# - increment the version number in
|
||||
# include/iconv.h.in
|
||||
# README
|
||||
# windows/iconv.rc
|
||||
# djgpp/README
|
||||
# djgpp/fnchange.lst
|
||||
# libcharset/djgpp/README
|
||||
# libcharset/djgpp/fnchange.lst
|
||||
# - update the version info in lib/Makefile.in,
|
||||
# - do "make -f Makefile.devel".
|
||||
|
||||
|
||||
CONFIGURES = configure
|
||||
CONFIGURES_IN = configure.ac
|
||||
|
||||
#CLISP_DIR = ..
|
||||
#m4/general.m4 : $(CLISP_DIR)/src/m4/general.m4 ; cp -p $< $@-t && mv $@-t $@
|
||||
#m4/proto.m4 : $(CLISP_DIR)/src/m4/proto.m4 ; cp -p $< $@-t && mv $@-t $@
|
||||
#m4/cp.m4 : $(CLISP_DIR)/src/m4/cp.m4 ; cp -p $< $@-t && mv $@-t $@
|
||||
#m4/ln.m4 : $(CLISP_DIR)/src/m4/ln.m4 ; cp -p $< $@-t && mv $@-t $@
|
||||
#m4/endian.m4 : $(CLISP_DIR)/src/m4/endian.m4 ; cp -p $< $@-t && mv $@-t $@
|
||||
#m4/libtool.m4 : $(CLISP_DIR)/src/m4/libtool.m4 ; cp -p $< $@-t && mv $@-t $@
|
||||
|
||||
aclocal.m4 : $(CONFIGURES_IN) m4/general.m4 m4/proto.m4 m4/cp.m4 m4/ln.m4 m4/codeset.m4 m4/eilseq.m4 m4/endian.m4 m4/glibc21.m4 m4/isc-posix.m4 m4/lcmessage.m4 m4/alloca.m4 m4/allocsa.m4 m4/canonicalize.m4 m4/eealloc.m4 m4/error.m4 m4/extensions.m4 m4/full-header-path.m4 m4/mbstate_t.m4 m4/onceonly.m4 m4/pathmax.m4 m4/readlink.m4 m4/relocatable.m4 m4/setenv.m4 m4/size_max.m4 m4/ssize_t.m4 m4/stdbool.m4 m4/stdint.m4 m4/strerror.m4 m4/strerror_r.m4 m4/unistd_h.m4 m4/unlocked-io.m4 m4/xreadlink.m4 m4/visibility.m4 m4/libtool.m4 m4/gettext.m4 m4/iconv.m4 m4/intmax.m4 m4/inttypes-h.m4 m4/inttypes_h.m4 m4/lib-ld.m4 m4/lib-link.m4 m4/lib-prefix.m4 m4/longdouble.m4 m4/longlong.m4 m4/nls.m4 m4/po.m4 m4/printf-posix.m4 m4/progtest.m4 m4/signed.m4 m4/stdint_h.m4 m4/wchar_t.m4 m4/wint_t.m4
|
||||
$(ACLOCAL) -I m4 --output=$@
|
||||
|
||||
configures : $(CONFIGURES)
|
||||
|
||||
AUTOCONF_FILES = aclocal.m4
|
||||
|
||||
configure : configure.ac $(AUTOCONF_FILES)
|
||||
$(AUTOCONF)
|
||||
|
||||
check-configures : $(CONFIGURES)
|
||||
set -e; for f in $(CONFIGURES); do bash -x -n $$f; done
|
||||
|
||||
config.h.in : configure.ac $(AUTOCONF_FILES)
|
||||
$(AUTOHEADER)
|
||||
touch $@
|
||||
|
||||
|
||||
srclib/Makefile.in : srclib/Makefile.am
|
||||
$(AUTOMAKE) --gnits srclib/Makefile
|
||||
|
||||
|
||||
config.h_vms : config.h.in
|
||||
sed -e 's/#undef ENABLE_NLS$$/#define ENABLE_NLS 1/' \
|
||||
-e 's/#undef ENABLE_RELOCATABLE$$/#define ENABLE_RELOCATABLE 1/' \
|
||||
-e 's/#undef HAVE_ALLOCA$$/#define HAVE_ALLOCA 1/' \
|
||||
-e 's/#undef HAVE_DECL_STRERROR$$/#define HAVE_DECL_STRERROR 1/' \
|
||||
-e 's/#undef HAVE_DLFCN_H$$/#define HAVE_DLFCN_H 1/' \
|
||||
-e 's/#undef HAVE_ERRNO_DECL$$/#define HAVE_ERRNO_DECL 1/' \
|
||||
-e 's/#undef HAVE_GETCWD$$/#define HAVE_GETCWD 1/' \
|
||||
-e 's/#undef HAVE_ICONV$$/#define HAVE_ICONV 1/' \
|
||||
-e 's/#undef HAVE_INTTYPES_H$$/#define HAVE_INTTYPES_H 1/' \
|
||||
-e 's/#undef HAVE_LANGINFO_CODESET$$/#define HAVE_LANGINFO_CODESET 1/' \
|
||||
-e 's/#undef HAVE_LIMITS_H$$/#define HAVE_LIMITS_H 1/' \
|
||||
-e 's/#undef HAVE_LOCALE_H$$/#define HAVE_LOCALE_H 1/' \
|
||||
-e 's/#undef HAVE_MBRTOWC$$/#define HAVE_MBRTOWC 1/' \
|
||||
-e 's/#undef HAVE_MBSINIT$$/#define HAVE_MBSINIT 1/' \
|
||||
-e 's/#undef HAVE_MEMMOVE$$/#define HAVE_MEMMOVE 1/' \
|
||||
-e 's/#undef HAVE_MEMORY_H$$/#define HAVE_MEMORY_H 1/' \
|
||||
-e 's/#undef HAVE_SETENV$$/#define HAVE_SETENV 1/' \
|
||||
-e 's/#undef HAVE_SETLOCALE$$/#define HAVE_SETLOCALE 1/' \
|
||||
-e 's/#undef HAVE_STDBOOL_H$$/#define HAVE_STDBOOL_H 1/' \
|
||||
-e 's/#undef HAVE_STDDEF_H$$/#define HAVE_STDDEF_H 1/' \
|
||||
-e 's/#undef HAVE_STDLIB_H$$/#define HAVE_STDLIB_H 1/' \
|
||||
-e 's/#undef HAVE_STRERROR$$/#define HAVE_STRERROR 1/' \
|
||||
-e 's/#undef HAVE_STRINGS_H$$/#define HAVE_STRINGS_H 1/' \
|
||||
-e 's/#undef HAVE_STRING_H$$/#define HAVE_STRING_H 1/' \
|
||||
-e 's/#undef HAVE_SYS_PARAM_H$$/#define HAVE_SYS_PARAM_H 1/' \
|
||||
-e 's/#undef HAVE_SYS_STAT_H$$/#define HAVE_SYS_STAT_H 1/' \
|
||||
-e 's/#undef HAVE_SYS_TYPES_H$$/#define HAVE_SYS_TYPES_H 1/' \
|
||||
-e 's/#undef HAVE_UNISTD_H$$/#define HAVE_UNISTD_H 1/' \
|
||||
-e 's/#undef HAVE_UNSETENV$$/#define HAVE_UNSETENV 1/' \
|
||||
-e 's/#undef HAVE_VPRINTF$$/#define HAVE_VPRINTF 1/' \
|
||||
-e 's/#undef HAVE_WCHAR_H$$/#define HAVE_WCHAR_H 1/' \
|
||||
-e 's/#undef HAVE_WCRTOMB$$/#define HAVE_WCRTOMB 1/' \
|
||||
-e 's/#undef ICONV_CONST$$/#define ICONV_CONST/' \
|
||||
-e 's/#undef MALLOC_0_IS_NONNULL$$/#define MALLOC_0_IS_NONNULL 0/' \
|
||||
-e 's/#undef STDC_HEADERS$$/#define STDC_HEADERS 1/' \
|
||||
-e 's/#undef WORDS_LITTLEENDIAN$$/#define WORDS_LITTLEENDIAN 1/' \
|
||||
-e 's/#undef realpath$$/#define realpath rpl_realpath/' \
|
||||
-e '/#undef INSTALLPREFIX$$/d' \
|
||||
< $< > $@
|
||||
|
||||
config.h.msvc : config.h.in
|
||||
sed -e 's/#undef ENABLE_RELOCATABLE$$/#define ENABLE_RELOCATABLE 1/' \
|
||||
-e 's/#undef HAVE_ALLOCA$$/#define HAVE_ALLOCA 1/' \
|
||||
-e 's/#undef HAVE_DECL_STRERROR$$/#define HAVE_DECL_STRERROR 1/' \
|
||||
-e 's/#undef HAVE_ENVIRON_DECL$$/#define HAVE_ENVIRON_DECL 1/' \
|
||||
-e 's/#undef HAVE_ERRNO_DECL$$/#define HAVE_ERRNO_DECL 1/' \
|
||||
-e 's/#undef HAVE_GETCWD$$/#define HAVE_GETCWD 1/' \
|
||||
-e 's/#undef HAVE_LIMITS_H$$/#define HAVE_LIMITS_H 1/' \
|
||||
-e 's/#undef HAVE_LOCALE_H$$/#define HAVE_LOCALE_H 1/' \
|
||||
-e 's/#undef HAVE_MEMMOVE$$/#define HAVE_MEMMOVE 1/' \
|
||||
-e 's/#undef HAVE_MEMORY_H$$/#define HAVE_MEMORY_H 1/' \
|
||||
-e 's/#undef HAVE_SEARCH_H$$/#define HAVE_SEARCH_H 1/' \
|
||||
-e 's/#undef HAVE_SETLOCALE$$/#define HAVE_SETLOCALE 1/' \
|
||||
-e 's/#undef HAVE_STDDEF_H$$/#define HAVE_STDDEF_H 1/' \
|
||||
-e 's/#undef HAVE_STDLIB_H$$/#define HAVE_STDLIB_H 1/' \
|
||||
-e 's/#undef HAVE_STRERROR$$/#define HAVE_STRERROR 1/' \
|
||||
-e 's/#undef HAVE_STRING_H$$/#define HAVE_STRING_H 1/' \
|
||||
-e 's/#undef HAVE_SYS_STAT_H$$/#define HAVE_SYS_STAT_H 1/' \
|
||||
-e 's/#undef HAVE_SYS_TYPES_H$$/#define HAVE_SYS_TYPES_H 1/' \
|
||||
-e 's/#undef HAVE_VPRINTF$$/#define HAVE_VPRINTF 1/' \
|
||||
-e 's/#undef MALLOC_0_IS_NONNULL$$/#define MALLOC_0_IS_NONNULL 1/' \
|
||||
-e 's/#undef STACK_DIRECTION$$/#define STACK_DIRECTION -1/' \
|
||||
-e 's/#undef STDC_HEADERS$$/#define STDC_HEADERS 1/' \
|
||||
-e 's/#undef WORDS_LITTLEENDIAN$$/#define WORDS_LITTLEENDIAN 1/' \
|
||||
-e '/#undef ENABLE_NLS$$/d' \
|
||||
-e '/#undef INSTALLPREFIX$$/d' \
|
||||
< $< > $@
|
||||
|
||||
lib/config.h_vms : lib/config.h.in
|
||||
sed -e 's/#undef ENABLE_RELOCATABLE$$/#define ENABLE_RELOCATABLE 1/' \
|
||||
-e 's/#undef HAVE_ICONV$$/#define HAVE_ICONV 1/' \
|
||||
-e 's/#define ICONV_CONST const$$/#define ICONV_CONST/' \
|
||||
-e 's/#undef HAVE_LANGINFO_CODESET$$/#define HAVE_LANGINFO_CODESET 1/' \
|
||||
-e 's/#undef HAVE_MBRTOWC$$/#define HAVE_MBRTOWC 1/' \
|
||||
-e 's/#undef HAVE_SETLOCALE$$/#define HAVE_SETLOCALE 1/' \
|
||||
-e 's/#undef HAVE_STDDEF_H$$/#define HAVE_STDDEF_H 1/' \
|
||||
-e 's/#undef HAVE_STDLIB_H$$/#define HAVE_STDLIB_H 1/' \
|
||||
-e 's/#undef HAVE_STRING_H$$/#define HAVE_STRING_H 1/' \
|
||||
-e 's/#undef HAVE_WCRTOMB$$/#define HAVE_WCRTOMB 1/' \
|
||||
-e 's/#undef WORDS_LITTLEENDIAN$$/#define WORDS_LITTLEENDIAN 1/' \
|
||||
-e '/#undef INSTALLPREFIX$$/d' \
|
||||
< $< > $@
|
||||
|
||||
lib/config.h.msvc : lib/config.h.in
|
||||
sed -e 's/#undef ENABLE_RELOCATABLE$$/#define ENABLE_RELOCATABLE 1/' \
|
||||
-e 's/#undef HAVE_SETLOCALE$$/#define HAVE_SETLOCALE 1/' \
|
||||
-e 's/#undef HAVE_STDDEF_H$$/#define HAVE_STDDEF_H 1/' \
|
||||
-e 's/#undef HAVE_STDLIB_H$$/#define HAVE_STDLIB_H 1/' \
|
||||
-e 's/#undef HAVE_STRING_H$$/#define HAVE_STRING_H 1/' \
|
||||
-e 's/#undef WORDS_LITTLEENDIAN$$/#define WORDS_LITTLEENDIAN 1/' \
|
||||
-e '/#undef INSTALLPREFIX$$/d' \
|
||||
< $< > $@
|
||||
|
||||
include/iconv.h.build.in : include/iconv.h.in include/export.h
|
||||
sed -e 's/extern \([^"]\)/extern LIBICONV_DLL_EXPORTED \1/' \
|
||||
-e '/_LIBICONV_VERSION/r include/export.h' \
|
||||
< $< > $@
|
||||
|
||||
include/iconv.h_vms : include/iconv.h.in
|
||||
sed -e 's/@ICONV_CONST@//g' -e 's/@HAVE_WCHAR_T@/1/g' \
|
||||
-e 's/ @DLL_VARIABLE@//g' \
|
||||
< $< > $@
|
||||
|
||||
include/iconv.h.msvc-static : include/iconv.h.in
|
||||
sed -e 's/@ICONV_CONST@/const/g' -e 's/@HAVE_WCHAR_T@/1/g' \
|
||||
-e 's/ @DLL_VARIABLE@//g' \
|
||||
< $< > $@
|
||||
|
||||
include/iconv.h.msvc-shared : include/iconv.h.in windows/dllexport.h
|
||||
sed -e 's/@ICONV_CONST@/const/g' -e 's/@HAVE_WCHAR_T@/1/g' \
|
||||
-e 's/ @DLL_VARIABLE@//g' \
|
||||
-e 's/extern \([^"]\)/extern LIBICONV_DLL_EXPORTED \1/' \
|
||||
-e '/_LIBICONV_VERSION/r windows/dllexport.h' \
|
||||
< $< > $@
|
||||
|
||||
|
||||
lib/aliases.h lib/canonical.h lib/canonical_local.h : lib/encodings.def lib/encodings_local.def lib/genaliases.c
|
||||
$(CC) $(CFLAGS) lib/genaliases.c -o genaliases
|
||||
./genaliases > lib/aliases.gperf 3> canonical.sh 4> canonical_local.sh
|
||||
$(RM) genaliases
|
||||
$(GPERF) -m 10 lib/aliases.gperf > tmp.h
|
||||
$(CP) tmp.h lib/aliases.h
|
||||
sh canonical.sh > lib/canonical.h
|
||||
sh canonical_local.sh > lib/canonical_local.h
|
||||
$(RM) tmp.h canonical.sh canonical_local.sh
|
||||
|
||||
lib/aliases_aix.h lib/canonical_aix.h : lib/encodings_aix.def lib/genaliases2.c
|
||||
$(CC) $(CFLAGS) -DUSE_AIX lib/genaliases2.c -o genaliases
|
||||
./genaliases aix > lib/aliases_aix.h 3> lib/canonical_aix.h
|
||||
$(RM) genaliases
|
||||
|
||||
lib/aliases_osf1.h lib/canonical_osf1.h : lib/encodings_osf1.def lib/genaliases2.c
|
||||
$(CC) $(CFLAGS) -DUSE_OSF1 lib/genaliases2.c -o genaliases
|
||||
./genaliases osf1 > lib/aliases_osf1.h 3> lib/canonical_osf1.h
|
||||
$(RM) genaliases
|
||||
|
||||
lib/aliases_dos.h lib/canonical_dos.h : lib/encodings_dos.def lib/genaliases2.c
|
||||
$(CC) $(CFLAGS) -DUSE_DOS lib/genaliases2.c -o genaliases
|
||||
./genaliases dos > lib/aliases_dos.h 3> lib/canonical_dos.h
|
||||
$(RM) genaliases
|
||||
|
||||
lib/aliases_extra.h lib/canonical_extra.h : lib/encodings_extra.def lib/genaliases2.c
|
||||
$(CC) $(CFLAGS) -DUSE_EXTRA lib/genaliases2.c -o genaliases
|
||||
./genaliases extra > lib/aliases_extra.h 3> lib/canonical_extra.h
|
||||
$(RM) genaliases
|
||||
|
||||
|
||||
lib/flags.h : lib/encodings.def lib/encodings_aix.def lib/encodings_osf1.def lib/encodings_dos.def lib/encodings_extra.def lib/converters.h lib/genflags.c
|
||||
$(CC) $(CFLAGS) lib/genflags.c -o genflags
|
||||
./genflags > lib/flags.h
|
||||
$(RM) genflags
|
||||
|
||||
|
||||
lib/translit.h : lib/translit.def lib/gentranslit.c
|
||||
$(CC) $(CFLAGS) lib/gentranslit.c -o gentranslit
|
||||
ulimit -s unlimited; ./gentranslit < lib/translit.def > lib/translit.h
|
||||
$(RM) gentranslit
|
||||
|
||||
|
||||
man/%.html : man/%
|
||||
$(MAN2HTML) $< > $@
|
||||
|
||||
|
||||
po/Makefile.msvc : po/LINGUAS
|
||||
ALL_LINGUAS=`sed -e '/^#/d' po/LINGUAS`; \
|
||||
GMOFILES=; for lang in $$ALL_LINGUAS; do GMOFILES="$$GMOFILES $$lang.gmo"; done; \
|
||||
$(SHELL) po/Makefile.msvc.sh libiconv "$$GMOFILES" > po/Makefile.msvc
|
||||
|
||||
|
||||
force :
|
144
libiconv/Makefile.in
Normal file
144
libiconv/Makefile.in
Normal file
@ -0,0 +1,144 @@
|
||||
# Makefile for libiconv
|
||||
|
||||
#### Start of system configuration section. ####
|
||||
|
||||
# Directories used by "make":
|
||||
srcdir = @srcdir@
|
||||
|
||||
# Directories used by "make install":
|
||||
prefix = @prefix@
|
||||
local_prefix = /usr/local
|
||||
exec_prefix = @exec_prefix@
|
||||
datarootdir = @datarootdir@
|
||||
datadir = @datadir@
|
||||
libdir = @libdir@
|
||||
includedir = @includedir@
|
||||
mandir = @mandir@
|
||||
|
||||
# Programs used by "make":
|
||||
RM = rm -f
|
||||
@SET_MAKE@
|
||||
|
||||
# Programs used by "make install":
|
||||
INSTALL = @INSTALL@
|
||||
INSTALL_PROGRAM = @INSTALL_PROGRAM@
|
||||
INSTALL_DATA = @INSTALL_DATA@
|
||||
mkinstalldirs = $(SHELL) @top_srcdir@/build-aux/mkinstalldirs
|
||||
|
||||
#### End of system configuration section. ####
|
||||
|
||||
SHELL = /bin/sh
|
||||
|
||||
all : lib/localcharset.h force
|
||||
cd lib && $(MAKE) all
|
||||
cd srclib && $(MAKE) all
|
||||
cd src && $(MAKE) all
|
||||
cd po && $(MAKE) all
|
||||
cd man && $(MAKE) all
|
||||
if test -d tests; then cd tests && $(MAKE) all; fi
|
||||
|
||||
lib/localcharset.h :
|
||||
builddir="`pwd`"; cd libcharset && $(MAKE) all && $(MAKE) install-lib libdir="$$builddir/lib" includedir="$$builddir/lib"
|
||||
|
||||
# Installs the library and include files only. Typically called with only
|
||||
# $(libdir) and $(includedir) - don't use $(prefix) and $(exec_prefix) here.
|
||||
install-lib : all force
|
||||
cd lib && $(MAKE) install-lib libdir='$(libdir)' includedir='$(includedir)'
|
||||
if [ ! -d $(includedir) ] ; then $(mkinstalldirs) $(includedir) ; fi
|
||||
$(INSTALL_DATA) include/iconv.h.inst $(includedir)/iconv.h
|
||||
|
||||
install : lib/localcharset.h force
|
||||
cd libcharset && $(MAKE) install prefix='$(prefix)' exec_prefix='$(exec_prefix)' libdir='$(libdir)'
|
||||
cd lib && $(MAKE) install prefix='$(prefix)' exec_prefix='$(exec_prefix)' libdir='$(libdir)'
|
||||
cd srclib && $(MAKE) install prefix='$(prefix)' exec_prefix='$(exec_prefix)' libdir='$(libdir)'
|
||||
cd src && $(MAKE) install prefix='$(prefix)' exec_prefix='$(exec_prefix)' libdir='$(libdir)'
|
||||
if [ ! -d $(DESTDIR)$(prefix) ] ; then $(mkinstalldirs) $(DESTDIR)$(prefix) ; fi
|
||||
if [ ! -d $(DESTDIR)$(exec_prefix) ] ; then $(mkinstalldirs) $(DESTDIR)$(exec_prefix) ; fi
|
||||
if [ ! -d $(DESTDIR)$(includedir) ] ; then $(mkinstalldirs) $(DESTDIR)$(includedir) ; fi
|
||||
$(INSTALL_DATA) include/iconv.h.inst $(DESTDIR)$(includedir)/iconv.h
|
||||
cd po && $(MAKE) install prefix='$(prefix)' exec_prefix='$(exec_prefix)' datarootdir='$(datarootdir)' datadir='$(datadir)'
|
||||
cd man && $(MAKE) install prefix='$(prefix)' exec_prefix='$(exec_prefix)' datarootdir='$(datarootdir)' datadir='$(datadir)' mandir='$(mandir)'
|
||||
|
||||
installdirs : force
|
||||
cd libcharset && $(MAKE) installdirs prefix='$(prefix)' exec_prefix='$(exec_prefix)' libdir='$(libdir)'
|
||||
cd lib && $(MAKE) installdirs prefix='$(prefix)' exec_prefix='$(exec_prefix)' libdir='$(libdir)'
|
||||
cd srclib && $(MAKE) installdirs prefix='$(prefix)' exec_prefix='$(exec_prefix)' libdir='$(libdir)'
|
||||
cd src && $(MAKE) installdirs prefix='$(prefix)' exec_prefix='$(exec_prefix)' libdir='$(libdir)'
|
||||
if [ ! -d $(DESTDIR)$(prefix) ] ; then $(mkinstalldirs) $(DESTDIR)$(prefix) ; fi
|
||||
if [ ! -d $(DESTDIR)$(exec_prefix) ] ; then $(mkinstalldirs) $(DESTDIR)$(exec_prefix) ; fi
|
||||
if [ ! -d $(DESTDIR)$(includedir) ] ; then $(mkinstalldirs) $(DESTDIR)$(includedir) ; fi
|
||||
cd po && $(MAKE) installdirs prefix='$(prefix)' exec_prefix='$(exec_prefix)' datarootdir='$(datarootdir)' datadir='$(datadir)'
|
||||
cd man && $(MAKE) installdirs prefix='$(prefix)' exec_prefix='$(exec_prefix)' datarootdir='$(datarootdir)' datadir='$(datadir)' mandir='$(mandir)'
|
||||
|
||||
uninstall : force
|
||||
cd libcharset && $(MAKE) uninstall prefix='$(prefix)' exec_prefix='$(exec_prefix)' libdir='$(libdir)'
|
||||
cd lib && $(MAKE) uninstall prefix='$(prefix)' exec_prefix='$(exec_prefix)' libdir='$(libdir)'
|
||||
cd srclib && $(MAKE) uninstall prefix='$(prefix)' exec_prefix='$(exec_prefix)' libdir='$(libdir)'
|
||||
cd src && $(MAKE) uninstall prefix='$(prefix)' exec_prefix='$(exec_prefix)' libdir='$(libdir)'
|
||||
$(RM) $(DESTDIR)$(includedir)/iconv.h
|
||||
cd po && $(MAKE) uninstall prefix='$(prefix)' exec_prefix='$(exec_prefix)' datarootdir='$(datarootdir)' datadir='$(datadir)'
|
||||
cd man && $(MAKE) uninstall prefix='$(prefix)' exec_prefix='$(exec_prefix)' datarootdir='$(datarootdir)' datadir='$(datadir)' mandir='$(mandir)'
|
||||
|
||||
check : all force
|
||||
cd libcharset && $(MAKE) check
|
||||
cd lib && $(MAKE) check
|
||||
cd srclib && $(MAKE) check
|
||||
cd src && $(MAKE) check
|
||||
cd po && $(MAKE) check
|
||||
cd man && $(MAKE) check
|
||||
if test -d tests; then cd tests && $(MAKE) check; fi
|
||||
|
||||
mostlyclean : force
|
||||
cd libcharset && $(MAKE) mostlyclean
|
||||
$(RM) lib/charset.alias lib/libcharset.* lib/localcharset.h
|
||||
cd lib && $(MAKE) mostlyclean
|
||||
cd srclib && $(MAKE) mostlyclean
|
||||
cd src && $(MAKE) mostlyclean
|
||||
cd po && $(MAKE) mostlyclean
|
||||
cd man && $(MAKE) mostlyclean
|
||||
if test -d tests; then cd tests && $(MAKE) mostlyclean; fi
|
||||
rm -rf bin
|
||||
|
||||
clean : force
|
||||
cd libcharset && $(MAKE) clean
|
||||
$(RM) lib/charset.alias lib/libcharset.* lib/localcharset.h
|
||||
cd lib && $(MAKE) clean
|
||||
cd srclib && $(MAKE) clean
|
||||
cd src && $(MAKE) clean
|
||||
cd po && $(MAKE) clean
|
||||
cd man && $(MAKE) clean
|
||||
if test -d tests; then cd tests && $(MAKE) clean; fi
|
||||
rm -rf bin
|
||||
|
||||
distclean : force
|
||||
cd libcharset && if test -f Makefile; then $(MAKE) distclean; fi
|
||||
$(RM) lib/charset.alias lib/libcharset.* lib/localcharset.h
|
||||
cd lib && if test -f Makefile; then $(MAKE) distclean; fi
|
||||
cd srclib && if test -f Makefile; then $(MAKE) distclean; fi
|
||||
cd src && if test -f Makefile; then $(MAKE) distclean; fi
|
||||
cd po && if test -f Makefile; then $(MAKE) distclean; fi
|
||||
cd man && if test -f Makefile; then $(MAKE) distclean; fi
|
||||
if test -d tests; then cd tests && if test -f Makefile; then $(MAKE) distclean; fi; fi
|
||||
$(RM) config.status config.log config.cache Makefile libtool
|
||||
$(RM) config.h stamp-h1 lib/stamp-h2
|
||||
$(RM) include/iconv.h include/iconv.h.inst
|
||||
rm -rf bin
|
||||
|
||||
maintainer-clean : force
|
||||
cd libcharset && if test -f Makefile; then $(MAKE) maintainer-clean; fi
|
||||
$(RM) lib/charset.alias lib/libcharset.* lib/localcharset.h
|
||||
cd lib && if test -f Makefile; then $(MAKE) maintainer-clean; fi
|
||||
cd srclib && if test -f Makefile; then $(MAKE) maintainer-clean; fi
|
||||
cd src && if test -f Makefile; then $(MAKE) maintainer-clean; fi
|
||||
cd po && if test -f Makefile; then $(MAKE) maintainer-clean; fi
|
||||
cd man && if test -f Makefile; then $(MAKE) maintainer-clean; fi
|
||||
if test -d tests; then cd tests && if test -f Makefile; then $(MAKE) maintainer-clean; fi; fi
|
||||
$(RM) config.status config.log config.cache Makefile libtool
|
||||
$(RM) config.h stamp-h1 lib/stamp-h2
|
||||
$(RM) include/iconv.h include/iconv.h.inst
|
||||
rm -rf bin
|
||||
|
||||
force :
|
||||
|
||||
# Work around an automake-1.8 bug.
|
||||
am--refresh:
|
302
libiconv/Makefile.msvc
Normal file
302
libiconv/Makefile.msvc
Normal file
@ -0,0 +1,302 @@
|
||||
# -*- Makefile -*- for libiconv
|
||||
|
||||
#### Start of system configuration section. ####
|
||||
|
||||
# Flags that can be set on the nmake command line:
|
||||
# DLL=1 for compiling a .dll with a stub .lib (default is a static .lib)
|
||||
# Note that this works only with MFLAGS=-MD.
|
||||
# MFLAGS={-ML|-MT|-MD} for defining the compilation model
|
||||
# MFLAGS=-ML (the default) Single-threaded, statically linked - libc.lib
|
||||
# MFLAGS=-MT Multi-threaded, statically linked - libcmt.lib
|
||||
# MFLAGS=-MD Multi-threaded, dynamically linked - msvcrt.lib
|
||||
# DEBUG=1 for compiling with debugging information
|
||||
# NO_NLS=1 do not use Native Language Support
|
||||
# PREFIX=Some\Directory Base directory for installation
|
||||
# IIPREFIX=Some\\Directory Same thing with doubled backslashes
|
||||
# Note that nmake command line flags are automatically passed to subdirectory
|
||||
# Makefiles. Therefore we don't need to pass them explicitly to subdirectory
|
||||
# Makefiles, but the subdirectory Makefiles need to have the same defaults.
|
||||
!if !defined(DLL)
|
||||
DLL=0
|
||||
!endif
|
||||
!if !defined(DEBUG)
|
||||
DEBUG=0
|
||||
!endif
|
||||
!if !defined(MFLAGS)
|
||||
!if !$(DLL)
|
||||
MFLAGS=
|
||||
!else
|
||||
MFLAGS=-MD
|
||||
!endif
|
||||
!endif
|
||||
!if !defined(NO_NLS)
|
||||
NO_NLS=0
|
||||
!endif
|
||||
!if !defined(PREFIX)
|
||||
PREFIX = c:\usr
|
||||
!endif
|
||||
!if !defined(IIPREFIX)
|
||||
IIPREFIX = c:\\usr
|
||||
!endif
|
||||
|
||||
# Directories used by "make install":
|
||||
prefix = $(PREFIX)
|
||||
exec_prefix = $(prefix)
|
||||
bindir = $(exec_prefix)\bin
|
||||
libdir = $(exec_prefix)\lib
|
||||
includedir = $(prefix)\include
|
||||
datadir = $(prefix)\share
|
||||
localedir = $(datadir)\locale
|
||||
mandir = $(datadir)\man
|
||||
docdir = $(datadir)\doc\libiconv
|
||||
|
||||
# Programs used by "make":
|
||||
LN = copy
|
||||
RM = -del
|
||||
|
||||
# Programs used by "make install":
|
||||
INSTALL = copy
|
||||
INSTALL_PROGRAM = copy
|
||||
INSTALL_DATA = copy
|
||||
|
||||
#### End of system configuration section. ####
|
||||
|
||||
SHELL = /bin/sh
|
||||
|
||||
all : config.h force
|
||||
cd libcharset
|
||||
$(MAKE) -f Makefile.msvc all
|
||||
cd ..
|
||||
$(LN) libcharset\include\localcharset.h lib\localcharset.h
|
||||
!if !$(DLL)
|
||||
$(LN) include\iconv.h.msvc-static include\iconv.h
|
||||
!else
|
||||
$(LN) include\iconv.h.msvc-shared include\iconv.h
|
||||
!endif
|
||||
cd lib
|
||||
$(MAKE) -f Makefile.msvc all
|
||||
cd ..
|
||||
cd srclib
|
||||
$(MAKE) -f Makefile.msvc all
|
||||
cd ..
|
||||
cd src
|
||||
$(MAKE) -f Makefile.msvc all
|
||||
cd ..
|
||||
cd po
|
||||
$(MAKE) -f Makefile.msvc all
|
||||
cd ..
|
||||
cd man
|
||||
$(MAKE) -f Makefile.msvc all
|
||||
cd ..
|
||||
cd tests
|
||||
$(MAKE) -f Makefile.msvc all
|
||||
cd ..
|
||||
|
||||
config.h : config.h.msvc
|
||||
-$(RM) config.h
|
||||
$(LN) config.h.msvc config.h
|
||||
|
||||
install : force
|
||||
cd libcharset
|
||||
$(MAKE) -f Makefile.msvc install
|
||||
cd ..
|
||||
cd lib
|
||||
$(MAKE) -f Makefile.msvc install
|
||||
cd ..
|
||||
cd srclib
|
||||
$(MAKE) -f Makefile.msvc install
|
||||
cd ..
|
||||
cd src
|
||||
$(MAKE) -f Makefile.msvc install
|
||||
cd ..
|
||||
cd po
|
||||
$(MAKE) -f Makefile.msvc install
|
||||
cd ..
|
||||
cd man
|
||||
$(MAKE) -f Makefile.msvc install
|
||||
cd ..
|
||||
cd tests
|
||||
$(MAKE) -f Makefile.msvc install
|
||||
cd ..
|
||||
-mkdir $(prefix)
|
||||
-mkdir $(includedir)
|
||||
$(INSTALL_DATA) include\iconv.h $(includedir)\iconv.h
|
||||
|
||||
installdirs : force
|
||||
cd libcharset
|
||||
$(MAKE) -f Makefile.msvc installdirs
|
||||
cd ..
|
||||
cd lib
|
||||
$(MAKE) -f Makefile.msvc installdirs
|
||||
cd ..
|
||||
cd srclib
|
||||
$(MAKE) -f Makefile.msvc installdirs
|
||||
cd ..
|
||||
cd src
|
||||
$(MAKE) -f Makefile.msvc installdirs
|
||||
cd ..
|
||||
cd po
|
||||
$(MAKE) -f Makefile.msvc installdirs
|
||||
cd ..
|
||||
cd man
|
||||
$(MAKE) -f Makefile.msvc installdirs
|
||||
cd ..
|
||||
cd tests
|
||||
$(MAKE) -f Makefile.msvc installdirs
|
||||
cd ..
|
||||
-mkdir $(prefix)
|
||||
-mkdir $(includedir)
|
||||
|
||||
uninstall : force
|
||||
cd libcharset
|
||||
$(MAKE) -f Makefile.msvc uninstall
|
||||
cd ..
|
||||
cd lib
|
||||
$(MAKE) -f Makefile.msvc uninstall
|
||||
cd ..
|
||||
cd srclib
|
||||
$(MAKE) -f Makefile.msvc uninstall
|
||||
cd ..
|
||||
cd src
|
||||
$(MAKE) -f Makefile.msvc uninstall
|
||||
cd ..
|
||||
cd po
|
||||
$(MAKE) -f Makefile.msvc uninstall
|
||||
cd ..
|
||||
cd man
|
||||
$(MAKE) -f Makefile.msvc uninstall
|
||||
cd ..
|
||||
cd tests
|
||||
$(MAKE) -f Makefile.msvc uninstall
|
||||
cd ..
|
||||
$(RM) $(includedir)\iconv.h
|
||||
|
||||
check : all force
|
||||
cd libcharset
|
||||
$(MAKE) -f Makefile.msvc check
|
||||
cd ..
|
||||
cd lib
|
||||
$(MAKE) -f Makefile.msvc check
|
||||
cd ..
|
||||
cd srclib
|
||||
$(MAKE) -f Makefile.msvc check
|
||||
cd ..
|
||||
cd src
|
||||
$(MAKE) -f Makefile.msvc check
|
||||
cd ..
|
||||
cd po
|
||||
$(MAKE) -f Makefile.msvc check
|
||||
cd ..
|
||||
cd man
|
||||
$(MAKE) -f Makefile.msvc check
|
||||
cd ..
|
||||
cd tests
|
||||
$(MAKE) -f Makefile.msvc check
|
||||
cd ..
|
||||
|
||||
mostlyclean : force
|
||||
$(RM) config.h
|
||||
cd libcharset
|
||||
$(MAKE) -f Makefile.msvc mostlyclean
|
||||
cd ..
|
||||
$(RM) lib\localcharset.h
|
||||
$(RM) include\iconv.h
|
||||
cd lib
|
||||
$(MAKE) -f Makefile.msvc mostlyclean
|
||||
cd ..
|
||||
cd srclib
|
||||
$(MAKE) -f Makefile.msvc mostlyclean
|
||||
cd ..
|
||||
cd src
|
||||
$(MAKE) -f Makefile.msvc mostlyclean
|
||||
cd ..
|
||||
cd po
|
||||
$(MAKE) -f Makefile.msvc mostlyclean
|
||||
cd ..
|
||||
cd man
|
||||
$(MAKE) -f Makefile.msvc mostlyclean
|
||||
cd ..
|
||||
cd tests
|
||||
$(MAKE) -f Makefile.msvc mostlyclean
|
||||
cd ..
|
||||
|
||||
clean : force
|
||||
$(RM) config.h
|
||||
cd libcharset
|
||||
$(MAKE) -f Makefile.msvc clean
|
||||
cd ..
|
||||
$(RM) lib\localcharset.h
|
||||
$(RM) include\iconv.h
|
||||
cd lib
|
||||
$(MAKE) -f Makefile.msvc clean
|
||||
cd ..
|
||||
cd srclib
|
||||
$(MAKE) -f Makefile.msvc clean
|
||||
cd ..
|
||||
cd src
|
||||
$(MAKE) -f Makefile.msvc clean
|
||||
cd ..
|
||||
cd po
|
||||
$(MAKE) -f Makefile.msvc clean
|
||||
cd ..
|
||||
cd man
|
||||
$(MAKE) -f Makefile.msvc clean
|
||||
cd ..
|
||||
cd tests
|
||||
$(MAKE) -f Makefile.msvc clean
|
||||
cd ..
|
||||
|
||||
distclean : force
|
||||
$(RM) config.h
|
||||
cd libcharset
|
||||
$(MAKE) -f Makefile.msvc distclean
|
||||
cd ..
|
||||
$(RM) lib\localcharset.h
|
||||
$(RM) include\iconv.h
|
||||
cd lib
|
||||
$(MAKE) -f Makefile.msvc distclean
|
||||
cd ..
|
||||
cd srclib
|
||||
$(MAKE) -f Makefile.msvc distclean
|
||||
cd ..
|
||||
cd src
|
||||
$(MAKE) -f Makefile.msvc distclean
|
||||
cd ..
|
||||
cd po
|
||||
$(MAKE) -f Makefile.msvc distclean
|
||||
cd ..
|
||||
cd man
|
||||
$(MAKE) -f Makefile.msvc distclean
|
||||
cd ..
|
||||
cd tests
|
||||
$(MAKE) -f Makefile.msvc distclean
|
||||
cd ..
|
||||
|
||||
maintainer-clean : force
|
||||
$(RM) config.h
|
||||
cd libcharset
|
||||
$(MAKE) -f Makefile.msvc maintainer-clean
|
||||
cd ..
|
||||
$(RM) lib\localcharset.h
|
||||
$(RM) include\iconv.h
|
||||
cd lib
|
||||
$(MAKE) -f Makefile.msvc maintainer-clean
|
||||
cd ..
|
||||
cd srclib
|
||||
$(MAKE) -f Makefile.msvc maintainer-clean
|
||||
cd ..
|
||||
cd src
|
||||
$(MAKE) -f Makefile.msvc maintainer-clean
|
||||
cd ..
|
||||
cd po
|
||||
$(MAKE) -f Makefile.msvc maintainer-clean
|
||||
cd ..
|
||||
cd man
|
||||
$(MAKE) -f Makefile.msvc maintainer-clean
|
||||
cd ..
|
||||
cd tests
|
||||
$(MAKE) -f Makefile.msvc maintainer-clean
|
||||
cd ..
|
||||
|
||||
force :
|
||||
|
77
libiconv/Makefile.os2
Normal file
77
libiconv/Makefile.os2
Normal file
@ -0,0 +1,77 @@
|
||||
# -*- Makefile -*- for libiconv, for OS2/EMX
|
||||
#
|
||||
|
||||
#### Start of system configuration section. ####
|
||||
|
||||
# Directories used by "make install":
|
||||
prefix = @prefix@
|
||||
exec_prefix = $(prefix)
|
||||
datadir = $(prefix)/share
|
||||
libdir = $(exec_prefix)/lib
|
||||
shlibdir = $(exec_prefix)/dll
|
||||
includedir = $(prefix)/include
|
||||
mandir = $(datadir)/man
|
||||
|
||||
#### End of system configuration section. ####
|
||||
|
||||
all : force
|
||||
sed -e 's/@ICONV_CONST@/const/g' -e 's/@HAVE_WCHAR_T@/1/g' < include/iconv.h.in > include/iconv.h
|
||||
(cd lib && $(MAKE) -f Makefile.os2 all && cd ..)
|
||||
(cd src && $(MAKE) -f Makefile.os2 all && cd ..)
|
||||
(cd man && $(MAKE) -f Makefile.os2 all && cd ..)
|
||||
(cd tests && $(MAKE) -f Makefile.os2 all && cd ..)
|
||||
|
||||
# Installs the library and include files only. Typically called with only
|
||||
# $(libdir), $(shlibdir) and $(includedir) - don't use $(prefix) and
|
||||
# $(exec_prefix) here.
|
||||
install-lib : all force
|
||||
@echo install to $(libdir), $(shlibdir) and $(includedir)
|
||||
cp include/iconv.h $(includedir)/iconv.h
|
||||
(cd lib && $(MAKE) -f Makefile.os2 install-lib libdir='$(libdir)' shlibdir='$(shlibdir)' includedir='$(includedir)' && cd ..)
|
||||
|
||||
install : force
|
||||
@echo install to $(prefix)
|
||||
cp include/iconv.h $(includedir)/iconv.h
|
||||
(cd lib && $(MAKE) -f Makefile.os2 install prefix='$(prefix)' exec_prefix='$(exec_prefix)' libdir='$(libdir)' shlibdir='$(shlibdir)' && cd ..)
|
||||
(cd src && $(MAKE) -f Makefile.os2 install prefix='$(prefix)' exec_prefix='$(exec_prefix)' libdir='$(libdir)' shlibdir='$(shlibdir)' && cd ..)
|
||||
(cd man && $(MAKE) -f Makefile.os2 install prefix='$(prefix)' exec_prefix='$(exec_prefix)' datadir='$(datadir)' mandir='$(mandir)' && cd ..)
|
||||
|
||||
uninstall : force
|
||||
rm -i $(includedir)/iconv.h
|
||||
(cd lib && $(MAKE) -f Makefile.os2 uninstall prefix='$(prefix)' exec_prefix='$(exec_prefix)' libdir='$(libdir)' shlibdir='$(shlibdir)' && cd ..)
|
||||
(cd src && $(MAKE) -f Makefile.os2 uninstall prefix='$(prefix)' exec_prefix='$(exec_prefix)' libdir='$(libdir)' shlibdir='$(shlibdir)' && cd ..)
|
||||
(cd man && $(MAKE) -f Makefile.os2 uninstall prefix='$(prefix)' exec_prefix='$(exec_prefix)' datadir='$(datadir)' mandir='$(mandir)' && cd ..)
|
||||
|
||||
check : all force
|
||||
(cd lib && $(MAKE) -f Makefile.os2 check && cd ..)
|
||||
(cd src && $(MAKE) -f Makefile.os2 check && cd ..)
|
||||
(cd man && $(MAKE) -f Makefile.os2 check && cd ..)
|
||||
(cd tests && $(MAKE) -f Makefile.os2 check && cd ..)
|
||||
|
||||
mostlyclean : force
|
||||
(cd lib && $(MAKE) -f Makefile.os2 mostlyclean && cd ..)
|
||||
(cd src && $(MAKE) -f Makefile.os2 mostlyclean && cd ..)
|
||||
(cd man && $(MAKE) -f Makefile.os2 mostlyclean && cd ..)
|
||||
(cd tests && $(MAKE) -f Makefile.os2 mostlyclean && cd ..)
|
||||
|
||||
clean : force
|
||||
(cd lib && $(MAKE) -f Makefile.os2 clean && cd ..)
|
||||
(cd src && $(MAKE) -f Makefile.os2 clean && cd ..)
|
||||
(cd man && $(MAKE) -r Makefile.os2 clean && cd ..)
|
||||
(cd tests && $(MAKE) -r Makefile.os2 clean && cd ..)
|
||||
|
||||
distclean : force
|
||||
(cd lib && $(MAKE) -f Makefile.os2 distclean && cd ..)
|
||||
(cd src && $(MAKE) -f Makefile.os2 distclean && cd ..)
|
||||
(cd man && $(MAKE) -f Makefile.os2 distclean && cd ..)
|
||||
(cd tests && $(MAKE) -f Makefile.os2 distclean && cd ..)
|
||||
rm -f include/iconv.h
|
||||
|
||||
maintainer-clean : force
|
||||
(cd lib && $(MAKE) -f Makefile.os2 maintainer-clean && cd ..)
|
||||
(cd src && $(MAKE) -f Makefile.os2 maintainer-clean && cd ..)
|
||||
(cd man && $(MAKE) -f Makefile.os2 maintainer-clean && cd ..)
|
||||
(cd tests && $(MAKE) -f Makefile.os2 maintainer-clean && cd ..)
|
||||
rm -f include/iconv.h
|
||||
|
||||
force :
|
256
libiconv/Makefile.vms
Normal file
256
libiconv/Makefile.vms
Normal file
@ -0,0 +1,256 @@
|
||||
# -*- Makefile -*- for libiconv on VMS using the MMS utility
|
||||
|
||||
#### Start of system configuration section. ####
|
||||
|
||||
# Directories used by "make install":
|
||||
prefix = SYS$DATA:[
|
||||
exec_prefix = $(prefix)
|
||||
bindir = $(exec_prefix).bin
|
||||
libdir = $(exec_prefix).lib
|
||||
includedir = $(prefix).include
|
||||
datadir = $(prefix).share
|
||||
localedir = $(datadir).locale
|
||||
mandir = $(datadir).man
|
||||
docdir = $(datadir).doc.libiconv
|
||||
|
||||
# Programs used by "make":
|
||||
LN = copy
|
||||
RM = delete
|
||||
|
||||
# Programs used by "make install":
|
||||
INSTALL = copy
|
||||
INSTALL_PROGRAM = copy
|
||||
INSTALL_DATA = copy
|
||||
|
||||
#### End of system configuration section. ####
|
||||
|
||||
all : config.h
|
||||
set default [.libcharset]
|
||||
$(MMS) $(MMSQUALIFIERS) /description=Makefile.vms all
|
||||
set default [-]
|
||||
$(LN) [.libcharset.include]localcharset.h [.lib]localcharset.h
|
||||
$(LN) [.include]iconv.h_vms [.include]iconv.h
|
||||
set default [.lib]
|
||||
$(MMS) $(MMSQUALIFIERS) /description=Makefile.vms all
|
||||
set default [-]
|
||||
set default [.srclib]
|
||||
$(MMS) $(MMSQUALIFIERS) /description=Makefile.vms all
|
||||
set default [-]
|
||||
set default [.src]
|
||||
$(MMS) $(MMSQUALIFIERS) /description=Makefile.vms all
|
||||
set default [-]
|
||||
set default [.po]
|
||||
$(MMS) $(MMSQUALIFIERS) /description=Makefile.vms all
|
||||
set default [-]
|
||||
set default [.man]
|
||||
$(MMS) $(MMSQUALIFIERS) /description=Makefile.vms all
|
||||
set default [-]
|
||||
set default [.tests]
|
||||
$(MMS) $(MMSQUALIFIERS) /description=Makefile.vms all
|
||||
set default [-]
|
||||
|
||||
config.h : config.h_vms
|
||||
$(LN) config.h_vms config.h
|
||||
|
||||
install : config.h
|
||||
set default [.libcharset]
|
||||
$(MMS) $(MMSQUALIFIERS) /description=Makefile.vms install
|
||||
set default [-]
|
||||
set default [.lib]
|
||||
$(MMS) $(MMSQUALIFIERS) /description=Makefile.vms install
|
||||
set default [-]
|
||||
set default [.srclib]
|
||||
$(MMS) $(MMSQUALIFIERS) /description=Makefile.vms install
|
||||
set default [-]
|
||||
set default [.src]
|
||||
$(MMS) $(MMSQUALIFIERS) /description=Makefile.vms install
|
||||
set default [-]
|
||||
set default [.po]
|
||||
$(MMS) $(MMSQUALIFIERS) /description=Makefile.vms install
|
||||
set default [-]
|
||||
set default [.man]
|
||||
$(MMS) $(MMSQUALIFIERS) /description=Makefile.vms install
|
||||
set default [-]
|
||||
set default [.tests]
|
||||
$(MMS) $(MMSQUALIFIERS) /description=Makefile.vms install
|
||||
set default [-]
|
||||
create /directory $(prefix)]
|
||||
create /directory $(includedir)]
|
||||
$(INSTALL_DATA) [.include]iconv.h $(includedir)]iconv.h
|
||||
|
||||
installdirs :
|
||||
set default [.libcharset]
|
||||
$(MMS) $(MMSQUALIFIERS) /description=Makefile.vms installdirs
|
||||
set default [-]
|
||||
set default [.lib]
|
||||
$(MMS) $(MMSQUALIFIERS) /description=Makefile.vms installdirs
|
||||
set default [-]
|
||||
set default [.srclib]
|
||||
$(MMS) $(MMSQUALIFIERS) /description=Makefile.vms installdirs
|
||||
set default [-]
|
||||
set default [.src]
|
||||
$(MMS) $(MMSQUALIFIERS) /description=Makefile.vms installdirs
|
||||
set default [-]
|
||||
set default [.po]
|
||||
$(MMS) $(MMSQUALIFIERS) /description=Makefile.vms installdirs
|
||||
set default [-]
|
||||
set default [.man]
|
||||
$(MMS) $(MMSQUALIFIERS) /description=Makefile.vms installdirs
|
||||
set default [-]
|
||||
set default [.tests]
|
||||
$(MMS) $(MMSQUALIFIERS) /description=Makefile.vms installdirs
|
||||
set default [-]
|
||||
create /directory $(prefix)]
|
||||
create /directory $(includedir)]
|
||||
|
||||
uninstall :
|
||||
set default [.libcharset]
|
||||
$(MMS) $(MMSQUALIFIERS) /description=Makefile.vms uninstall
|
||||
set default [-]
|
||||
set default [.lib]
|
||||
$(MMS) $(MMSQUALIFIERS) /description=Makefile.vms uninstall
|
||||
set default [-]
|
||||
set default [.srclib]
|
||||
$(MMS) $(MMSQUALIFIERS) /description=Makefile.vms uninstall
|
||||
set default [-]
|
||||
set default [.src]
|
||||
$(MMS) $(MMSQUALIFIERS) /description=Makefile.vms uninstall
|
||||
set default [-]
|
||||
set default [.po]
|
||||
$(MMS) $(MMSQUALIFIERS) /description=Makefile.vms uninstall
|
||||
set default [-]
|
||||
set default [.man]
|
||||
$(MMS) $(MMSQUALIFIERS) /description=Makefile.vms uninstall
|
||||
set default [-]
|
||||
set default [.tests]
|
||||
$(MMS) $(MMSQUALIFIERS) /description=Makefile.vms uninstall
|
||||
set default [-]
|
||||
$(RM) $(includedir)]iconv.h
|
||||
|
||||
check : all
|
||||
set default [.libcharset]
|
||||
$(MMS) $(MMSQUALIFIERS) /description=Makefile.vms check
|
||||
set default [-]
|
||||
set default [.lib]
|
||||
$(MMS) $(MMSQUALIFIERS) /description=Makefile.vms check
|
||||
set default [-]
|
||||
set default [.srclib]
|
||||
$(MMS) $(MMSQUALIFIERS) /description=Makefile.vms check
|
||||
set default [-]
|
||||
set default [.src]
|
||||
$(MMS) $(MMSQUALIFIERS) /description=Makefile.vms check
|
||||
set default [-]
|
||||
set default [.po]
|
||||
$(MMS) $(MMSQUALIFIERS) /description=Makefile.vms check
|
||||
set default [-]
|
||||
set default [.man]
|
||||
$(MMS) $(MMSQUALIFIERS) /description=Makefile.vms check
|
||||
set default [-]
|
||||
set default [.tests]
|
||||
$(MMS) $(MMSQUALIFIERS) /description=Makefile.vms check
|
||||
set default [-]
|
||||
|
||||
mostlyclean :
|
||||
$(RM) config.h
|
||||
set default [.libcharset]
|
||||
$(MMS) $(MMSQUALIFIERS) /description=Makefile.vms mostlyclean
|
||||
set default [-]
|
||||
$(RM) [.lib]localcharset.h
|
||||
$(RM) [.include]iconv.h
|
||||
set default [.lib]
|
||||
$(MMS) $(MMSQUALIFIERS) /description=Makefile.vms mostlyclean
|
||||
set default [-]
|
||||
set default [.srclib]
|
||||
$(MMS) $(MMSQUALIFIERS) /description=Makefile.vms mostlyclean
|
||||
set default [-]
|
||||
set default [.src]
|
||||
$(MMS) $(MMSQUALIFIERS) /description=Makefile.vms mostlyclean
|
||||
set default [-]
|
||||
set default [.po]
|
||||
$(MMS) $(MMSQUALIFIERS) /description=Makefile.vms mostlyclean
|
||||
set default [-]
|
||||
set default [.man]
|
||||
$(MMS) $(MMSQUALIFIERS) /description=Makefile.vms mostlyclean
|
||||
set default [-]
|
||||
set default [.tests]
|
||||
$(MMS) $(MMSQUALIFIERS) /description=Makefile.vms mostlyclean
|
||||
set default [-]
|
||||
|
||||
clean :
|
||||
$(RM) config.h
|
||||
set default [.libcharset]
|
||||
$(MMS) $(MMSQUALIFIERS) /description=Makefile.vms clean
|
||||
set default [-]
|
||||
$(RM) [.lib]localcharset.h
|
||||
$(RM) [.include]iconv.h
|
||||
set default [.lib]
|
||||
$(MMS) $(MMSQUALIFIERS) /description=Makefile.vms clean
|
||||
set default [-]
|
||||
set default [.srclib]
|
||||
$(MMS) $(MMSQUALIFIERS) /description=Makefile.vms clean
|
||||
set default [-]
|
||||
set default [.src]
|
||||
$(MMS) $(MMSQUALIFIERS) /description=Makefile.vms clean
|
||||
set default [-]
|
||||
set default [.po]
|
||||
$(MMS) $(MMSQUALIFIERS) /description=Makefile.vms clean
|
||||
set default [-]
|
||||
set default [.man]
|
||||
$(MMS) $(MMSQUALIFIERS) /description=Makefile.vms clean
|
||||
set default [-]
|
||||
set default [.tests]
|
||||
$(MMS) $(MMSQUALIFIERS) /description=Makefile.vms clean
|
||||
set default [-]
|
||||
|
||||
distclean :
|
||||
$(RM) config.h
|
||||
set default [.libcharset]
|
||||
$(MMS) $(MMSQUALIFIERS) /description=Makefile.vms distclean
|
||||
set default [-]
|
||||
$(RM) [.lib]localcharset.h
|
||||
$(RM) [.include]iconv.h
|
||||
set default [.lib]
|
||||
$(MMS) $(MMSQUALIFIERS) /description=Makefile.vms distclean
|
||||
set default [-]
|
||||
set default [.srclib]
|
||||
$(MMS) $(MMSQUALIFIERS) /description=Makefile.vms distclean
|
||||
set default [-]
|
||||
set default [.src]
|
||||
$(MMS) $(MMSQUALIFIERS) /description=Makefile.vms distclean
|
||||
set default [-]
|
||||
set default [.po]
|
||||
$(MMS) $(MMSQUALIFIERS) /description=Makefile.vms distclean
|
||||
set default [-]
|
||||
set default [.man]
|
||||
$(MMS) $(MMSQUALIFIERS) /description=Makefile.vms distclean
|
||||
set default [-]
|
||||
set default [.tests]
|
||||
$(MMS) $(MMSQUALIFIERS) /description=Makefile.vms distclean
|
||||
set default [-]
|
||||
|
||||
maintainer-clean :
|
||||
$(RM) config.h
|
||||
set default [.libcharset]
|
||||
$(MMS) $(MMSQUALIFIERS) /description=Makefile.vms maintainer-clean
|
||||
set default [-]
|
||||
$(RM) [.lib]localcharset.h
|
||||
$(RM) [.include]iconv.h
|
||||
set default [.lib]
|
||||
$(MMS) $(MMSQUALIFIERS) /description=Makefile.vms maintainer-clean
|
||||
set default [-]
|
||||
set default [.srclib]
|
||||
$(MMS) $(MMSQUALIFIERS) /description=Makefile.vms maintainer-clean
|
||||
set default [-]
|
||||
set default [.src]
|
||||
$(MMS) $(MMSQUALIFIERS) /description=Makefile.vms maintainer-clean
|
||||
set default [-]
|
||||
set default [.po]
|
||||
$(MMS) $(MMSQUALIFIERS) /description=Makefile.vms maintainer-clean
|
||||
set default [-]
|
||||
set default [.man]
|
||||
$(MMS) $(MMSQUALIFIERS) /description=Makefile.vms maintainer-clean
|
||||
set default [-]
|
||||
set default [.tests]
|
||||
$(MMS) $(MMSQUALIFIERS) /description=Makefile.vms maintainer-clean
|
||||
set default [-]
|
||||
|
152
libiconv/NEWS
Normal file
152
libiconv/NEWS
Normal file
@ -0,0 +1,152 @@
|
||||
New in 1.11:
|
||||
* The iconv program has new options --unicode-subst, --byte-subst,
|
||||
--widechar-subst that allow to specify substitutions for characters that
|
||||
cannot be converted.
|
||||
* The iconv program now understands long options:
|
||||
long option equivalent to
|
||||
--from-code -f
|
||||
--to-code -t
|
||||
--list -l
|
||||
--silent -s
|
||||
* The CP936 converter is now different from the GBK converter: it has changed
|
||||
to include the Euro sign and private area characters. CP936 is no longer an
|
||||
alias of GBK.
|
||||
* Updated GB18030 converter to include all private area characters.
|
||||
* Updated CP950 converter to include the Euro sign and private area characters.
|
||||
* Updated CP949 converter to include private area characters.
|
||||
* Updated the BIG5-HKSCS converter. The old BIG5-HKSCS converter is renamed to
|
||||
BIG5-HKSCS:1999 and updated to Unicode 4. New converters BIG5-HKSCS:2001 and
|
||||
BIG5-HKSCS:2004 are added. BIG5-HKSCS is now an alias for BIG5-HKSCS:2004.
|
||||
* Added a few irreversible mappings to the CP932 converter.
|
||||
* Tidy up the list of symbols exported from libiconv (assumes gcc >= 4.0).
|
||||
|
||||
New in 1.10:
|
||||
* Added ISO-8859-11 converter.
|
||||
* Updated the ISO-8859-7 converter.
|
||||
* Added ATARIST converter, available through --enable-extra-encodings.
|
||||
* Added BIG5-2003 converter (experimental), available through
|
||||
--enable-extra-encodings.
|
||||
* Updated EUC-TW converter to include the Euro sign.
|
||||
* The preloadable library has been renamed from libiconv_plug.so to
|
||||
preloadable_libiconv.so.
|
||||
* Portability to mingw.
|
||||
|
||||
New in 1.9:
|
||||
* Many more transliterations.
|
||||
* New configuration option --enable-relocatable. See the INSTALL.generic file
|
||||
for details.
|
||||
|
||||
New in 1.8:
|
||||
* The iconv program has new options -l, -c, -s.
|
||||
* The iconv program is internationalized.
|
||||
* Added C99 converter.
|
||||
* Added KOI8-T converter.
|
||||
* New configuration option --enable-extra-encodings that enables a bunch of
|
||||
additional encodings; see the README for details.
|
||||
* Updated the ISO-8859-16 converter.
|
||||
* Upgraded BIG5-HKSCS, EUC-TW, ISO-2022-CN, ISO-2022-CN-EXT converters to
|
||||
Unicode 3.2.
|
||||
* Upgraded EUC-KR, CP949, JOHAB converters to include the Euro sign.
|
||||
* Changed the ARMSCII-8 converter.
|
||||
* Extended the EUC-JP encoder so that YEN SIGN characters don't cause failures
|
||||
in Shift_JIS to EUC-JP conversion.
|
||||
* The JAVA converter now handles characters outside the Unicode BMP correctly.
|
||||
* Fixed a bug in the CP1255, CP1258, TCVN decoders: The base characters of
|
||||
combining characters could be dropped at the end of the conversion buffer.
|
||||
* Fixed a bug in the transliteration that could lead to excessive memory
|
||||
allocations in libintl when transliteration was needed.
|
||||
* Portability to BSD/OS and SCO 3.2.5.
|
||||
|
||||
New in 1.7:
|
||||
* Added UTF-32, UTF-32BE, UTF-32LE converters.
|
||||
* Changed CP1255, CP1258 and TCVN converters to handle combining characters.
|
||||
* Changed EUC-JP, SHIFT_JIS, CP932, ISO-2022-JP, ISO-2022-JP-2, ISO-2022-JP-1
|
||||
converters to use fullwidth Yen sign instead of halfwidth Yen sign, and
|
||||
fullwidth tilde instead of halfwidth tilde.
|
||||
* Upgraded EUC-TW, ISO-2022-CN, ISO-2022-CN-EXT converters to Unicode 3.1.
|
||||
* Changed the GB18030 converter to not reject unassigned and private-use
|
||||
Unicode characters.
|
||||
* Fixed a bug in the byte order mark treatment of the UCS-4 decoder.
|
||||
* The manual pages are now distributed also in HTML format.
|
||||
|
||||
New in 1.6:
|
||||
* The iconv program's -f and -t options are now optional.
|
||||
* Many more transliterations.
|
||||
* Added CP862 converter.
|
||||
* Changed the GB18030 converter.
|
||||
* Portability to DOS with DJGPP.
|
||||
|
||||
New in 1.5:
|
||||
* Added an iconv(1) program.
|
||||
* New locale dependent encodings "char", "wchar_t".
|
||||
* Transliteration is now off by default. Use a //TRANSLIT suffix to enable it.
|
||||
* The JOHAB encoding is documented again.
|
||||
* Changed a few mappings in the CP950 converter.
|
||||
|
||||
New in 1.4:
|
||||
* Added GB18030, BIG5HKSCS converters.
|
||||
* Portability to OS/2 with emx+gcc.
|
||||
|
||||
New in 1.3:
|
||||
* Added UCS-2BE, UCS-2LE, UCS-4BE, UCS-4LE converters.
|
||||
* Fixed the definition of EILSEQ on SunOS4.
|
||||
* Fixed a build problem on OSF/1.
|
||||
* Support for building as a shared library on Woe32.
|
||||
|
||||
New in 1.2:
|
||||
* Added UTF-16BE and UTF-16LE converters.
|
||||
* Changed the UTF-16 encoder.
|
||||
* Fixed the treatment of tab characters in the UTF-7 converter.
|
||||
* Fixed an internal error when output buffer was not large enough.
|
||||
|
||||
New in 1.1:
|
||||
* Added ISO-8859-16 converter.
|
||||
* Added CP932 converter, a variant of SHIFT_JIS.
|
||||
* Added CP949 converter, a variant of EUC-KR.
|
||||
* Improved the ISO-2022-CN-EXT converter: It now covers the ISO-IR-165 range.
|
||||
* Updated the ISO-8859-8 conversion table.
|
||||
* The JOHAB encoding is deprecated and not documented any more.
|
||||
* Fixed two build problems: 1. "make -n check" failed. 2. When libiconv was
|
||||
already installed, "make" failed.
|
||||
|
||||
New in 1.0:
|
||||
* Added transliteration facilities.
|
||||
* Added a test suite.
|
||||
* Fixed the iconv(3) manual page and function: the return value was not
|
||||
described correctly.
|
||||
* Fixed a bug in the CP1258 decoder: invalid bytes now yield EILSEQ instead of
|
||||
U+FFFD.
|
||||
* Fixed a bug in the Georgian-PS encoder: accept U+00E6.
|
||||
* Fixed a bug in the EUC-JP encoder: reject 0x8E5C and 0x8E7E.
|
||||
* Fixed a bug in the KSC5601 and JOHAB converters: they recognized some Hangul
|
||||
characters at some invalid code positions.
|
||||
* Fixed a bug in the EUC-TW decoder; it was severely broken.
|
||||
* Fixed a bug in the CP950 converter: it recognized a dubious BIG5 range.
|
||||
|
||||
New in 0.3:
|
||||
* Reduced the size of the tables needed for the JOHAB converter.
|
||||
* Portability to Woe32.
|
||||
|
||||
New in 0.2:
|
||||
* Added KOI8-RU, CP850, CP866, CP874, CP950, ISO-2022-CN-EXT, GBK and
|
||||
ISO-2022-JP-1 converters.
|
||||
* Added MACINTOSH as an alias for MAC-ROMAN.
|
||||
* Added ASMO-708 as an alias for ISO-8859-6.
|
||||
* Added ELOT_928 as an alias for ISO-8859-7.
|
||||
* Improved the EUC-TW converter: Treat CNS 11643 plane 3.
|
||||
* Improved the ISO-2022-KR and EUC-KR converters: Hangul characters are
|
||||
decomposed into Jamo when needed.
|
||||
* Improved the CP932 converter.
|
||||
* Updated the CP1133, MULELAO-1 and ARMSCII-8 mappings.
|
||||
* The EUC-JP and SHIFT_JIS converters now cover the user-defined range.
|
||||
* Fixed a possible buffer overrun in the JOHAB converter.
|
||||
* Fixed a bug in the UTF-7, ISO-2022-*, HZ decoders: a shift sequence a the
|
||||
end of the input no longer gives an error.
|
||||
* The HZ encoder now always terminates its output in the ASCII state.
|
||||
* Use a perfect hash table for looking up the aliases.
|
||||
|
||||
New in 0.1:
|
||||
* Portability to Linux/glibc-2.0.x, Linux/libc5, OSF/1, FreeBSD.
|
||||
* Fixed a bug in the EUC-JP decoder. Extended the ISO-2022-JP-2 converter.
|
||||
* Made TIS-620 mapping consistent with glibc-2.1.
|
||||
|
395
libiconv/NOTES
Normal file
395
libiconv/NOTES
Normal file
@ -0,0 +1,395 @@
|
||||
Q: Why does libiconv support encoding XXX? Why does libiconv not support
|
||||
encoding ZZZ?
|
||||
|
||||
A: libiconv, as an internationalization library, supports those character
|
||||
sets and encodings which are in wide-spread use in at least one territory
|
||||
of the world.
|
||||
|
||||
Hint1: On http://www.w3c.org/International/O-charset-lang.html you find a
|
||||
page "Languages, countries, and the charsets typically used for them".
|
||||
From this table, we can conclude that the following are in active use:
|
||||
|
||||
ISO-8859-1, CP1252 Afrikaans, Albanian, Basque, Catalan, Danish, Dutch,
|
||||
English, Faroese, Finnish, French, Galician, German,
|
||||
Icelandic, Irish, Italian, Norwegian, Portuguese,
|
||||
Scottish, Spanish, Swedish
|
||||
ISO-8859-2 Croatian, Czech, Hungarian, Polish, Romanian, Slovak,
|
||||
Slovenian
|
||||
ISO-8859-3 Esperanto, Maltese
|
||||
ISO-8859-5 Bulgarian, Byelorussian, Macedonian, Russian,
|
||||
Serbian, Ukrainian
|
||||
ISO-8859-6 Arabic
|
||||
ISO-8859-7 Greek
|
||||
ISO-8859-8 Hebrew
|
||||
ISO-8859-9, CP1254 Turkish
|
||||
ISO-8859-10 Inuit, Lapp
|
||||
ISO-8859-13 Latvian, Lithuanian
|
||||
ISO-8859-15 Estonian
|
||||
KOI8-R Russian
|
||||
SHIFT_JIS Japanese
|
||||
ISO-2022-JP Japanese
|
||||
EUC-JP Japanese
|
||||
|
||||
Ordered by frequency on the web (1997):
|
||||
ISO-8859-1, CP1252 96%
|
||||
SHIFT_JIS 1.6%
|
||||
ISO-2022-JP 1.2%
|
||||
EUC-JP 0.4%
|
||||
CP1250 0.3%
|
||||
CP1251 0.2%
|
||||
CP850 0.1%
|
||||
MACINTOSH 0.1%
|
||||
ISO-8859-5 0.1%
|
||||
ISO-8859-2 0.0%
|
||||
|
||||
Hint2: The character sets mentioned in the XFree86 4.0 locale.alias file.
|
||||
|
||||
ISO-8859-1 Afrikaans, Basque, Breton, Catalan, Danish, Dutch,
|
||||
English, Estonian, Faroese, Finnish, French,
|
||||
Galician, German, Greenlandic, Icelandic,
|
||||
Indonesian, Irish, Italian, Lithuanian, Norwegian,
|
||||
Occitan, Portuguese, Scottish, Spanish, Swedish,
|
||||
Walloon, Welsh
|
||||
ISO-8859-2 Albanian, Croatian, Czech, Hungarian, Polish,
|
||||
Romanian, Serbian, Slovak, Slovenian
|
||||
ISO-8859-3 Esperanto
|
||||
ISO-8859-4 Estonian, Latvian, Lithuanian
|
||||
ISO-8859-5 Bulgarian, Byelorussian, Macedonian, Russian,
|
||||
Serbian, Ukrainian
|
||||
ISO-8859-6 Arabic
|
||||
ISO-8859-7 Greek
|
||||
ISO-8859-8 Hebrew
|
||||
ISO-8859-9 Turkish
|
||||
ISO-8859-14 Breton, Irish, Scottish, Welsh
|
||||
ISO-8859-15 Basque, Breton, Catalan, Danish, Dutch, Estonian,
|
||||
Faroese, Finnish, French, Galician, German,
|
||||
Greenlandic, Icelandic, Irish, Italian, Lithuanian,
|
||||
Norwegian, Occitan, Portuguese, Scottish, Spanish,
|
||||
Swedish, Walloon, Welsh
|
||||
KOI8-R Russian
|
||||
KOI8-U Russian, Ukrainian
|
||||
EUC-JP (alias eucJP) Japanese
|
||||
ISO-2022-JP (alias JIS7) Japanese
|
||||
SHIFT_JIS (alias SJIS) Japanese
|
||||
U90 Japanese
|
||||
S90 Japanese
|
||||
EUC-CN (alias eucCN) Chinese
|
||||
EUC-TW (alias eucTW) Chinese
|
||||
BIG5 Chinese
|
||||
EUC-KR (alias eucKR) Korean
|
||||
ARMSCII-8 Armenian
|
||||
GEORGIAN-ACADEMY Georgian
|
||||
GEORGIAN-PS Georgian
|
||||
TIS-620 (alias TACTIS) Thai
|
||||
MULELAO-1 Laothian
|
||||
IBM-CP1133 Laothian
|
||||
VISCII Vietnamese
|
||||
TCVN Vietnamese
|
||||
NUNACOM-8 Inuktitut
|
||||
|
||||
Hint3: The character sets supported by Netscape Communicator 4.
|
||||
|
||||
Where is this documented? For the complete picture, I had to use
|
||||
"strings netscape" and then a lot of guesswork. For a quick take,
|
||||
look at the "View - Character set" menu of Netscape Communicator 4.6:
|
||||
|
||||
ISO-8859-{1,2,5,7,9,15}
|
||||
WINDOWS-{1250,1251,1253}
|
||||
KOI8-R Cyrillic
|
||||
CP866 Cyrillic
|
||||
Autodetect Japanese (EUC-JP, ISO-2022-JP, ISO-2022-JP-2, SJIS)
|
||||
EUC-JP Japanese
|
||||
SHIFT_JIS Japanese
|
||||
GB2312 Chinese
|
||||
BIG5 Chinese
|
||||
EUC-TW Chinese
|
||||
Autodetect Korean (EUC-KR, ISO-2022-KR, but not JOHAB)
|
||||
|
||||
UTF-8
|
||||
UTF-7
|
||||
|
||||
Hint4: The character sets supported by Microsoft Internet Explorer 4.
|
||||
|
||||
ISO-8859-{1,2,3,4,5,6,7,8,9}
|
||||
WINDOWS-{1250,1251,1252,1253,1254,1255,1256,1257}
|
||||
KOI8-R Cyrillic
|
||||
KOI8-RU Ukrainian
|
||||
ASMO-708 Arabic
|
||||
EUC-JP Japanese
|
||||
ISO-2022-JP Japanese
|
||||
SHIFT_JIS Japanese
|
||||
GB2312 Chinese
|
||||
HZ-GB-2312 Chinese
|
||||
BIG5 Chinese
|
||||
EUC-KR Korean
|
||||
ISO-2022-KR Korean
|
||||
WINDOWS-874 Thai
|
||||
WINDOWS-1258 Vietnamese
|
||||
|
||||
UTF-8
|
||||
UTF-7
|
||||
UNICODE actually UNICODE-LITTLE
|
||||
UNICODEFEFF actually UNICODE-BIG
|
||||
|
||||
and various DOS character sets: DOS-720, DOS-862, IBM852, CP866.
|
||||
|
||||
We take the union of all these four sets. The result is:
|
||||
|
||||
European and Semitic languages
|
||||
* ASCII.
|
||||
We implement this because it is occasionally useful to know or to
|
||||
check whether some text is entirely ASCII (i.e. if the conversion
|
||||
ISO-8859-x -> UTF-8 is trivial).
|
||||
* ISO-8859-{1,2,3,4,5,6,7,8,9,10}
|
||||
We implement this because they are widely used. Except ISO-8859-4
|
||||
which appears to have been superseded by ISO-8859-13 in the baltic
|
||||
countries. But it's an ISO standard anyway.
|
||||
* ISO-8859-13
|
||||
We implement this because it's a standard in Lithuania and Latvia.
|
||||
* ISO-8859-14
|
||||
We implement this because it's an ISO standard.
|
||||
* ISO-8859-15
|
||||
We implement this because it's increasingly used in Europe, because
|
||||
of the Euro symbol.
|
||||
* ISO-8859-16
|
||||
We implement this because it's an ISO standard.
|
||||
* KOI8-R, KOI8-U
|
||||
We implement this because it appears to be the predominant encoding
|
||||
on Unix in Russia and Ukraine, respectively.
|
||||
* KOI8-RU
|
||||
We implement this because MSIE4 supports it.
|
||||
* KOI8-T
|
||||
We implement this because it is the locale encoding in glibc's Tajik
|
||||
locale.
|
||||
* PT154
|
||||
We implement this because it is the locale encoding in glibc's Kazakh
|
||||
locale.
|
||||
* CP{1250,1251,1252,1253,1254,1255,1256,1257}
|
||||
We implement these because they are the predominant Windows encodings
|
||||
in Europe.
|
||||
* CP850
|
||||
We implement this because it is mentioned as occurring in the web
|
||||
in the aforementioned statistics.
|
||||
* CP862
|
||||
We implement this because Ron Aaron says it is sometimes used in web
|
||||
pages and emails.
|
||||
* CP866
|
||||
We implement this because Netscape Communicator does.
|
||||
* Mac{Roman,CentralEurope,Croatian,Romania,Cyrillic,Greek,Turkish} and
|
||||
Mac{Hebrew,Arabic}
|
||||
We implement these because the Sun JDK does, and because Mac users
|
||||
don't deserve to be punished.
|
||||
* Macintosh
|
||||
We implement this because it is mentioned as occurring in the web
|
||||
in the aforementioned statistics.
|
||||
Japanese
|
||||
* EUC-JP, SHIFT_JIS, ISO-2022-JP
|
||||
We implement these because they are widely used. EUC-JP and SHIFT_JIS
|
||||
are more used for files, whereas ISO-2022-JP is recommended for email.
|
||||
* CP932
|
||||
We implement this because it is the Microsoft variant of SHIFT_JIS,
|
||||
used on Windows.
|
||||
* ISO-2022-JP-2
|
||||
We implement this because it's the common way to represent mails which
|
||||
make use of JIS X 0212 characters.
|
||||
* ISO-2022-JP-1
|
||||
We implement this because it's in the RFCs, but I don't think it is
|
||||
really used.
|
||||
* U90, S90
|
||||
We DON'T implement this because I have no informations about what it
|
||||
is or who uses it.
|
||||
Simplified Chinese
|
||||
* EUC-CN = GB2312
|
||||
We implement this because it is the widely used representation
|
||||
of simplified Chinese.
|
||||
* GBK
|
||||
We implement this because it appears to be used on Solaris and Windows.
|
||||
* GB18030
|
||||
We implement this because it is an official requirement in the
|
||||
People's Republic of China.
|
||||
* ISO-2022-CN
|
||||
We implement this because it is in the RFCs, but I have no idea
|
||||
whether it is really used.
|
||||
* ISO-2022-CN-EXT
|
||||
We implement this because it's in the RFCs, but I don't think it is
|
||||
really used.
|
||||
* HZ = HZ-GB-2312
|
||||
We implement this because the RFCs recommend it for Usenet postings,
|
||||
and because MSIE4 supports it.
|
||||
Traditional Chinese
|
||||
* EUC-TW
|
||||
We implement it because it appears to be used on Unix.
|
||||
* BIG5
|
||||
We implement it because it is the de-facto standard for traditional
|
||||
Chinese.
|
||||
* CP950
|
||||
We implement this because it is the Microsoft variant of BIG5, used
|
||||
on Windows.
|
||||
* BIG5+
|
||||
We DON'T implement this because it doesn't appear to be in wide use.
|
||||
Only the CWEX fonts use this encoding. Furthermore, the conversion
|
||||
tables in the big5p package are not coherent: If you convert directly,
|
||||
you get different results than when you convert via GBK.
|
||||
* BIG5-HKSCS
|
||||
We implement it because it is the de-facto standard for traditional
|
||||
Chinese in Hongkong.
|
||||
Korean
|
||||
* EUC-KR
|
||||
We implement these because they appear to be the widely used
|
||||
representations for Korean.
|
||||
* CP949
|
||||
We implement this because it is the Microsoft variant of EUC-KR, used
|
||||
on Windows.
|
||||
* ISO-2022-KR
|
||||
We implement it because it is in the RFCs and because MSIE4 supports
|
||||
it, but I have no idea whether it's really used.
|
||||
* JOHAB
|
||||
We implement this because it is apparently used on Windows as a locale
|
||||
encoding (codepage 1361).
|
||||
* ISO-646-KR
|
||||
We DON'T implement this because although an old ASCII variant, its
|
||||
glyph for 0x7E is not clear: RFC 1345 and unicode.org's JOHAB.TXT
|
||||
say it's a tilde, but Ken Lunde's "CJKV information processing" says
|
||||
it's an overline. And it is not ISO-IR registered.
|
||||
Armenian
|
||||
* ARMSCII-8
|
||||
We implement it because XFree86 supports it.
|
||||
Georgian
|
||||
* Georgian-Academy, Georgian-PS
|
||||
We implement these because they appear to be both used for Georgian;
|
||||
Xfree86 supports them.
|
||||
Thai
|
||||
* ISO-8859-11, TIS-620
|
||||
We implement these because it seems to be standard for Thai.
|
||||
* CP874
|
||||
We implement this because MSIE4 supports it.
|
||||
* MacThai
|
||||
We implement this because the Sun JDK does, and because Mac users
|
||||
don't deserve to be punished.
|
||||
Laotian
|
||||
* MuleLao-1, CP1133
|
||||
We implement these because XFree86 supports them. I have no idea which
|
||||
one is used more widely.
|
||||
Vietnamese
|
||||
* VISCII, TCVN
|
||||
We implement these because XFree86 supports them.
|
||||
* CP1258
|
||||
We implement this because MSIE4 supports it.
|
||||
Other languages
|
||||
* NUNACOM-8 (Inuktitut)
|
||||
We DON'T implement this because it isn't part of Unicode yet, and
|
||||
therefore doesn't convert to anything except itself.
|
||||
Platform specifics
|
||||
* HP-ROMAN8, NEXTSTEP
|
||||
We implement these because they were the native character set on HPs
|
||||
and NeXTs for a long time, and libiconv is intended to be usable on
|
||||
these old machines.
|
||||
Full Unicode
|
||||
* UTF-8, UCS-2, UCS-4
|
||||
We implement these. Obviously.
|
||||
* UCS-2BE, UCS-2LE, UCS-4BE, UCS-4LE
|
||||
We implement these because they are the preferred internal
|
||||
representation of strings in Unicode aware applications. These are
|
||||
non-ambiguous names, known to glibc. (glibc doesn't have
|
||||
UCS-2-INTERNAL and UCS-4-INTERNAL.)
|
||||
* UTF-16, UTF-16BE, UTF-16LE
|
||||
We implement these, because UTF-16 is still the favourite encoding of
|
||||
the president of the Unicode Consortium (for political reasons), and
|
||||
because they appear in RFC 2781.
|
||||
* UTF-32, UTF-32BE, UTF-32LE
|
||||
We implement these because they are part of Unicode 3.1.
|
||||
* UTF-7
|
||||
We implement this because it is essential functionality for mail
|
||||
applications.
|
||||
* C99
|
||||
We implement it because it's used for C and C++ programs and because
|
||||
it's a nice encoding for debugging.
|
||||
* JAVA
|
||||
We implement it because it's used for Java programs and because it's
|
||||
a nice encoding for debugging.
|
||||
* UNICODE (big endian), UNICODEFEFF (little endian)
|
||||
We DON'T implement these because they are stupid and not standardized.
|
||||
Full Unicode, in terms of `uint16_t' or `uint32_t'
|
||||
(with machine dependent endianness and alignment)
|
||||
* UCS-2-INTERNAL, UCS-4-INTERNAL
|
||||
We implement these because they are the preferred internal
|
||||
representation of strings in Unicode aware applications.
|
||||
|
||||
Q: Support encodings mentioned in RFC 1345 ?
|
||||
A: No, they are not in use any more. Supporting ISO-646 variants is pointless
|
||||
since ISO-8859-* have been adopted.
|
||||
|
||||
Q: Support EBCDIC ?
|
||||
A: No!
|
||||
|
||||
Q: How do I add a new character set?
|
||||
A: 1. Explain the "why" in this file, above.
|
||||
2. You need to have a conversion table from/to Unicode. Transform it into
|
||||
the format used by the mapping tables found on ftp.unicode.org: each line
|
||||
contains the character code, in hex, with 0x prefix, then whitespace,
|
||||
then the Unicode code point, in hex, 4 hex digits, with 0x prefix. '#'
|
||||
counts as a comment delimiter until end of line.
|
||||
Please also send your table to Mark Leisher <mleisher@crl.nmsu.edu> so he
|
||||
can include it in his collection.
|
||||
3. If it's an 8-bit character set, use the '8bit_tab_to_h' program in the
|
||||
tools directory to generate the C code for the conversion. You may tweak
|
||||
the resulting C code if you are not satisfied with its quality, but this
|
||||
is rarely needed.
|
||||
If it's a two-dimensional character set (with rows and columns), use the
|
||||
'cjk_tab_to_h' program in the tools directory to generate the C code for
|
||||
the conversion. You will need to modify the main() function to recognize
|
||||
the new character set name, with the proper dimensions, but that shouldn't
|
||||
be too hard. This yields the CCS. The CES you have to write by hand.
|
||||
4. Store the resulting C code file in the lib directory. Add a #include
|
||||
directive to converters.h, and add an entry to the encodings.def file.
|
||||
5. Compile the package, and test your new encoding using a program like
|
||||
iconv(1) or clisp(1).
|
||||
6. Augment the testsuite: Add a line to each of tests/Makefile.in,
|
||||
tests/Makefile.msvc and tests/Makefile.os2. For a stateless encoding,
|
||||
create the complete table as a TXT file. For a stateful encoding,
|
||||
provide a text snippet encoded using your new encoding and its UTF-8
|
||||
equivalent.
|
||||
7. Update the README and man/iconv_open.3, to mention the new encoding.
|
||||
Add a note in the NEWS file.
|
||||
|
||||
Q: What about bidirectional text? Should it be tagged or reversed when
|
||||
converting from ISO-8859-8 or ISO-8859-6 to Unicode? Qt appears to do
|
||||
this, see qt-2.0.1/src/tools/qrtlcodec.cpp.
|
||||
A: After reading RFC 1556: I don't think so. Support for ISO-8859-8-I and
|
||||
ISO-8859-E remains to be implemented.
|
||||
On the other hand, a page on www.w3c.org says that ISO-8859-8 in *email*
|
||||
is visually encoded, ISO-8859-8 in *HTML* is logically encoded, i.e.
|
||||
the same as ISO-8859-8-I. I'm confused.
|
||||
|
||||
Other character sets not implemented:
|
||||
"MNEMONIC" = "csMnemonic"
|
||||
"MNEM" = "csMnem"
|
||||
"ISO-10646-UCS-Basic" = "csUnicodeASCII"
|
||||
"ISO-10646-Unicode-Latin1" = "csUnicodeLatin1" = "ISO-10646"
|
||||
"ISO-10646-J-1"
|
||||
"UNICODE-1-1" = "csUnicode11"
|
||||
"csWindows31Latin5"
|
||||
|
||||
Other aliases not implemented (and not implemented in glibc-2.1 either):
|
||||
From MSIE4:
|
||||
ISO-8859-1: alias ISO8859-1
|
||||
ISO-8859-2: alias ISO8859-2
|
||||
KSC_5601: alias KS_C_5601
|
||||
UTF-8: aliases UNICODE-1-1-UTF-8 UNICODE-2-0-UTF-8
|
||||
|
||||
|
||||
Q: How can I integrate libiconv into my package?
|
||||
A: Just copy the entire libiconv package into a subdirectory of your package.
|
||||
At configuration time, call libiconv's configure script with the
|
||||
appropriate --srcdir option and maybe --enable-static or --disable-shared.
|
||||
Then "cd libiconv && make && make install-lib libdir=... includedir=...".
|
||||
'install-lib' is a special (not GNU standardized) target which installs
|
||||
only the include file - in $(includedir) - and the library - in $(libdir) -
|
||||
and does not use other directory variables. After "installing" libiconv
|
||||
in your package's build directory, building of your package can proceed.
|
||||
|
||||
Q: Why is the testsuite so big?
|
||||
A: Because some of the tests are very comprehensive.
|
||||
If you don't feel like using the testsuite, you can simply remove the
|
||||
tests/ directory.
|
||||
|
46
libiconv/PORTS
Normal file
46
libiconv/PORTS
Normal file
@ -0,0 +1,46 @@
|
||||
* Linux with libc6 (glibc-2.1):
|
||||
OK
|
||||
|
||||
* Linux with libc6 (glibc-2.0.7):
|
||||
OK
|
||||
|
||||
* Linux with libc5:
|
||||
OK
|
||||
|
||||
* Solaris 2.7:
|
||||
OK
|
||||
|
||||
* Solaris 2.6:
|
||||
OK
|
||||
|
||||
* OSF/1 5.1:
|
||||
OK
|
||||
|
||||
* OSF/1 4.0d:
|
||||
OK
|
||||
|
||||
* Irix 6.5:
|
||||
OK
|
||||
|
||||
* HP-UX 10.20:
|
||||
OK
|
||||
|
||||
* AIX 4.2:
|
||||
OK
|
||||
|
||||
* SunOS 4:
|
||||
OK when configured --enable-static --disable-shared
|
||||
(gcc cannot create shared libraries without relocations)
|
||||
|
||||
* FreeBSD 3.3:
|
||||
OK
|
||||
|
||||
* BeOS 5:
|
||||
OK
|
||||
|
||||
* Woe32 with MSVC 4.0:
|
||||
OK
|
||||
|
||||
* Woe32 with MSVC 5.0:
|
||||
OK
|
||||
|
153
libiconv/README
Normal file
153
libiconv/README
Normal file
@ -0,0 +1,153 @@
|
||||
GNU LIBICONV - character set conversion library
|
||||
|
||||
This library provides an iconv() implementation, for use on systems which
|
||||
don't have one, or whose implementation cannot convert from/to Unicode.
|
||||
|
||||
It provides support for the encodings:
|
||||
|
||||
European languages
|
||||
ASCII, ISO-8859-{1,2,3,4,5,7,9,10,13,14,15,16},
|
||||
KOI8-R, KOI8-U, KOI8-RU,
|
||||
CP{1250,1251,1252,1253,1254,1257}, CP{850,866},
|
||||
Mac{Roman,CentralEurope,Iceland,Croatian,Romania},
|
||||
Mac{Cyrillic,Ukraine,Greek,Turkish},
|
||||
Macintosh
|
||||
Semitic languages
|
||||
ISO-8859-{6,8}, CP{1255,1256}, CP862, Mac{Hebrew,Arabic}
|
||||
Japanese
|
||||
EUC-JP, SHIFT_JIS, CP932, ISO-2022-JP, ISO-2022-JP-2, ISO-2022-JP-1
|
||||
Chinese
|
||||
EUC-CN, HZ, GBK, CP936, GB18030, EUC-TW, BIG5, CP950, BIG5-HKSCS,
|
||||
BIG5-HKSCS:2001, BIG5-HKSCS:1999, ISO-2022-CN, ISO-2022-CN-EXT
|
||||
Korean
|
||||
EUC-KR, CP949, ISO-2022-KR, JOHAB
|
||||
Armenian
|
||||
ARMSCII-8
|
||||
Georgian
|
||||
Georgian-Academy, Georgian-PS
|
||||
Tajik
|
||||
KOI8-T
|
||||
Kazakh
|
||||
PT154
|
||||
Thai
|
||||
ISO-8859-11, TIS-620, CP874, MacThai
|
||||
Laotian
|
||||
MuleLao-1, CP1133
|
||||
Vietnamese
|
||||
VISCII, TCVN, CP1258
|
||||
Platform specifics
|
||||
HP-ROMAN8, NEXTSTEP
|
||||
Full Unicode
|
||||
UTF-8
|
||||
UCS-2, UCS-2BE, UCS-2LE
|
||||
UCS-4, UCS-4BE, UCS-4LE
|
||||
UTF-16, UTF-16BE, UTF-16LE
|
||||
UTF-32, UTF-32BE, UTF-32LE
|
||||
UTF-7
|
||||
C99, JAVA
|
||||
Full Unicode, in terms of `uint16_t' or `uint32_t'
|
||||
(with machine dependent endianness and alignment)
|
||||
UCS-2-INTERNAL, UCS-4-INTERNAL
|
||||
Locale dependent, in terms of `char' or `wchar_t'
|
||||
(with machine dependent endianness and alignment, and with OS and
|
||||
locale dependent semantics)
|
||||
char, wchar_t
|
||||
The empty encoding name "" is equivalent to "char": it denotes the
|
||||
locale dependent character encoding.
|
||||
|
||||
When configured with the option --enable-extra-encodings, it also provides
|
||||
support for a few extra encodings:
|
||||
|
||||
European languages
|
||||
CP{437,737,775,852,853,855,857,858,860,861,863,865,869,1125}
|
||||
Semitic languages
|
||||
CP864
|
||||
Japanese
|
||||
EUC-JISX0213, Shift_JISX0213, ISO-2022-JP-3
|
||||
Chinese
|
||||
BIG5-2003 (experimental)
|
||||
Turkmen
|
||||
TDS565
|
||||
Platform specifics
|
||||
ATARIST, RISCOS-LATIN1
|
||||
|
||||
It can convert from any of these encodings to any other, through Unicode
|
||||
conversion.
|
||||
|
||||
It has also some limited support for transliteration, i.e. when a character
|
||||
cannot be represented in the target character set, it can be approximated
|
||||
through one or several similarly looking characters. Transliteration is
|
||||
activated when "//TRANSLIT" is appended to the target encoding name.
|
||||
|
||||
libiconv is for you if your application needs to support multiple character
|
||||
encodings, but that support lacks from your system.
|
||||
|
||||
Installation:
|
||||
|
||||
As usual for GNU packages:
|
||||
|
||||
$ ./configure --prefix=/usr/local
|
||||
$ make
|
||||
$ make install
|
||||
|
||||
After installing GNU libiconv for the first time, it is recommended to
|
||||
recompile and reinstall GNU gettext, so that it can take advantage of
|
||||
libiconv.
|
||||
|
||||
On systems other than GNU/Linux, the iconv program will be internationalized
|
||||
only if GNU gettext has been built and installed before GNU libiconv. This
|
||||
means that the first time GNU libiconv is installed, we have a circular
|
||||
dependency between the GNU libiconv and GNU gettext packages, which can be
|
||||
resolved by building and installing either
|
||||
- first libiconv, then gettext, then libiconv again,
|
||||
or (on systems supporting shared libraries, excluding AIX)
|
||||
- first gettext, then libiconv, then gettext again.
|
||||
Recall that before building a package for the second time, you need to erase
|
||||
the traces of the first build by running "make distclean".
|
||||
|
||||
This library can be built and installed in two variants:
|
||||
|
||||
- The library mode. This works on all systems, and uses a library
|
||||
`libiconv.so' and a header file `<iconv.h>'. (Both are installed
|
||||
through "make install".)
|
||||
|
||||
To use it, simply #include <iconv.h> and use the functions.
|
||||
|
||||
To use it in an autoconfiguring package:
|
||||
- If you don't use automake, append m4/iconv.m4 to your aclocal.m4
|
||||
file.
|
||||
- If you do use automake, add m4/iconv.m4 to your m4 macro repository.
|
||||
- Add to the link command line of libraries and executables that use
|
||||
the functions the placeholder @LIBICONV@ (or, if using libtool for
|
||||
the link, @LTLIBICONV@). If you use automake, the right place for
|
||||
these additions are the *_LDADD variables.
|
||||
Note that 'iconv.m4' is also part of the GNU gettext package, which
|
||||
installs it in /usr/local/share/aclocal/iconv.m4.
|
||||
|
||||
- The libc plug/override mode. This works on GNU/Linux, Solaris and OSF/1
|
||||
systems only. It is a way to get good iconv support without having
|
||||
glibc-2.1.
|
||||
It installs a library `preloadable_libiconv.so'. This library can be used
|
||||
with LD_PRELOAD, to override the iconv* functions present in the C library.
|
||||
|
||||
On GNU/Linux and Solaris:
|
||||
$ export LD_PRELOAD=/usr/local/lib/preloadable_libiconv.so
|
||||
|
||||
On OSF/1:
|
||||
$ export _RLD_LIST=/usr/local/lib/preloadable_libiconv.so:DEFAULT
|
||||
|
||||
A program's source need not be modified, the program need not even be
|
||||
recompiled. Just set the LD_PRELOAD environment variable, that's it!
|
||||
|
||||
|
||||
Download:
|
||||
ftp://ftp.gnu.org/pub/gnu/libiconv/libiconv-1.11.tar.gz
|
||||
|
||||
Homepage:
|
||||
http://www.gnu.org/software/libiconv/
|
||||
|
||||
Bug reports to:
|
||||
<bug-gnu-libiconv@gnu.org>
|
||||
|
||||
|
||||
Bruno Haible <bruno@clisp.org>
|
3
libiconv/README.djgpp
Normal file
3
libiconv/README.djgpp
Normal file
@ -0,0 +1,3 @@
|
||||
Installation on DJGPP:
|
||||
|
||||
See the file djgpp/README.
|
46
libiconv/README.os2
Normal file
46
libiconv/README.os2
Normal file
@ -0,0 +1,46 @@
|
||||
Installation on OS/2:
|
||||
|
||||
- Port done by Akira Hatakeyama <akira@sra.co.jp>, see
|
||||
http://www.sra.co.jp/people/akira/os2/libiconv/index.html
|
||||
|
||||
- Requires emx+gcc, recommend emx-0.9d with fix03 or newer.
|
||||
|
||||
Also requires a few GNU utilities to be installed: GNU fileutils (cp, mv,
|
||||
rm, ...), GNU textutils (cat, cmp, uniq, ...), GNU sed, GNU make.
|
||||
|
||||
- Cannot build in a separate directory.
|
||||
|
||||
- Build instructions:
|
||||
|
||||
No configure script needs to be run. Just
|
||||
|
||||
make -f Makefile.os2 all
|
||||
|
||||
Checking it:
|
||||
|
||||
make -f Makefile.os2 check
|
||||
|
||||
- Installation:
|
||||
|
||||
make -f Makefile.os2 install prefix="X:/emx"
|
||||
|
||||
The prefix option specifies where you have EMX installed and wish the
|
||||
iconv library and headers to be installed.
|
||||
|
||||
This will install
|
||||
* an include file $(prefix)/include/iconv.h
|
||||
* a DLL $(prefix)/dll/iconv.dll
|
||||
* an import library for .o (use without "-Zomf") $(prefix)/lib/iconv.a
|
||||
* an import library for .obj (use with "-Zomf") $(prefix)/lib/iconv.lib
|
||||
* a few manual pages $(prefix)/man/man3/iconv*.3
|
||||
|
||||
- Use:
|
||||
|
||||
Your main program should include <iconv.h> when using the iconv* functions.
|
||||
|
||||
If you compile as .o (no "-Zomf"), link with iconv.a.
|
||||
If you compile as .obj (with "-Zomf"), link with iconv.lib.
|
||||
|
||||
The DLL was built with "-Zmt -Zcrtdll" options. So your main program must
|
||||
be built with "-Zmt -Zcrtdll" as well (or the shorthand "-Zmtd").
|
||||
|
119
libiconv/README.woe32
Normal file
119
libiconv/README.woe32
Normal file
@ -0,0 +1,119 @@
|
||||
Installation on Woe32 (WinNT/2000/XP, Win95/98/ME):
|
||||
|
||||
- Requires MS Visual C/C++ 4.0 or 5.0 or 6.0 or 7.0.
|
||||
|
||||
Note that binaries created with MSVC 7.0 should not be distributed: They
|
||||
depend on a closed-source library 'msvcr70.dll' which is not normally part
|
||||
of a Woe32 installation. You cannot distribute 'msvcr70.dll' with the
|
||||
binaries - this would be a violation of the GPL and of the Microsoft EULA.
|
||||
You can distribute the binaries without including 'msvcr70.dll', but this
|
||||
will cause problems for users that don't have this library on their system.
|
||||
Therefore it is not recommended. This problem does not occur with MSVC 6.0
|
||||
and earlier.
|
||||
|
||||
- Cannot build in a separate directory.
|
||||
|
||||
- Build instructions:
|
||||
|
||||
Make sure that the MSVC4.0 or MSVC5.0 or MSVC6.0 or MSVC7.0 utilities
|
||||
("cl" etc.) are found in PATH. In a typical MSVC6.0 installation, this
|
||||
can be achieved by running
|
||||
C:\Program Files\Microsoft Visual Studio\VC98\bin\vcvars32.bat
|
||||
In a typical MSVC7.0 installation, it can be achieved by running
|
||||
C:\Program Files\Microsoft Visual Studio .NET\Common7\Tools\vsvars32.bat
|
||||
|
||||
Decide which compilation model you will use:
|
||||
MFLAGS=-ML (the default) Single-threaded, statically linked - libc.lib
|
||||
MFLAGS=-MT Multi-threaded, statically linked - libcmt.lib
|
||||
MFLAGS=-MD Multi-threaded, dynamically linked - msvcrt.lib
|
||||
|
||||
Step 1: Build and install the libiconv library and the iconv.exe program
|
||||
without internationalization. (This step is only needed the first time
|
||||
you install GNU libiconv.)
|
||||
|
||||
For shared library (DLL):
|
||||
|
||||
nmake -f Makefile.msvc NO_NLS=1 DLL=1 MFLAGS=-MD
|
||||
or
|
||||
nmake -f Makefile.msvc NO_NLS=1 DLL=1 MFLAGS=-MD check
|
||||
[This runs the testsuite.]
|
||||
|
||||
For static library:
|
||||
|
||||
nmake -f Makefile.msvc NO_NLS=1 MFLAGS=-MD
|
||||
or
|
||||
nmake -f Makefile.msvc NO_NLS=1 MFLAGS=-MD check
|
||||
[This runs the testsuite.]
|
||||
|
||||
If you want to build both the shared and static library, you have to
|
||||
unpack the libiconv sources twice in different directories. Don't mix
|
||||
the two formats; you cannot use the iconv.h generated for the static
|
||||
library together with the shared library or vice versa.
|
||||
|
||||
Install it:
|
||||
|
||||
nmake -f Makefile.msvc NO_NLS=1 DLL=1 MFLAGS=-MD install
|
||||
or
|
||||
nmake -f Makefile.msvc NO_NLS=1 MFLAGS=-MD install
|
||||
|
||||
Remove traces of this preliminary build:
|
||||
|
||||
nmake -f Makefile.msvc NO_NLS=1 DLL=1 MFLAGS=-MD distclean
|
||||
or
|
||||
nmake -f Makefile.msvc NO_NLS=1 MFLAGS=-MD distclean
|
||||
|
||||
Step 2: Build and install the GNU gettext package (version 0.12 or newer,
|
||||
libintl library and various programs) using the same MFLAGS. Then come
|
||||
back to here, to build GNU libiconv. (This step is only needed if you
|
||||
haven't GNU gettext already installed.)
|
||||
|
||||
Step 3: Build and install the libiconv library and the iconv.exe program
|
||||
with internationalization.
|
||||
|
||||
For shared library (DLL):
|
||||
|
||||
nmake -f Makefile.msvc DLL=1 MFLAGS=-MD
|
||||
or
|
||||
nmake -f Makefile.msvc DLL=1 MFLAGS=-MD check
|
||||
[This runs the testsuite.]
|
||||
|
||||
For static library:
|
||||
|
||||
nmake -f Makefile.msvc MFLAGS=-MD
|
||||
or
|
||||
nmake -f Makefile.msvc MFLAGS=-MD check [This runs the testsuite.]
|
||||
|
||||
If you want to build both the shared and static library, you have to
|
||||
unpack the libiconv sources twice in different directories. Don't mix
|
||||
the two formats; you cannot use the iconv.h generated for the static
|
||||
library together with the shared library or vice versa.
|
||||
|
||||
Install it:
|
||||
|
||||
nmake -f Makefile.msvc DLL=1 MFLAGS=-MD install
|
||||
or
|
||||
nmake -f Makefile.msvc MFLAGS=-MD install
|
||||
|
||||
- Installation:
|
||||
|
||||
Manual minimal installation:
|
||||
|
||||
Copy include/iconv.h to your header file repository.
|
||||
Copy lib/iconv.lib to your library repository.
|
||||
If you built for shared library, also copy lib/iconv.dll into one of
|
||||
the directories listed in your PATH, or into the directory containing
|
||||
the executable which shall make use of libiconv.
|
||||
|
||||
Complete and automatic installation:
|
||||
|
||||
nmake -f Makefile.msvc DLL=1 MFLAGS=-MD install PREFIX=InstallBaseDirectory
|
||||
or
|
||||
nmake -f Makefile.msvc MFLAGS=-MD install PREFIX=InstallBaseDirectory
|
||||
|
||||
By default, the compiled package is installed under c:\usr. You can
|
||||
specify a different directory by giving the installation base directory
|
||||
in a PREFIX=... option in the install step. (DON'T give the PREFIX
|
||||
already in the build step! This won't work.) You can also omit the
|
||||
PREFIX=... option, thus installing everything under c:\usr, and then
|
||||
move the installed package as a whole from c:\usr to a different
|
||||
location.
|
15
libiconv/THANKS
Normal file
15
libiconv/THANKS
Normal file
@ -0,0 +1,15 @@
|
||||
Thanks to for
|
||||
|
||||
Edmund Grimley Evans <edmundo@rano.org> bug reports
|
||||
|
||||
Taro Muraoka <koron@tka.att.ne.jp> Woe32 DLL support
|
||||
|
||||
Akira Hatakeyama <akira@sra.co.jp> OS/2 support
|
||||
|
||||
Juan Manuel Guerrero <st001906@hrz1.hrz.tu-darmstadt.de>
|
||||
DOS/DJGPP support
|
||||
|
||||
Hironori Sakamoto <hsaka@mth.biglobe.ne.jp> advice on EUC-JP and JISX0213
|
||||
|
||||
Ken Lunde <lunde@adobe.com> detailed information about GB18030
|
||||
|
889
libiconv/aclocal.m4
vendored
Normal file
889
libiconv/aclocal.m4
vendored
Normal file
@ -0,0 +1,889 @@
|
||||
# generated automatically by aclocal 1.9.6 -*- Autoconf -*-
|
||||
|
||||
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
|
||||
# 2005 Free Software Foundation, Inc.
|
||||
# This file is free software; the Free Software Foundation
|
||||
# gives unlimited permission to copy and/or distribute it,
|
||||
# with or without modifications, as long as this notice is preserved.
|
||||
|
||||
# This program is distributed in the hope that it will be useful,
|
||||
# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
|
||||
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
|
||||
# PARTICULAR PURPOSE.
|
||||
|
||||
# Copyright (C) 2002, 2003, 2005 Free Software Foundation, Inc.
|
||||
#
|
||||
# This file is free software; the Free Software Foundation
|
||||
# gives unlimited permission to copy and/or distribute it,
|
||||
# with or without modifications, as long as this notice is preserved.
|
||||
|
||||
# AM_AUTOMAKE_VERSION(VERSION)
|
||||
# ----------------------------
|
||||
# Automake X.Y traces this macro to ensure aclocal.m4 has been
|
||||
# generated from the m4 files accompanying Automake X.Y.
|
||||
AC_DEFUN([AM_AUTOMAKE_VERSION], [am__api_version="1.9"])
|
||||
|
||||
# AM_SET_CURRENT_AUTOMAKE_VERSION
|
||||
# -------------------------------
|
||||
# Call AM_AUTOMAKE_VERSION so it can be traced.
|
||||
# This function is AC_REQUIREd by AC_INIT_AUTOMAKE.
|
||||
AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
|
||||
[AM_AUTOMAKE_VERSION([1.9.6])])
|
||||
|
||||
# AM_AUX_DIR_EXPAND -*- Autoconf -*-
|
||||
|
||||
# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
|
||||
#
|
||||
# This file is free software; the Free Software Foundation
|
||||
# gives unlimited permission to copy and/or distribute it,
|
||||
# with or without modifications, as long as this notice is preserved.
|
||||
|
||||
# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
|
||||
# $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to
|
||||
# `$srcdir', `$srcdir/..', or `$srcdir/../..'.
|
||||
#
|
||||
# Of course, Automake must honor this variable whenever it calls a
|
||||
# tool from the auxiliary directory. The problem is that $srcdir (and
|
||||
# therefore $ac_aux_dir as well) can be either absolute or relative,
|
||||
# depending on how configure is run. This is pretty annoying, since
|
||||
# it makes $ac_aux_dir quite unusable in subdirectories: in the top
|
||||
# source directory, any form will work fine, but in subdirectories a
|
||||
# relative path needs to be adjusted first.
|
||||
#
|
||||
# $ac_aux_dir/missing
|
||||
# fails when called from a subdirectory if $ac_aux_dir is relative
|
||||
# $top_srcdir/$ac_aux_dir/missing
|
||||
# fails if $ac_aux_dir is absolute,
|
||||
# fails when called from a subdirectory in a VPATH build with
|
||||
# a relative $ac_aux_dir
|
||||
#
|
||||
# The reason of the latter failure is that $top_srcdir and $ac_aux_dir
|
||||
# are both prefixed by $srcdir. In an in-source build this is usually
|
||||
# harmless because $srcdir is `.', but things will broke when you
|
||||
# start a VPATH build or use an absolute $srcdir.
|
||||
#
|
||||
# So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
|
||||
# iff we strip the leading $srcdir from $ac_aux_dir. That would be:
|
||||
# am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
|
||||
# and then we would define $MISSING as
|
||||
# MISSING="\${SHELL} $am_aux_dir/missing"
|
||||
# This will work as long as MISSING is not called from configure, because
|
||||
# unfortunately $(top_srcdir) has no meaning in configure.
|
||||
# However there are other variables, like CC, which are often used in
|
||||
# configure, and could therefore not use this "fixed" $ac_aux_dir.
|
||||
#
|
||||
# Another solution, used here, is to always expand $ac_aux_dir to an
|
||||
# absolute PATH. The drawback is that using absolute paths prevent a
|
||||
# configured tree to be moved without reconfiguration.
|
||||
|
||||
AC_DEFUN([AM_AUX_DIR_EXPAND],
|
||||
[dnl Rely on autoconf to set up CDPATH properly.
|
||||
AC_PREREQ([2.50])dnl
|
||||
# expand $ac_aux_dir to an absolute path
|
||||
am_aux_dir=`cd $ac_aux_dir && pwd`
|
||||
])
|
||||
|
||||
# AM_CONDITIONAL -*- Autoconf -*-
|
||||
|
||||
# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005
|
||||
# Free Software Foundation, Inc.
|
||||
#
|
||||
# This file is free software; the Free Software Foundation
|
||||
# gives unlimited permission to copy and/or distribute it,
|
||||
# with or without modifications, as long as this notice is preserved.
|
||||
|
||||
# serial 7
|
||||
|
||||
# AM_CONDITIONAL(NAME, SHELL-CONDITION)
|
||||
# -------------------------------------
|
||||
# Define a conditional.
|
||||
AC_DEFUN([AM_CONDITIONAL],
|
||||
[AC_PREREQ(2.52)dnl
|
||||
ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])],
|
||||
[$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
|
||||
AC_SUBST([$1_TRUE])
|
||||
AC_SUBST([$1_FALSE])
|
||||
if $2; then
|
||||
$1_TRUE=
|
||||
$1_FALSE='#'
|
||||
else
|
||||
$1_TRUE='#'
|
||||
$1_FALSE=
|
||||
fi
|
||||
AC_CONFIG_COMMANDS_PRE(
|
||||
[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
|
||||
AC_MSG_ERROR([[conditional "$1" was never defined.
|
||||
Usually this means the macro was only invoked conditionally.]])
|
||||
fi])])
|
||||
|
||||
|
||||
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005
|
||||
# Free Software Foundation, Inc.
|
||||
#
|
||||
# This file is free software; the Free Software Foundation
|
||||
# gives unlimited permission to copy and/or distribute it,
|
||||
# with or without modifications, as long as this notice is preserved.
|
||||
|
||||
# serial 8
|
||||
|
||||
# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
|
||||
# written in clear, in which case automake, when reading aclocal.m4,
|
||||
# will think it sees a *use*, and therefore will trigger all it's
|
||||
# C support machinery. Also note that it means that autoscan, seeing
|
||||
# CC etc. in the Makefile, will ask for an AC_PROG_CC use...
|
||||
|
||||
|
||||
# _AM_DEPENDENCIES(NAME)
|
||||
# ----------------------
|
||||
# See how the compiler implements dependency checking.
|
||||
# NAME is "CC", "CXX", "GCJ", or "OBJC".
|
||||
# We try a few techniques and use that to set a single cache variable.
|
||||
#
|
||||
# We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
|
||||
# modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
|
||||
# dependency, and given that the user is not expected to run this macro,
|
||||
# just rely on AC_PROG_CC.
|
||||
AC_DEFUN([_AM_DEPENDENCIES],
|
||||
[AC_REQUIRE([AM_SET_DEPDIR])dnl
|
||||
AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
|
||||
AC_REQUIRE([AM_MAKE_INCLUDE])dnl
|
||||
AC_REQUIRE([AM_DEP_TRACK])dnl
|
||||
|
||||
ifelse([$1], CC, [depcc="$CC" am_compiler_list=],
|
||||
[$1], CXX, [depcc="$CXX" am_compiler_list=],
|
||||
[$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
|
||||
[$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'],
|
||||
[depcc="$$1" am_compiler_list=])
|
||||
|
||||
AC_CACHE_CHECK([dependency style of $depcc],
|
||||
[am_cv_$1_dependencies_compiler_type],
|
||||
[if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
|
||||
# We make a subdir and do the tests there. Otherwise we can end up
|
||||
# making bogus files that we don't know about and never remove. For
|
||||
# instance it was reported that on HP-UX the gcc test will end up
|
||||
# making a dummy file named `D' -- because `-MD' means `put the output
|
||||
# in D'.
|
||||
mkdir conftest.dir
|
||||
# Copy depcomp to subdir because otherwise we won't find it if we're
|
||||
# using a relative directory.
|
||||
cp "$am_depcomp" conftest.dir
|
||||
cd conftest.dir
|
||||
# We will build objects and dependencies in a subdirectory because
|
||||
# it helps to detect inapplicable dependency modes. For instance
|
||||
# both Tru64's cc and ICC support -MD to output dependencies as a
|
||||
# side effect of compilation, but ICC will put the dependencies in
|
||||
# the current directory while Tru64 will put them in the object
|
||||
# directory.
|
||||
mkdir sub
|
||||
|
||||
am_cv_$1_dependencies_compiler_type=none
|
||||
if test "$am_compiler_list" = ""; then
|
||||
am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
|
||||
fi
|
||||
for depmode in $am_compiler_list; do
|
||||
# Setup a source with many dependencies, because some compilers
|
||||
# like to wrap large dependency lists on column 80 (with \), and
|
||||
# we should not choose a depcomp mode which is confused by this.
|
||||
#
|
||||
# We need to recreate these files for each test, as the compiler may
|
||||
# overwrite some of them when testing with obscure command lines.
|
||||
# This happens at least with the AIX C compiler.
|
||||
: > sub/conftest.c
|
||||
for i in 1 2 3 4 5 6; do
|
||||
echo '#include "conftst'$i'.h"' >> sub/conftest.c
|
||||
# Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
|
||||
# Solaris 8's {/usr,}/bin/sh.
|
||||
touch sub/conftst$i.h
|
||||
done
|
||||
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
|
||||
|
||||
case $depmode in
|
||||
nosideeffect)
|
||||
# after this tag, mechanisms are not by side-effect, so they'll
|
||||
# only be used when explicitly requested
|
||||
if test "x$enable_dependency_tracking" = xyes; then
|
||||
continue
|
||||
else
|
||||
break
|
||||
fi
|
||||
;;
|
||||
none) break ;;
|
||||
esac
|
||||
# We check with `-c' and `-o' for the sake of the "dashmstdout"
|
||||
# mode. It turns out that the SunPro C++ compiler does not properly
|
||||
# handle `-M -o', and we need to detect this.
|
||||
if depmode=$depmode \
|
||||
source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
|
||||
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
|
||||
$SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
|
||||
>/dev/null 2>conftest.err &&
|
||||
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
|
||||
grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
|
||||
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
|
||||
# icc doesn't choke on unknown options, it will just issue warnings
|
||||
# or remarks (even with -Werror). So we grep stderr for any message
|
||||
# that says an option was ignored or not supported.
|
||||
# When given -MP, icc 7.0 and 7.1 complain thusly:
|
||||
# icc: Command line warning: ignoring option '-M'; no argument required
|
||||
# The diagnosis changed in icc 8.0:
|
||||
# icc: Command line remark: option '-MP' not supported
|
||||
if (grep 'ignoring option' conftest.err ||
|
||||
grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
|
||||
am_cv_$1_dependencies_compiler_type=$depmode
|
||||
break
|
||||
fi
|
||||
fi
|
||||
done
|
||||
|
||||
cd ..
|
||||
rm -rf conftest.dir
|
||||
else
|
||||
am_cv_$1_dependencies_compiler_type=none
|
||||
fi
|
||||
])
|
||||
AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
|
||||
AM_CONDITIONAL([am__fastdep$1], [
|
||||
test "x$enable_dependency_tracking" != xno \
|
||||
&& test "$am_cv_$1_dependencies_compiler_type" = gcc3])
|
||||
])
|
||||
|
||||
|
||||
# AM_SET_DEPDIR
|
||||
# -------------
|
||||
# Choose a directory name for dependency files.
|
||||
# This macro is AC_REQUIREd in _AM_DEPENDENCIES
|
||||
AC_DEFUN([AM_SET_DEPDIR],
|
||||
[AC_REQUIRE([AM_SET_LEADING_DOT])dnl
|
||||
AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
|
||||
])
|
||||
|
||||
|
||||
# AM_DEP_TRACK
|
||||
# ------------
|
||||
AC_DEFUN([AM_DEP_TRACK],
|
||||
[AC_ARG_ENABLE(dependency-tracking,
|
||||
[ --disable-dependency-tracking speeds up one-time build
|
||||
--enable-dependency-tracking do not reject slow dependency extractors])
|
||||
if test "x$enable_dependency_tracking" != xno; then
|
||||
am_depcomp="$ac_aux_dir/depcomp"
|
||||
AMDEPBACKSLASH='\'
|
||||
fi
|
||||
AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
|
||||
AC_SUBST([AMDEPBACKSLASH])
|
||||
])
|
||||
|
||||
# Generate code to set up dependency tracking. -*- Autoconf -*-
|
||||
|
||||
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005
|
||||
# Free Software Foundation, Inc.
|
||||
#
|
||||
# This file is free software; the Free Software Foundation
|
||||
# gives unlimited permission to copy and/or distribute it,
|
||||
# with or without modifications, as long as this notice is preserved.
|
||||
|
||||
#serial 3
|
||||
|
||||
# _AM_OUTPUT_DEPENDENCY_COMMANDS
|
||||
# ------------------------------
|
||||
AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
|
||||
[for mf in $CONFIG_FILES; do
|
||||
# Strip MF so we end up with the name of the file.
|
||||
mf=`echo "$mf" | sed -e 's/:.*$//'`
|
||||
# Check whether this is an Automake generated Makefile or not.
|
||||
# We used to match only the files named `Makefile.in', but
|
||||
# some people rename them; so instead we look at the file content.
|
||||
# Grep'ing the first line is not enough: some people post-process
|
||||
# each Makefile.in and add a new line on top of each file to say so.
|
||||
# So let's grep whole file.
|
||||
if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
|
||||
dirpart=`AS_DIRNAME("$mf")`
|
||||
else
|
||||
continue
|
||||
fi
|
||||
# Extract the definition of DEPDIR, am__include, and am__quote
|
||||
# from the Makefile without running `make'.
|
||||
DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
|
||||
test -z "$DEPDIR" && continue
|
||||
am__include=`sed -n 's/^am__include = //p' < "$mf"`
|
||||
test -z "am__include" && continue
|
||||
am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
|
||||
# When using ansi2knr, U may be empty or an underscore; expand it
|
||||
U=`sed -n 's/^U = //p' < "$mf"`
|
||||
# Find all dependency output files, they are included files with
|
||||
# $(DEPDIR) in their names. We invoke sed twice because it is the
|
||||
# simplest approach to changing $(DEPDIR) to its actual value in the
|
||||
# expansion.
|
||||
for file in `sed -n "
|
||||
s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
|
||||
sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
|
||||
# Make sure the directory exists.
|
||||
test -f "$dirpart/$file" && continue
|
||||
fdir=`AS_DIRNAME(["$file"])`
|
||||
AS_MKDIR_P([$dirpart/$fdir])
|
||||
# echo "creating $dirpart/$file"
|
||||
echo '# dummy' > "$dirpart/$file"
|
||||
done
|
||||
done
|
||||
])# _AM_OUTPUT_DEPENDENCY_COMMANDS
|
||||
|
||||
|
||||
# AM_OUTPUT_DEPENDENCY_COMMANDS
|
||||
# -----------------------------
|
||||
# This macro should only be invoked once -- use via AC_REQUIRE.
|
||||
#
|
||||
# This code is only required when automatic dependency tracking
|
||||
# is enabled. FIXME. This creates each `.P' file that we will
|
||||
# need in order to bootstrap the dependency handling code.
|
||||
AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
|
||||
[AC_CONFIG_COMMANDS([depfiles],
|
||||
[test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
|
||||
[AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
|
||||
])
|
||||
|
||||
# Do all the work for Automake. -*- Autoconf -*-
|
||||
|
||||
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
|
||||
# Free Software Foundation, Inc.
|
||||
#
|
||||
# This file is free software; the Free Software Foundation
|
||||
# gives unlimited permission to copy and/or distribute it,
|
||||
# with or without modifications, as long as this notice is preserved.
|
||||
|
||||
# serial 12
|
||||
|
||||
# This macro actually does too much. Some checks are only needed if
|
||||
# your package does certain things. But this isn't really a big deal.
|
||||
|
||||
# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
|
||||
# AM_INIT_AUTOMAKE([OPTIONS])
|
||||
# -----------------------------------------------
|
||||
# The call with PACKAGE and VERSION arguments is the old style
|
||||
# call (pre autoconf-2.50), which is being phased out. PACKAGE
|
||||
# and VERSION should now be passed to AC_INIT and removed from
|
||||
# the call to AM_INIT_AUTOMAKE.
|
||||
# We support both call styles for the transition. After
|
||||
# the next Automake release, Autoconf can make the AC_INIT
|
||||
# arguments mandatory, and then we can depend on a new Autoconf
|
||||
# release and drop the old call support.
|
||||
AC_DEFUN([AM_INIT_AUTOMAKE],
|
||||
[AC_PREREQ([2.58])dnl
|
||||
dnl Autoconf wants to disallow AM_ names. We explicitly allow
|
||||
dnl the ones we care about.
|
||||
m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
|
||||
AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
|
||||
AC_REQUIRE([AC_PROG_INSTALL])dnl
|
||||
# test to see if srcdir already configured
|
||||
if test "`cd $srcdir && pwd`" != "`pwd`" &&
|
||||
test -f $srcdir/config.status; then
|
||||
AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
|
||||
fi
|
||||
|
||||
# test whether we have cygpath
|
||||
if test -z "$CYGPATH_W"; then
|
||||
if (cygpath --version) >/dev/null 2>/dev/null; then
|
||||
CYGPATH_W='cygpath -w'
|
||||
else
|
||||
CYGPATH_W=echo
|
||||
fi
|
||||
fi
|
||||
AC_SUBST([CYGPATH_W])
|
||||
|
||||
# Define the identity of the package.
|
||||
dnl Distinguish between old-style and new-style calls.
|
||||
m4_ifval([$2],
|
||||
[m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
|
||||
AC_SUBST([PACKAGE], [$1])dnl
|
||||
AC_SUBST([VERSION], [$2])],
|
||||
[_AM_SET_OPTIONS([$1])dnl
|
||||
AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
|
||||
AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
|
||||
|
||||
_AM_IF_OPTION([no-define],,
|
||||
[AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
|
||||
AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl
|
||||
|
||||
# Some tools Automake needs.
|
||||
AC_REQUIRE([AM_SANITY_CHECK])dnl
|
||||
AC_REQUIRE([AC_ARG_PROGRAM])dnl
|
||||
AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version})
|
||||
AM_MISSING_PROG(AUTOCONF, autoconf)
|
||||
AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
|
||||
AM_MISSING_PROG(AUTOHEADER, autoheader)
|
||||
AM_MISSING_PROG(MAKEINFO, makeinfo)
|
||||
AM_PROG_INSTALL_SH
|
||||
AM_PROG_INSTALL_STRIP
|
||||
AC_REQUIRE([AM_PROG_MKDIR_P])dnl
|
||||
# We need awk for the "check" target. The system "awk" is bad on
|
||||
# some platforms.
|
||||
AC_REQUIRE([AC_PROG_AWK])dnl
|
||||
AC_REQUIRE([AC_PROG_MAKE_SET])dnl
|
||||
AC_REQUIRE([AM_SET_LEADING_DOT])dnl
|
||||
_AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
|
||||
[_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
|
||||
[_AM_PROG_TAR([v7])])])
|
||||
_AM_IF_OPTION([no-dependencies],,
|
||||
[AC_PROVIDE_IFELSE([AC_PROG_CC],
|
||||
[_AM_DEPENDENCIES(CC)],
|
||||
[define([AC_PROG_CC],
|
||||
defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
|
||||
AC_PROVIDE_IFELSE([AC_PROG_CXX],
|
||||
[_AM_DEPENDENCIES(CXX)],
|
||||
[define([AC_PROG_CXX],
|
||||
defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
|
||||
])
|
||||
])
|
||||
|
||||
|
||||
# When config.status generates a header, we must update the stamp-h file.
|
||||
# This file resides in the same directory as the config header
|
||||
# that is generated. The stamp files are numbered to have different names.
|
||||
|
||||
# Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
|
||||
# loop where config.status creates the headers, so we can generate
|
||||
# our stamp files there.
|
||||
AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
|
||||
[# Compute $1's index in $config_headers.
|
||||
_am_stamp_count=1
|
||||
for _am_header in $config_headers :; do
|
||||
case $_am_header in
|
||||
$1 | $1:* )
|
||||
break ;;
|
||||
* )
|
||||
_am_stamp_count=`expr $_am_stamp_count + 1` ;;
|
||||
esac
|
||||
done
|
||||
echo "timestamp for $1" >`AS_DIRNAME([$1])`/stamp-h[]$_am_stamp_count])
|
||||
|
||||
# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
|
||||
#
|
||||
# This file is free software; the Free Software Foundation
|
||||
# gives unlimited permission to copy and/or distribute it,
|
||||
# with or without modifications, as long as this notice is preserved.
|
||||
|
||||
# AM_PROG_INSTALL_SH
|
||||
# ------------------
|
||||
# Define $install_sh.
|
||||
AC_DEFUN([AM_PROG_INSTALL_SH],
|
||||
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
|
||||
install_sh=${install_sh-"$am_aux_dir/install-sh"}
|
||||
AC_SUBST(install_sh)])
|
||||
|
||||
# Copyright (C) 2003, 2005 Free Software Foundation, Inc.
|
||||
#
|
||||
# This file is free software; the Free Software Foundation
|
||||
# gives unlimited permission to copy and/or distribute it,
|
||||
# with or without modifications, as long as this notice is preserved.
|
||||
|
||||
# serial 2
|
||||
|
||||
# Check whether the underlying file-system supports filenames
|
||||
# with a leading dot. For instance MS-DOS doesn't.
|
||||
AC_DEFUN([AM_SET_LEADING_DOT],
|
||||
[rm -rf .tst 2>/dev/null
|
||||
mkdir .tst 2>/dev/null
|
||||
if test -d .tst; then
|
||||
am__leading_dot=.
|
||||
else
|
||||
am__leading_dot=_
|
||||
fi
|
||||
rmdir .tst 2>/dev/null
|
||||
AC_SUBST([am__leading_dot])])
|
||||
|
||||
# Check to see how 'make' treats includes. -*- Autoconf -*-
|
||||
|
||||
# Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation, Inc.
|
||||
#
|
||||
# This file is free software; the Free Software Foundation
|
||||
# gives unlimited permission to copy and/or distribute it,
|
||||
# with or without modifications, as long as this notice is preserved.
|
||||
|
||||
# serial 3
|
||||
|
||||
# AM_MAKE_INCLUDE()
|
||||
# -----------------
|
||||
# Check to see how make treats includes.
|
||||
AC_DEFUN([AM_MAKE_INCLUDE],
|
||||
[am_make=${MAKE-make}
|
||||
cat > confinc << 'END'
|
||||
am__doit:
|
||||
@echo done
|
||||
.PHONY: am__doit
|
||||
END
|
||||
# If we don't find an include directive, just comment out the code.
|
||||
AC_MSG_CHECKING([for style of include used by $am_make])
|
||||
am__include="#"
|
||||
am__quote=
|
||||
_am_result=none
|
||||
# First try GNU make style include.
|
||||
echo "include confinc" > confmf
|
||||
# We grep out `Entering directory' and `Leaving directory'
|
||||
# messages which can occur if `w' ends up in MAKEFLAGS.
|
||||
# In particular we don't look at `^make:' because GNU make might
|
||||
# be invoked under some other name (usually "gmake"), in which
|
||||
# case it prints its new name instead of `make'.
|
||||
if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
|
||||
am__include=include
|
||||
am__quote=
|
||||
_am_result=GNU
|
||||
fi
|
||||
# Now try BSD make style include.
|
||||
if test "$am__include" = "#"; then
|
||||
echo '.include "confinc"' > confmf
|
||||
if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
|
||||
am__include=.include
|
||||
am__quote="\""
|
||||
_am_result=BSD
|
||||
fi
|
||||
fi
|
||||
AC_SUBST([am__include])
|
||||
AC_SUBST([am__quote])
|
||||
AC_MSG_RESULT([$_am_result])
|
||||
rm -f confinc confmf
|
||||
])
|
||||
|
||||
# Fake the existence of programs that GNU maintainers use. -*- Autoconf -*-
|
||||
|
||||
# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2005
|
||||
# Free Software Foundation, Inc.
|
||||
#
|
||||
# This file is free software; the Free Software Foundation
|
||||
# gives unlimited permission to copy and/or distribute it,
|
||||
# with or without modifications, as long as this notice is preserved.
|
||||
|
||||
# serial 4
|
||||
|
||||
# AM_MISSING_PROG(NAME, PROGRAM)
|
||||
# ------------------------------
|
||||
AC_DEFUN([AM_MISSING_PROG],
|
||||
[AC_REQUIRE([AM_MISSING_HAS_RUN])
|
||||
$1=${$1-"${am_missing_run}$2"}
|
||||
AC_SUBST($1)])
|
||||
|
||||
|
||||
# AM_MISSING_HAS_RUN
|
||||
# ------------------
|
||||
# Define MISSING if not defined so far and test if it supports --run.
|
||||
# If it does, set am_missing_run to use it, otherwise, to nothing.
|
||||
AC_DEFUN([AM_MISSING_HAS_RUN],
|
||||
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
|
||||
test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
|
||||
# Use eval to expand $SHELL
|
||||
if eval "$MISSING --run true"; then
|
||||
am_missing_run="$MISSING --run "
|
||||
else
|
||||
am_missing_run=
|
||||
AC_MSG_WARN([`missing' script is too old or missing])
|
||||
fi
|
||||
])
|
||||
|
||||
# Copyright (C) 2003, 2004, 2005 Free Software Foundation, Inc.
|
||||
#
|
||||
# This file is free software; the Free Software Foundation
|
||||
# gives unlimited permission to copy and/or distribute it,
|
||||
# with or without modifications, as long as this notice is preserved.
|
||||
|
||||
# AM_PROG_MKDIR_P
|
||||
# ---------------
|
||||
# Check whether `mkdir -p' is supported, fallback to mkinstalldirs otherwise.
|
||||
#
|
||||
# Automake 1.8 used `mkdir -m 0755 -p --' to ensure that directories
|
||||
# created by `make install' are always world readable, even if the
|
||||
# installer happens to have an overly restrictive umask (e.g. 077).
|
||||
# This was a mistake. There are at least two reasons why we must not
|
||||
# use `-m 0755':
|
||||
# - it causes special bits like SGID to be ignored,
|
||||
# - it may be too restrictive (some setups expect 775 directories).
|
||||
#
|
||||
# Do not use -m 0755 and let people choose whatever they expect by
|
||||
# setting umask.
|
||||
#
|
||||
# We cannot accept any implementation of `mkdir' that recognizes `-p'.
|
||||
# Some implementations (such as Solaris 8's) are not thread-safe: if a
|
||||
# parallel make tries to run `mkdir -p a/b' and `mkdir -p a/c'
|
||||
# concurrently, both version can detect that a/ is missing, but only
|
||||
# one can create it and the other will error out. Consequently we
|
||||
# restrict ourselves to GNU make (using the --version option ensures
|
||||
# this.)
|
||||
AC_DEFUN([AM_PROG_MKDIR_P],
|
||||
[if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
|
||||
# We used to keeping the `.' as first argument, in order to
|
||||
# allow $(mkdir_p) to be used without argument. As in
|
||||
# $(mkdir_p) $(somedir)
|
||||
# where $(somedir) is conditionally defined. However this is wrong
|
||||
# for two reasons:
|
||||
# 1. if the package is installed by a user who cannot write `.'
|
||||
# make install will fail,
|
||||
# 2. the above comment should most certainly read
|
||||
# $(mkdir_p) $(DESTDIR)$(somedir)
|
||||
# so it does not work when $(somedir) is undefined and
|
||||
# $(DESTDIR) is not.
|
||||
# To support the latter case, we have to write
|
||||
# test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
|
||||
# so the `.' trick is pointless.
|
||||
mkdir_p='mkdir -p --'
|
||||
else
|
||||
# On NextStep and OpenStep, the `mkdir' command does not
|
||||
# recognize any option. It will interpret all options as
|
||||
# directories to create, and then abort because `.' already
|
||||
# exists.
|
||||
for d in ./-p ./--version;
|
||||
do
|
||||
test -d $d && rmdir $d
|
||||
done
|
||||
# $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
|
||||
if test -f "$ac_aux_dir/mkinstalldirs"; then
|
||||
mkdir_p='$(mkinstalldirs)'
|
||||
else
|
||||
mkdir_p='$(install_sh) -d'
|
||||
fi
|
||||
fi
|
||||
AC_SUBST([mkdir_p])])
|
||||
|
||||
# Helper functions for option handling. -*- Autoconf -*-
|
||||
|
||||
# Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation, Inc.
|
||||
#
|
||||
# This file is free software; the Free Software Foundation
|
||||
# gives unlimited permission to copy and/or distribute it,
|
||||
# with or without modifications, as long as this notice is preserved.
|
||||
|
||||
# serial 3
|
||||
|
||||
# _AM_MANGLE_OPTION(NAME)
|
||||
# -----------------------
|
||||
AC_DEFUN([_AM_MANGLE_OPTION],
|
||||
[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
|
||||
|
||||
# _AM_SET_OPTION(NAME)
|
||||
# ------------------------------
|
||||
# Set option NAME. Presently that only means defining a flag for this option.
|
||||
AC_DEFUN([_AM_SET_OPTION],
|
||||
[m4_define(_AM_MANGLE_OPTION([$1]), 1)])
|
||||
|
||||
# _AM_SET_OPTIONS(OPTIONS)
|
||||
# ----------------------------------
|
||||
# OPTIONS is a space-separated list of Automake options.
|
||||
AC_DEFUN([_AM_SET_OPTIONS],
|
||||
[AC_FOREACH([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
|
||||
|
||||
# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
|
||||
# -------------------------------------------
|
||||
# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
|
||||
AC_DEFUN([_AM_IF_OPTION],
|
||||
[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
|
||||
|
||||
# Check to make sure that the build environment is sane. -*- Autoconf -*-
|
||||
|
||||
# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005
|
||||
# Free Software Foundation, Inc.
|
||||
#
|
||||
# This file is free software; the Free Software Foundation
|
||||
# gives unlimited permission to copy and/or distribute it,
|
||||
# with or without modifications, as long as this notice is preserved.
|
||||
|
||||
# serial 4
|
||||
|
||||
# AM_SANITY_CHECK
|
||||
# ---------------
|
||||
AC_DEFUN([AM_SANITY_CHECK],
|
||||
[AC_MSG_CHECKING([whether build environment is sane])
|
||||
# Just in case
|
||||
sleep 1
|
||||
echo timestamp > conftest.file
|
||||
# Do `set' in a subshell so we don't clobber the current shell's
|
||||
# arguments. Must try -L first in case configure is actually a
|
||||
# symlink; some systems play weird games with the mod time of symlinks
|
||||
# (eg FreeBSD returns the mod time of the symlink's containing
|
||||
# directory).
|
||||
if (
|
||||
set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
|
||||
if test "$[*]" = "X"; then
|
||||
# -L didn't work.
|
||||
set X `ls -t $srcdir/configure conftest.file`
|
||||
fi
|
||||
rm -f conftest.file
|
||||
if test "$[*]" != "X $srcdir/configure conftest.file" \
|
||||
&& test "$[*]" != "X conftest.file $srcdir/configure"; then
|
||||
|
||||
# If neither matched, then we have a broken ls. This can happen
|
||||
# if, for instance, CONFIG_SHELL is bash and it inherits a
|
||||
# broken ls alias from the environment. This has actually
|
||||
# happened. Such a system could not be considered "sane".
|
||||
AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
|
||||
alias in your environment])
|
||||
fi
|
||||
|
||||
test "$[2]" = conftest.file
|
||||
)
|
||||
then
|
||||
# Ok.
|
||||
:
|
||||
else
|
||||
AC_MSG_ERROR([newly created file is older than distributed files!
|
||||
Check your system clock])
|
||||
fi
|
||||
AC_MSG_RESULT(yes)])
|
||||
|
||||
# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
|
||||
#
|
||||
# This file is free software; the Free Software Foundation
|
||||
# gives unlimited permission to copy and/or distribute it,
|
||||
# with or without modifications, as long as this notice is preserved.
|
||||
|
||||
# AM_PROG_INSTALL_STRIP
|
||||
# ---------------------
|
||||
# One issue with vendor `install' (even GNU) is that you can't
|
||||
# specify the program used to strip binaries. This is especially
|
||||
# annoying in cross-compiling environments, where the build's strip
|
||||
# is unlikely to handle the host's binaries.
|
||||
# Fortunately install-sh will honor a STRIPPROG variable, so we
|
||||
# always use install-sh in `make install-strip', and initialize
|
||||
# STRIPPROG with the value of the STRIP variable (set by the user).
|
||||
AC_DEFUN([AM_PROG_INSTALL_STRIP],
|
||||
[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
|
||||
# Installed binaries are usually stripped using `strip' when the user
|
||||
# run `make install-strip'. However `strip' might not be the right
|
||||
# tool to use in cross-compilation environments, therefore Automake
|
||||
# will honor the `STRIP' environment variable to overrule this program.
|
||||
dnl Don't test for $cross_compiling = yes, because it might be `maybe'.
|
||||
if test "$cross_compiling" != no; then
|
||||
AC_CHECK_TOOL([STRIP], [strip], :)
|
||||
fi
|
||||
INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
|
||||
AC_SUBST([INSTALL_STRIP_PROGRAM])])
|
||||
|
||||
# Check how to create a tarball. -*- Autoconf -*-
|
||||
|
||||
# Copyright (C) 2004, 2005 Free Software Foundation, Inc.
|
||||
#
|
||||
# This file is free software; the Free Software Foundation
|
||||
# gives unlimited permission to copy and/or distribute it,
|
||||
# with or without modifications, as long as this notice is preserved.
|
||||
|
||||
# serial 2
|
||||
|
||||
# _AM_PROG_TAR(FORMAT)
|
||||
# --------------------
|
||||
# Check how to create a tarball in format FORMAT.
|
||||
# FORMAT should be one of `v7', `ustar', or `pax'.
|
||||
#
|
||||
# Substitute a variable $(am__tar) that is a command
|
||||
# writing to stdout a FORMAT-tarball containing the directory
|
||||
# $tardir.
|
||||
# tardir=directory && $(am__tar) > result.tar
|
||||
#
|
||||
# Substitute a variable $(am__untar) that extract such
|
||||
# a tarball read from stdin.
|
||||
# $(am__untar) < result.tar
|
||||
AC_DEFUN([_AM_PROG_TAR],
|
||||
[# Always define AMTAR for backward compatibility.
|
||||
AM_MISSING_PROG([AMTAR], [tar])
|
||||
m4_if([$1], [v7],
|
||||
[am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'],
|
||||
[m4_case([$1], [ustar],, [pax],,
|
||||
[m4_fatal([Unknown tar format])])
|
||||
AC_MSG_CHECKING([how to create a $1 tar archive])
|
||||
# Loop over all known methods to create a tar archive until one works.
|
||||
_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
|
||||
_am_tools=${am_cv_prog_tar_$1-$_am_tools}
|
||||
# Do not fold the above two line into one, because Tru64 sh and
|
||||
# Solaris sh will not grok spaces in the rhs of `-'.
|
||||
for _am_tool in $_am_tools
|
||||
do
|
||||
case $_am_tool in
|
||||
gnutar)
|
||||
for _am_tar in tar gnutar gtar;
|
||||
do
|
||||
AM_RUN_LOG([$_am_tar --version]) && break
|
||||
done
|
||||
am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
|
||||
am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
|
||||
am__untar="$_am_tar -xf -"
|
||||
;;
|
||||
plaintar)
|
||||
# Must skip GNU tar: if it does not support --format= it doesn't create
|
||||
# ustar tarball either.
|
||||
(tar --version) >/dev/null 2>&1 && continue
|
||||
am__tar='tar chf - "$$tardir"'
|
||||
am__tar_='tar chf - "$tardir"'
|
||||
am__untar='tar xf -'
|
||||
;;
|
||||
pax)
|
||||
am__tar='pax -L -x $1 -w "$$tardir"'
|
||||
am__tar_='pax -L -x $1 -w "$tardir"'
|
||||
am__untar='pax -r'
|
||||
;;
|
||||
cpio)
|
||||
am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
|
||||
am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
|
||||
am__untar='cpio -i -H $1 -d'
|
||||
;;
|
||||
none)
|
||||
am__tar=false
|
||||
am__tar_=false
|
||||
am__untar=false
|
||||
;;
|
||||
esac
|
||||
|
||||
# If the value was cached, stop now. We just wanted to have am__tar
|
||||
# and am__untar set.
|
||||
test -n "${am_cv_prog_tar_$1}" && break
|
||||
|
||||
# tar/untar a dummy directory, and stop if the command works
|
||||
rm -rf conftest.dir
|
||||
mkdir conftest.dir
|
||||
echo GrepMe > conftest.dir/file
|
||||
AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
|
||||
rm -rf conftest.dir
|
||||
if test -s conftest.tar; then
|
||||
AM_RUN_LOG([$am__untar <conftest.tar])
|
||||
grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
|
||||
fi
|
||||
done
|
||||
rm -rf conftest.dir
|
||||
|
||||
AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
|
||||
AC_MSG_RESULT([$am_cv_prog_tar_$1])])
|
||||
AC_SUBST([am__tar])
|
||||
AC_SUBST([am__untar])
|
||||
]) # _AM_PROG_TAR
|
||||
|
||||
m4_include([m4/alloca.m4])
|
||||
m4_include([m4/allocsa.m4])
|
||||
m4_include([m4/canonicalize.m4])
|
||||
m4_include([m4/codeset.m4])
|
||||
m4_include([m4/cp.m4])
|
||||
m4_include([m4/eealloc.m4])
|
||||
m4_include([m4/eilseq.m4])
|
||||
m4_include([m4/endian.m4])
|
||||
m4_include([m4/error.m4])
|
||||
m4_include([m4/extensions.m4])
|
||||
m4_include([m4/full-header-path.m4])
|
||||
m4_include([m4/gettext.m4])
|
||||
m4_include([m4/iconv.m4])
|
||||
m4_include([m4/lib-ld.m4])
|
||||
m4_include([m4/lib-link.m4])
|
||||
m4_include([m4/lib-prefix.m4])
|
||||
m4_include([m4/libtool.m4])
|
||||
m4_include([m4/ln.m4])
|
||||
m4_include([m4/longdouble.m4])
|
||||
m4_include([m4/longlong.m4])
|
||||
m4_include([m4/mbstate_t.m4])
|
||||
m4_include([m4/nls.m4])
|
||||
m4_include([m4/onceonly.m4])
|
||||
m4_include([m4/pathmax.m4])
|
||||
m4_include([m4/po.m4])
|
||||
m4_include([m4/progtest.m4])
|
||||
m4_include([m4/readlink.m4])
|
||||
m4_include([m4/relocatable.m4])
|
||||
m4_include([m4/setenv.m4])
|
||||
m4_include([m4/size_max.m4])
|
||||
m4_include([m4/ssize_t.m4])
|
||||
m4_include([m4/stdbool.m4])
|
||||
m4_include([m4/stdint.m4])
|
||||
m4_include([m4/strerror.m4])
|
||||
m4_include([m4/unistd_h.m4])
|
||||
m4_include([m4/unlocked-io.m4])
|
||||
m4_include([m4/visibility.m4])
|
||||
m4_include([m4/wchar_t.m4])
|
||||
m4_include([m4/xreadlink.m4])
|
1500
libiconv/build-aux/config.guess
vendored
Normal file
1500
libiconv/build-aux/config.guess
vendored
Normal file
File diff suppressed because it is too large
Load Diff
148
libiconv/build-aux/config.libpath
Normal file
148
libiconv/build-aux/config.libpath
Normal file
@ -0,0 +1,148 @@
|
||||
#! /bin/sh
|
||||
# Output a system dependent set of variables, describing how to set the
|
||||
# run time search path of shared libraries in an executable at run time.
|
||||
#
|
||||
# Copyright 1996-2005 Free Software Foundation, Inc.
|
||||
# Taken from GNU libtool, 2003
|
||||
# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
|
||||
#
|
||||
# This program is free software; you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
# the Free Software Foundation; either version 2 of the License, or
|
||||
# (at your option) any later version.
|
||||
#
|
||||
# This program is distributed in the hope that it will be useful, but
|
||||
# WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
# General Public License for more details.
|
||||
#
|
||||
# You should have received a copy of the GNU General Public License
|
||||
# along with this program; if not, write to the Free Software Foundation,
|
||||
# Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||
#
|
||||
# As a special exception to the GNU General Public License, if you
|
||||
# distribute this file as part of a program that contains a
|
||||
# configuration script generated by Autoconf, you may include it under
|
||||
# the same distribution terms that you use for the rest of that program.
|
||||
#
|
||||
# The first argument passed to this file is the canonical host specification,
|
||||
# CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM
|
||||
# or
|
||||
# CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM
|
||||
# The environment variable LD should be set by the caller.
|
||||
#
|
||||
# The set of defined variables is at the end of this script.
|
||||
|
||||
host="$1"
|
||||
host_cpu=`echo "$host" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
|
||||
host_vendor=`echo "$host" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
|
||||
host_os=`echo "$host" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
|
||||
|
||||
shlibpath_var=
|
||||
case $host_os in
|
||||
aix3*)
|
||||
shlibpath_var=LIBPATH
|
||||
;;
|
||||
aix4* | aix5*)
|
||||
if test "$host_cpu" = ia64; then
|
||||
# AIX 5 supports IA64
|
||||
shlibpath_var=LD_LIBRARY_PATH
|
||||
else
|
||||
shlibpath_var=LIBPATH
|
||||
fi
|
||||
;;
|
||||
beos*)
|
||||
shlibpath_var=LIBRARY_PATH
|
||||
;;
|
||||
bsdi4*)
|
||||
shlibpath_var=LD_LIBRARY_PATH
|
||||
;;
|
||||
cygwin* | mingw* | pw32*)
|
||||
# FIXME: first we should search . and the directory the executable is in
|
||||
shlibpath_var=PATH
|
||||
;;
|
||||
darwin* | rhapsody*)
|
||||
shlibpath_var=DYLD_LIBRARY_PATH
|
||||
;;
|
||||
freebsd1*)
|
||||
;;
|
||||
kfreebsd*-gnu)
|
||||
shlibpath_var=LD_LIBRARY_PATH
|
||||
;;
|
||||
freebsd*)
|
||||
shlibpath_var=LD_LIBRARY_PATH
|
||||
;;
|
||||
gnu*)
|
||||
shlibpath_var=LD_LIBRARY_PATH
|
||||
;;
|
||||
hpux9* | hpux10* | hpux11*)
|
||||
shlibpath_var=SHLIB_PATH
|
||||
;;
|
||||
irix5* | irix6* | nonstopux*)
|
||||
case $host_os in
|
||||
irix5* | nonstopux*)
|
||||
shlibsuff=
|
||||
;;
|
||||
*)
|
||||
case $LD in # libtool.m4 will add one of these switches to LD
|
||||
*-32|*"-32 ") shlibsuff= ;;
|
||||
*-n32|*"-n32 ") shlibsuff=N32 ;;
|
||||
*-64|*"-64 ") shlibsuff=64 ;;
|
||||
*) shlibsuff= ;;
|
||||
esac
|
||||
;;
|
||||
esac
|
||||
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
|
||||
;;
|
||||
linux-gnu*)
|
||||
shlibpath_var=LD_LIBRARY_PATH
|
||||
;;
|
||||
knetbsd*-gnu)
|
||||
shlibpath_var=LD_LIBRARY_PATH
|
||||
;;
|
||||
netbsd*)
|
||||
shlibpath_var=LD_LIBRARY_PATH
|
||||
;;
|
||||
newsos6)
|
||||
shlibpath_var=LD_LIBRARY_PATH
|
||||
;;
|
||||
openbsd*)
|
||||
shlibpath_var=LD_LIBRARY_PATH
|
||||
;;
|
||||
os2*)
|
||||
shlibpath_var=LIBPATH
|
||||
;;
|
||||
osf3* | osf4* | osf5*)
|
||||
shlibpath_var=LD_LIBRARY_PATH
|
||||
;;
|
||||
sco3.2v5*)
|
||||
shlibpath_var=LD_LIBRARY_PATH
|
||||
;;
|
||||
solaris*)
|
||||
shlibpath_var=LD_LIBRARY_PATH
|
||||
;;
|
||||
sunos4*)
|
||||
shlibpath_var=LD_LIBRARY_PATH
|
||||
;;
|
||||
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
|
||||
shlibpath_var=LD_LIBRARY_PATH
|
||||
;;
|
||||
uts4*)
|
||||
shlibpath_var=LD_LIBRARY_PATH
|
||||
;;
|
||||
dgux*)
|
||||
shlibpath_var=LD_LIBRARY_PATH
|
||||
;;
|
||||
sysv4*MP*)
|
||||
if test -d /usr/nec ;then
|
||||
shlibpath_var=LD_LIBRARY_PATH
|
||||
fi
|
||||
;;
|
||||
esac
|
||||
|
||||
LC_ALL=C sed -e 's/^\([a-zA-Z0-9_]*\)=/acl_cv_\1=/' <<EOF
|
||||
|
||||
# This is the shared library path variable.
|
||||
shlibpath_var=$shlibpath_var
|
||||
|
||||
EOF
|
614
libiconv/build-aux/config.rpath
Normal file
614
libiconv/build-aux/config.rpath
Normal file
@ -0,0 +1,614 @@
|
||||
#! /bin/sh
|
||||
# Output a system dependent set of variables, describing how to set the
|
||||
# run time search path of shared libraries in an executable.
|
||||
#
|
||||
# Copyright 1996-2006 Free Software Foundation, Inc.
|
||||
# Taken from GNU libtool, 2001
|
||||
# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
|
||||
#
|
||||
# This file is free software; the Free Software Foundation gives
|
||||
# unlimited permission to copy and/or distribute it, with or without
|
||||
# modifications, as long as this notice is preserved.
|
||||
#
|
||||
# The first argument passed to this file is the canonical host specification,
|
||||
# CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM
|
||||
# or
|
||||
# CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM
|
||||
# The environment variables CC, GCC, LDFLAGS, LD, with_gnu_ld
|
||||
# should be set by the caller.
|
||||
#
|
||||
# The set of defined variables is at the end of this script.
|
||||
|
||||
# Known limitations:
|
||||
# - On IRIX 6.5 with CC="cc", the run time search patch must not be longer
|
||||
# than 256 bytes, otherwise the compiler driver will dump core. The only
|
||||
# known workaround is to choose shorter directory names for the build
|
||||
# directory and/or the installation directory.
|
||||
|
||||
# All known linkers require a `.a' archive for static linking (except MSVC,
|
||||
# which needs '.lib').
|
||||
libext=a
|
||||
shrext=.so
|
||||
|
||||
host="$1"
|
||||
host_cpu=`echo "$host" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
|
||||
host_vendor=`echo "$host" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
|
||||
host_os=`echo "$host" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
|
||||
|
||||
# Code taken from libtool.m4's _LT_CC_BASENAME.
|
||||
|
||||
for cc_temp in $CC""; do
|
||||
case $cc_temp in
|
||||
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
|
||||
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
|
||||
\-*) ;;
|
||||
*) break;;
|
||||
esac
|
||||
done
|
||||
cc_basename=`echo "$cc_temp" | sed -e 's%^.*/%%'`
|
||||
|
||||
# Code taken from libtool.m4's AC_LIBTOOL_PROG_COMPILER_PIC.
|
||||
|
||||
wl=
|
||||
if test "$GCC" = yes; then
|
||||
wl='-Wl,'
|
||||
else
|
||||
case "$host_os" in
|
||||
aix*)
|
||||
wl='-Wl,'
|
||||
;;
|
||||
darwin*)
|
||||
case $cc_basename in
|
||||
xlc*)
|
||||
wl='-Wl,'
|
||||
;;
|
||||
esac
|
||||
;;
|
||||
mingw* | pw32* | os2*)
|
||||
;;
|
||||
hpux9* | hpux10* | hpux11*)
|
||||
wl='-Wl,'
|
||||
;;
|
||||
irix5* | irix6* | nonstopux*)
|
||||
wl='-Wl,'
|
||||
;;
|
||||
newsos6)
|
||||
;;
|
||||
linux*)
|
||||
case $cc_basename in
|
||||
icc* | ecc*)
|
||||
wl='-Wl,'
|
||||
;;
|
||||
pgcc | pgf77 | pgf90)
|
||||
wl='-Wl,'
|
||||
;;
|
||||
ccc*)
|
||||
wl='-Wl,'
|
||||
;;
|
||||
como)
|
||||
wl='-lopt='
|
||||
;;
|
||||
*)
|
||||
case `$CC -V 2>&1 | sed 5q` in
|
||||
*Sun\ C*)
|
||||
wl='-Wl,'
|
||||
;;
|
||||
esac
|
||||
;;
|
||||
esac
|
||||
;;
|
||||
osf3* | osf4* | osf5*)
|
||||
wl='-Wl,'
|
||||
;;
|
||||
sco3.2v5*)
|
||||
;;
|
||||
solaris*)
|
||||
wl='-Wl,'
|
||||
;;
|
||||
sunos4*)
|
||||
wl='-Qoption ld '
|
||||
;;
|
||||
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
|
||||
wl='-Wl,'
|
||||
;;
|
||||
sysv4*MP*)
|
||||
;;
|
||||
unicos*)
|
||||
wl='-Wl,'
|
||||
;;
|
||||
uts4*)
|
||||
;;
|
||||
esac
|
||||
fi
|
||||
|
||||
# Code taken from libtool.m4's AC_LIBTOOL_PROG_LD_SHLIBS.
|
||||
|
||||
hardcode_libdir_flag_spec=
|
||||
hardcode_libdir_separator=
|
||||
hardcode_direct=no
|
||||
hardcode_minus_L=no
|
||||
|
||||
case "$host_os" in
|
||||
cygwin* | mingw* | pw32*)
|
||||
# FIXME: the MSVC++ port hasn't been tested in a loooong time
|
||||
# When not using gcc, we currently assume that we are using
|
||||
# Microsoft Visual C++.
|
||||
if test "$GCC" != yes; then
|
||||
with_gnu_ld=no
|
||||
fi
|
||||
;;
|
||||
interix*)
|
||||
# we just hope/assume this is gcc and not c89 (= MSVC++)
|
||||
with_gnu_ld=yes
|
||||
;;
|
||||
openbsd*)
|
||||
with_gnu_ld=no
|
||||
;;
|
||||
esac
|
||||
|
||||
ld_shlibs=yes
|
||||
if test "$with_gnu_ld" = yes; then
|
||||
# Set some defaults for GNU ld with shared library support. These
|
||||
# are reset later if shared libraries are not supported. Putting them
|
||||
# here allows them to be overridden if necessary.
|
||||
# Unlike libtool, we use -rpath here, not --rpath, since the documented
|
||||
# option of GNU ld is called -rpath, not --rpath.
|
||||
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
|
||||
case "$host_os" in
|
||||
aix3* | aix4* | aix5*)
|
||||
# On AIX/PPC, the GNU linker is very broken
|
||||
if test "$host_cpu" != ia64; then
|
||||
ld_shlibs=no
|
||||
fi
|
||||
;;
|
||||
amigaos*)
|
||||
hardcode_libdir_flag_spec='-L$libdir'
|
||||
hardcode_minus_L=yes
|
||||
# Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
|
||||
# that the semantics of dynamic libraries on AmigaOS, at least up
|
||||
# to version 4, is to share data among multiple programs linked
|
||||
# with the same dynamic library. Since this doesn't match the
|
||||
# behavior of shared libraries on other platforms, we cannot use
|
||||
# them.
|
||||
ld_shlibs=no
|
||||
;;
|
||||
beos*)
|
||||
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
|
||||
:
|
||||
else
|
||||
ld_shlibs=no
|
||||
fi
|
||||
;;
|
||||
cygwin* | mingw* | pw32*)
|
||||
# hardcode_libdir_flag_spec is actually meaningless, as there is
|
||||
# no search path for DLLs.
|
||||
hardcode_libdir_flag_spec='-L$libdir'
|
||||
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
|
||||
:
|
||||
else
|
||||
ld_shlibs=no
|
||||
fi
|
||||
;;
|
||||
interix3*)
|
||||
hardcode_direct=no
|
||||
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
|
||||
;;
|
||||
linux*)
|
||||
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
|
||||
:
|
||||
else
|
||||
ld_shlibs=no
|
||||
fi
|
||||
;;
|
||||
netbsd*)
|
||||
;;
|
||||
solaris*)
|
||||
if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
|
||||
ld_shlibs=no
|
||||
elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
|
||||
:
|
||||
else
|
||||
ld_shlibs=no
|
||||
fi
|
||||
;;
|
||||
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
|
||||
case `$LD -v 2>&1` in
|
||||
*\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
|
||||
ld_shlibs=no
|
||||
;;
|
||||
*)
|
||||
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
|
||||
hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
|
||||
else
|
||||
ld_shlibs=no
|
||||
fi
|
||||
;;
|
||||
esac
|
||||
;;
|
||||
sunos4*)
|
||||
hardcode_direct=yes
|
||||
;;
|
||||
*)
|
||||
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
|
||||
:
|
||||
else
|
||||
ld_shlibs=no
|
||||
fi
|
||||
;;
|
||||
esac
|
||||
if test "$ld_shlibs" = no; then
|
||||
hardcode_libdir_flag_spec=
|
||||
fi
|
||||
else
|
||||
case "$host_os" in
|
||||
aix3*)
|
||||
# Note: this linker hardcodes the directories in LIBPATH if there
|
||||
# are no directories specified by -L.
|
||||
hardcode_minus_L=yes
|
||||
if test "$GCC" = yes; then
|
||||
# Neither direct hardcoding nor static linking is supported with a
|
||||
# broken collect2.
|
||||
hardcode_direct=unsupported
|
||||
fi
|
||||
;;
|
||||
aix4* | aix5*)
|
||||
if test "$host_cpu" = ia64; then
|
||||
# On IA64, the linker does run time linking by default, so we don't
|
||||
# have to do anything special.
|
||||
aix_use_runtimelinking=no
|
||||
else
|
||||
aix_use_runtimelinking=no
|
||||
# Test if we are trying to use run time linking or normal
|
||||
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
|
||||
# need to do runtime linking.
|
||||
case $host_os in aix4.[23]|aix4.[23].*|aix5*)
|
||||
for ld_flag in $LDFLAGS; do
|
||||
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
|
||||
aix_use_runtimelinking=yes
|
||||
break
|
||||
fi
|
||||
done
|
||||
;;
|
||||
esac
|
||||
fi
|
||||
hardcode_direct=yes
|
||||
hardcode_libdir_separator=':'
|
||||
if test "$GCC" = yes; then
|
||||
case $host_os in aix4.[012]|aix4.[012].*)
|
||||
collect2name=`${CC} -print-prog-name=collect2`
|
||||
if test -f "$collect2name" && \
|
||||
strings "$collect2name" | grep resolve_lib_name >/dev/null
|
||||
then
|
||||
# We have reworked collect2
|
||||
hardcode_direct=yes
|
||||
else
|
||||
# We have old collect2
|
||||
hardcode_direct=unsupported
|
||||
hardcode_minus_L=yes
|
||||
hardcode_libdir_flag_spec='-L$libdir'
|
||||
hardcode_libdir_separator=
|
||||
fi
|
||||
;;
|
||||
esac
|
||||
fi
|
||||
# Begin _LT_AC_SYS_LIBPATH_AIX.
|
||||
echo 'int main () { return 0; }' > conftest.c
|
||||
${CC} ${LDFLAGS} conftest.c -o conftest
|
||||
aix_libpath=`dump -H conftest 2>/dev/null | sed -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
|
||||
}'`
|
||||
if test -z "$aix_libpath"; then
|
||||
aix_libpath=`dump -HX64 conftest 2>/dev/null | sed -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
|
||||
}'`
|
||||
fi
|
||||
if test -z "$aix_libpath"; then
|
||||
aix_libpath="/usr/lib:/lib"
|
||||
fi
|
||||
rm -f conftest.c conftest
|
||||
# End _LT_AC_SYS_LIBPATH_AIX.
|
||||
if test "$aix_use_runtimelinking" = yes; then
|
||||
hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
|
||||
else
|
||||
if test "$host_cpu" = ia64; then
|
||||
hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
|
||||
else
|
||||
hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
|
||||
fi
|
||||
fi
|
||||
;;
|
||||
amigaos*)
|
||||
hardcode_libdir_flag_spec='-L$libdir'
|
||||
hardcode_minus_L=yes
|
||||
# see comment about different semantics on the GNU ld section
|
||||
ld_shlibs=no
|
||||
;;
|
||||
bsdi[45]*)
|
||||
;;
|
||||
cygwin* | mingw* | pw32*)
|
||||
# When not using gcc, we currently assume that we are using
|
||||
# Microsoft Visual C++.
|
||||
# hardcode_libdir_flag_spec is actually meaningless, as there is
|
||||
# no search path for DLLs.
|
||||
hardcode_libdir_flag_spec=' '
|
||||
libext=lib
|
||||
;;
|
||||
darwin* | rhapsody*)
|
||||
hardcode_direct=no
|
||||
if test "$GCC" = yes ; then
|
||||
:
|
||||
else
|
||||
case $cc_basename in
|
||||
xlc*)
|
||||
;;
|
||||
*)
|
||||
ld_shlibs=no
|
||||
;;
|
||||
esac
|
||||
fi
|
||||
;;
|
||||
dgux*)
|
||||
hardcode_libdir_flag_spec='-L$libdir'
|
||||
;;
|
||||
freebsd1*)
|
||||
ld_shlibs=no
|
||||
;;
|
||||
freebsd2.2*)
|
||||
hardcode_libdir_flag_spec='-R$libdir'
|
||||
hardcode_direct=yes
|
||||
;;
|
||||
freebsd2*)
|
||||
hardcode_direct=yes
|
||||
hardcode_minus_L=yes
|
||||
;;
|
||||
freebsd* | kfreebsd*-gnu | dragonfly*)
|
||||
hardcode_libdir_flag_spec='-R$libdir'
|
||||
hardcode_direct=yes
|
||||
;;
|
||||
hpux9*)
|
||||
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
|
||||
hardcode_libdir_separator=:
|
||||
hardcode_direct=yes
|
||||
# hardcode_minus_L: Not really in the search PATH,
|
||||
# but as the default location of the library.
|
||||
hardcode_minus_L=yes
|
||||
;;
|
||||
hpux10*)
|
||||
if test "$with_gnu_ld" = no; then
|
||||
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
|
||||
hardcode_libdir_separator=:
|
||||
hardcode_direct=yes
|
||||
# hardcode_minus_L: Not really in the search PATH,
|
||||
# but as the default location of the library.
|
||||
hardcode_minus_L=yes
|
||||
fi
|
||||
;;
|
||||
hpux11*)
|
||||
if test "$with_gnu_ld" = no; then
|
||||
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
|
||||
hardcode_libdir_separator=:
|
||||
case $host_cpu in
|
||||
hppa*64*|ia64*)
|
||||
hardcode_direct=no
|
||||
;;
|
||||
*)
|
||||
hardcode_direct=yes
|
||||
# hardcode_minus_L: Not really in the search PATH,
|
||||
# but as the default location of the library.
|
||||
hardcode_minus_L=yes
|
||||
;;
|
||||
esac
|
||||
fi
|
||||
;;
|
||||
irix5* | irix6* | nonstopux*)
|
||||
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
|
||||
hardcode_libdir_separator=:
|
||||
;;
|
||||
netbsd*)
|
||||
hardcode_libdir_flag_spec='-R$libdir'
|
||||
hardcode_direct=yes
|
||||
;;
|
||||
newsos6)
|
||||
hardcode_direct=yes
|
||||
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
|
||||
hardcode_libdir_separator=:
|
||||
;;
|
||||
openbsd*)
|
||||
hardcode_direct=yes
|
||||
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
|
||||
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
|
||||
else
|
||||
case "$host_os" in
|
||||
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
|
||||
hardcode_libdir_flag_spec='-R$libdir'
|
||||
;;
|
||||
*)
|
||||
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
|
||||
;;
|
||||
esac
|
||||
fi
|
||||
;;
|
||||
os2*)
|
||||
hardcode_libdir_flag_spec='-L$libdir'
|
||||
hardcode_minus_L=yes
|
||||
;;
|
||||
osf3*)
|
||||
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
|
||||
hardcode_libdir_separator=:
|
||||
;;
|
||||
osf4* | osf5*)
|
||||
if test "$GCC" = yes; then
|
||||
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
|
||||
else
|
||||
# Both cc and cxx compiler support -rpath directly
|
||||
hardcode_libdir_flag_spec='-rpath $libdir'
|
||||
fi
|
||||
hardcode_libdir_separator=:
|
||||
;;
|
||||
solaris*)
|
||||
hardcode_libdir_flag_spec='-R$libdir'
|
||||
;;
|
||||
sunos4*)
|
||||
hardcode_libdir_flag_spec='-L$libdir'
|
||||
hardcode_direct=yes
|
||||
hardcode_minus_L=yes
|
||||
;;
|
||||
sysv4)
|
||||
case $host_vendor in
|
||||
sni)
|
||||
hardcode_direct=yes # is this really true???
|
||||
;;
|
||||
siemens)
|
||||
hardcode_direct=no
|
||||
;;
|
||||
motorola)
|
||||
hardcode_direct=no #Motorola manual says yes, but my tests say they lie
|
||||
;;
|
||||
esac
|
||||
;;
|
||||
sysv4.3*)
|
||||
;;
|
||||
sysv4*MP*)
|
||||
if test -d /usr/nec; then
|
||||
ld_shlibs=yes
|
||||
fi
|
||||
;;
|
||||
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
|
||||
;;
|
||||
sysv5* | sco3.2v5* | sco5v6*)
|
||||
hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
|
||||
hardcode_libdir_separator=':'
|
||||
;;
|
||||
uts4*)
|
||||
hardcode_libdir_flag_spec='-L$libdir'
|
||||
;;
|
||||
*)
|
||||
ld_shlibs=no
|
||||
;;
|
||||
esac
|
||||
fi
|
||||
|
||||
# Check dynamic linker characteristics
|
||||
# Code taken from libtool.m4's AC_LIBTOOL_SYS_DYNAMIC_LINKER.
|
||||
libname_spec='lib$name'
|
||||
case "$host_os" in
|
||||
aix3*)
|
||||
;;
|
||||
aix4* | aix5*)
|
||||
;;
|
||||
amigaos*)
|
||||
;;
|
||||
beos*)
|
||||
;;
|
||||
bsdi[45]*)
|
||||
;;
|
||||
cygwin* | mingw* | pw32*)
|
||||
shrext=.dll
|
||||
;;
|
||||
darwin* | rhapsody*)
|
||||
shrext=.dylib
|
||||
;;
|
||||
dgux*)
|
||||
;;
|
||||
freebsd1*)
|
||||
;;
|
||||
kfreebsd*-gnu)
|
||||
;;
|
||||
freebsd* | dragonfly*)
|
||||
;;
|
||||
gnu*)
|
||||
;;
|
||||
hpux9* | hpux10* | hpux11*)
|
||||
case $host_cpu in
|
||||
ia64*)
|
||||
shrext=.so
|
||||
;;
|
||||
hppa*64*)
|
||||
shrext=.sl
|
||||
;;
|
||||
*)
|
||||
shrext=.sl
|
||||
;;
|
||||
esac
|
||||
;;
|
||||
interix3*)
|
||||
;;
|
||||
irix5* | irix6* | nonstopux*)
|
||||
case "$host_os" in
|
||||
irix5* | nonstopux*)
|
||||
libsuff= shlibsuff=
|
||||
;;
|
||||
*)
|
||||
case $LD in
|
||||
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") libsuff= shlibsuff= ;;
|
||||
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") libsuff=32 shlibsuff=N32 ;;
|
||||
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") libsuff=64 shlibsuff=64 ;;
|
||||
*) libsuff= shlibsuff= ;;
|
||||
esac
|
||||
;;
|
||||
esac
|
||||
;;
|
||||
linux*oldld* | linux*aout* | linux*coff*)
|
||||
;;
|
||||
linux*)
|
||||
;;
|
||||
knetbsd*-gnu)
|
||||
;;
|
||||
netbsd*)
|
||||
;;
|
||||
newsos6)
|
||||
;;
|
||||
nto-qnx*)
|
||||
;;
|
||||
openbsd*)
|
||||
;;
|
||||
os2*)
|
||||
libname_spec='$name'
|
||||
shrext=.dll
|
||||
;;
|
||||
osf3* | osf4* | osf5*)
|
||||
;;
|
||||
solaris*)
|
||||
;;
|
||||
sunos4*)
|
||||
;;
|
||||
sysv4 | sysv4.3*)
|
||||
;;
|
||||
sysv4*MP*)
|
||||
;;
|
||||
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
|
||||
;;
|
||||
uts4*)
|
||||
;;
|
||||
esac
|
||||
|
||||
sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
|
||||
escaped_wl=`echo "X$wl" | sed -e 's/^X//' -e "$sed_quote_subst"`
|
||||
shlibext=`echo "$shrext" | sed -e 's,^\.,,'`
|
||||
escaped_hardcode_libdir_flag_spec=`echo "X$hardcode_libdir_flag_spec" | sed -e 's/^X//' -e "$sed_quote_subst"`
|
||||
|
||||
LC_ALL=C sed -e 's/^\([a-zA-Z0-9_]*\)=/acl_cv_\1=/' <<EOF
|
||||
|
||||
# How to pass a linker flag through the compiler.
|
||||
wl="$escaped_wl"
|
||||
|
||||
# Static library suffix (normally "a").
|
||||
libext="$libext"
|
||||
|
||||
# Shared library suffix (normally "so").
|
||||
shlibext="$shlibext"
|
||||
|
||||
# Flag to hardcode \$libdir into a binary during linking.
|
||||
# This must work even if \$libdir does not exist.
|
||||
hardcode_libdir_flag_spec="$escaped_hardcode_libdir_flag_spec"
|
||||
|
||||
# Whether we need a single -rpath flag with a separated argument.
|
||||
hardcode_libdir_separator="$hardcode_libdir_separator"
|
||||
|
||||
# Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
|
||||
# resulting binary.
|
||||
hardcode_direct="$hardcode_direct"
|
||||
|
||||
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
|
||||
# resulting binary.
|
||||
hardcode_minus_L="$hardcode_minus_L"
|
||||
|
||||
EOF
|
1608
libiconv/build-aux/config.sub
vendored
Normal file
1608
libiconv/build-aux/config.sub
vendored
Normal file
File diff suppressed because it is too large
Load Diff
130
libiconv/build-aux/install-reloc
Normal file
130
libiconv/build-aux/install-reloc
Normal file
@ -0,0 +1,130 @@
|
||||
#!/bin/sh
|
||||
# install-reloc - install a program including a relocating wrapper
|
||||
# Copyright (C) 2003, 2005 Free Software Foundation, Inc.
|
||||
# Written by Bruno Haible <bruno@clisp.org>, 2003.
|
||||
#
|
||||
# This program is free software; you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
# the Free Software Foundation; either version 2, or (at your option)
|
||||
# any later version.
|
||||
#
|
||||
# This program is distributed in the hope that it will be useful,
|
||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
# GNU General Public License for more details.
|
||||
#
|
||||
# You should have received a copy of the GNU General Public License
|
||||
# along with this program; if not, write to the Free Software Foundation,
|
||||
# Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||
|
||||
# Usage:
|
||||
# install-reloc library_path_var library_path_value prefix compile_command srcdir config_h_dir exeext install_command... destprog
|
||||
# where
|
||||
# - library_path_var is the platform dependent runtime library path variable
|
||||
# - library_path_value is a colon separated list of directories that contain
|
||||
# the libraries at installation time (use this instead of -rpath)
|
||||
# - prefix is the base directory at installation time
|
||||
# - compile_command is a C compiler compilation and linking command
|
||||
# - srcdir is the directory where to find relocwrapper.c and its dependencies
|
||||
# - builddir is the directory where to find built dependencies (namely,
|
||||
# alloca.h and stdbool.h)
|
||||
# - config_h_dir is the directory where to find config.h
|
||||
# - exeext is platform dependent suffix of executables
|
||||
# - install-command is the install command line, excluding the final destprog
|
||||
# - destprog is the destination program name
|
||||
# install-reloc renames destprog to destprog.bin and installs a relocating
|
||||
# wrapper in the place of destprog.
|
||||
|
||||
progname=$0
|
||||
|
||||
if test $# -eq 2; then
|
||||
# Get arguments from environment variables.
|
||||
library_path_var=$RELOC_LIBRARY_PATH_VAR
|
||||
library_path_value=$RELOC_LIBRARY_PATH_VALUE
|
||||
prefix=$RELOC_PREFIX
|
||||
compile_command=$RELOC_COMPILE_COMMAND
|
||||
srcdir=$RELOC_SRCDIR
|
||||
builddir=$RELOC_BUILDDIR
|
||||
config_h_dir=$RELOC_CONFIG_H_DIR
|
||||
exeext=$RELOC_EXEEXT
|
||||
install_prog=$RELOC_INSTALL_PROG # including the "-c" option
|
||||
else
|
||||
if test $# -ge 9; then
|
||||
# Get fixed position arguments.
|
||||
library_path_var=$1
|
||||
library_path_value=$2
|
||||
prefix=$3
|
||||
compile_command=$4
|
||||
srcdir=$5
|
||||
builddir=$6
|
||||
config_h_dir=$7
|
||||
exeext=$8
|
||||
install_prog=$9 # maybe not including the "-c" option
|
||||
shift
|
||||
shift
|
||||
shift
|
||||
shift
|
||||
shift
|
||||
shift
|
||||
shift
|
||||
shift
|
||||
shift
|
||||
else
|
||||
echo "Usage: $0 library_path_var library_path_value prefix compile_command srcdir builddir config_h_dir exeext install_command... destprog" 1>&2
|
||||
exit 1
|
||||
fi
|
||||
fi
|
||||
|
||||
# Get destprog, last argument.
|
||||
destprog=
|
||||
for arg
|
||||
do
|
||||
destprog=$arg
|
||||
done
|
||||
# Remove trailing $exeext, if present.
|
||||
if test -n "$exeext"; then
|
||||
sedexpr='s|'`echo "$exeext" | sed -e 's,\.,\\\.,g'`'$||'
|
||||
destprog=`echo "$destprog" | sed -e "$sedexpr"`
|
||||
fi
|
||||
|
||||
# Outputs a command and runs it.
|
||||
func_verbose ()
|
||||
{
|
||||
echo "$@"
|
||||
"$@"
|
||||
}
|
||||
|
||||
# Run install_command.
|
||||
func_verbose $install_prog "$@" || exit $?
|
||||
|
||||
# If the platform doesn't support LD_LIBRARY_PATH or similar, we cannot build
|
||||
# a wrapper.
|
||||
test -n "$library_path_var" || exit 0
|
||||
|
||||
libdirs=
|
||||
save_IFS="$IFS"; IFS=":"
|
||||
for dir in $library_path_value; do
|
||||
IFS="$save_IFS"
|
||||
if test -n "$dir"; then
|
||||
case "$libdirs" in
|
||||
*"\"$dir\""*) ;; # remove duplicate
|
||||
*) libdirs="$libdirs\"$dir\"," ;;
|
||||
esac
|
||||
fi
|
||||
done
|
||||
IFS="$save_IFS"
|
||||
# If there are no library directories to add at runtime, we don't need a
|
||||
# wrapper.
|
||||
test -n "$libdirs" || exit 0
|
||||
|
||||
# Compile wrapper.
|
||||
installdir=`echo "$destprog" | sed -e 's,/[^/]*$,,'`
|
||||
func_verbose $compile_command -I"$builddir" -I"$srcdir" -I"$config_h_dir" -DHAVE_CONFIG_H -DNO_XMALLOC -D"INSTALLPREFIX=\"$prefix\"" -D"INSTALLDIR=\"$installdir\"" -D"LIBPATHVAR=\"$library_path_var\"" -D"LIBDIRS=$libdirs" -D"EXEEXT=\"$exeext\"" "$srcdir"/relocwrapper.c "$srcdir"/progname.c "$srcdir"/progreloc.c "$srcdir"/xreadlink.c "$srcdir"/readlink.c "$srcdir"/canonicalize.c "$srcdir"/allocsa.c "$srcdir"/relocatable.c "$srcdir"/setenv.c "$srcdir"/strerror.c -o "$destprog.wrapper$exeext" || exit $?
|
||||
|
||||
# Rename $destprog.wrapper -> $destprog -> $destprog.bin.
|
||||
ln -f "$destprog$exeext" "$destprog.bin$exeext" \
|
||||
|| { rm -f "$destprog.bin$exeext" && cp -p "$destprog$exeext" "$destprog.bin$exeext"; } \
|
||||
|| exit 1
|
||||
mv "$destprog.wrapper$exeext" "$destprog$exeext" || exit 1
|
||||
|
||||
exit 0
|
323
libiconv/build-aux/install-sh
Normal file
323
libiconv/build-aux/install-sh
Normal file
@ -0,0 +1,323 @@
|
||||
#!/bin/sh
|
||||
# install - install a program, script, or datafile
|
||||
|
||||
scriptversion=2005-02-02.21
|
||||
|
||||
# This originates from X11R5 (mit/util/scripts/install.sh), which was
|
||||
# later released in X11R6 (xc/config/util/install.sh) with the
|
||||
# following copyright and license.
|
||||
#
|
||||
# Copyright (C) 1994 X Consortium
|
||||
#
|
||||
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
# of this software and associated documentation files (the "Software"), to
|
||||
# deal in the Software without restriction, including without limitation the
|
||||
# rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
|
||||
# sell copies of the Software, and to permit persons to whom the Software is
|
||||
# furnished to do so, subject to the following conditions:
|
||||
#
|
||||
# The above copyright notice and this permission notice shall be included in
|
||||
# all copies or substantial portions of the Software.
|
||||
#
|
||||
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
# X CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
|
||||
# AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNEC-
|
||||
# TION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
#
|
||||
# Except as contained in this notice, the name of the X Consortium shall not
|
||||
# be used in advertising or otherwise to promote the sale, use or other deal-
|
||||
# ings in this Software without prior written authorization from the X Consor-
|
||||
# tium.
|
||||
#
|
||||
#
|
||||
# FSF changes to this file are in the public domain.
|
||||
#
|
||||
# Calling this script install-sh is preferred over install.sh, to prevent
|
||||
# `make' implicit rules from creating a file called install from it
|
||||
# when there is no Makefile.
|
||||
#
|
||||
# This script is compatible with the BSD install script, but was written
|
||||
# from scratch. It can only install one file at a time, a restriction
|
||||
# shared with many OS's install programs.
|
||||
|
||||
# set DOITPROG to echo to test this script
|
||||
|
||||
# Don't use :- since 4.3BSD and earlier shells don't like it.
|
||||
doit="${DOITPROG-}"
|
||||
|
||||
# put in absolute paths if you don't have them in your path; or use env. vars.
|
||||
|
||||
mvprog="${MVPROG-mv}"
|
||||
cpprog="${CPPROG-cp}"
|
||||
chmodprog="${CHMODPROG-chmod}"
|
||||
chownprog="${CHOWNPROG-chown}"
|
||||
chgrpprog="${CHGRPPROG-chgrp}"
|
||||
stripprog="${STRIPPROG-strip}"
|
||||
rmprog="${RMPROG-rm}"
|
||||
mkdirprog="${MKDIRPROG-mkdir}"
|
||||
|
||||
chmodcmd="$chmodprog 0755"
|
||||
chowncmd=
|
||||
chgrpcmd=
|
||||
stripcmd=
|
||||
rmcmd="$rmprog -f"
|
||||
mvcmd="$mvprog"
|
||||
src=
|
||||
dst=
|
||||
dir_arg=
|
||||
dstarg=
|
||||
no_target_directory=
|
||||
|
||||
usage="Usage: $0 [OPTION]... [-T] SRCFILE DSTFILE
|
||||
or: $0 [OPTION]... SRCFILES... DIRECTORY
|
||||
or: $0 [OPTION]... -t DIRECTORY SRCFILES...
|
||||
or: $0 [OPTION]... -d DIRECTORIES...
|
||||
|
||||
In the 1st form, copy SRCFILE to DSTFILE.
|
||||
In the 2nd and 3rd, copy all SRCFILES to DIRECTORY.
|
||||
In the 4th, create DIRECTORIES.
|
||||
|
||||
Options:
|
||||
-c (ignored)
|
||||
-d create directories instead of installing files.
|
||||
-g GROUP $chgrpprog installed files to GROUP.
|
||||
-m MODE $chmodprog installed files to MODE.
|
||||
-o USER $chownprog installed files to USER.
|
||||
-s $stripprog installed files.
|
||||
-t DIRECTORY install into DIRECTORY.
|
||||
-T report an error if DSTFILE is a directory.
|
||||
--help display this help and exit.
|
||||
--version display version info and exit.
|
||||
|
||||
Environment variables override the default commands:
|
||||
CHGRPPROG CHMODPROG CHOWNPROG CPPROG MKDIRPROG MVPROG RMPROG STRIPPROG
|
||||
"
|
||||
|
||||
while test -n "$1"; do
|
||||
case $1 in
|
||||
-c) shift
|
||||
continue;;
|
||||
|
||||
-d) dir_arg=true
|
||||
shift
|
||||
continue;;
|
||||
|
||||
-g) chgrpcmd="$chgrpprog $2"
|
||||
shift
|
||||
shift
|
||||
continue;;
|
||||
|
||||
--help) echo "$usage"; exit $?;;
|
||||
|
||||
-m) chmodcmd="$chmodprog $2"
|
||||
shift
|
||||
shift
|
||||
continue;;
|
||||
|
||||
-o) chowncmd="$chownprog $2"
|
||||
shift
|
||||
shift
|
||||
continue;;
|
||||
|
||||
-s) stripcmd=$stripprog
|
||||
shift
|
||||
continue;;
|
||||
|
||||
-t) dstarg=$2
|
||||
shift
|
||||
shift
|
||||
continue;;
|
||||
|
||||
-T) no_target_directory=true
|
||||
shift
|
||||
continue;;
|
||||
|
||||
--version) echo "$0 $scriptversion"; exit $?;;
|
||||
|
||||
*) # When -d is used, all remaining arguments are directories to create.
|
||||
# When -t is used, the destination is already specified.
|
||||
test -n "$dir_arg$dstarg" && break
|
||||
# Otherwise, the last argument is the destination. Remove it from $@.
|
||||
for arg
|
||||
do
|
||||
if test -n "$dstarg"; then
|
||||
# $@ is not empty: it contains at least $arg.
|
||||
set fnord "$@" "$dstarg"
|
||||
shift # fnord
|
||||
fi
|
||||
shift # arg
|
||||
dstarg=$arg
|
||||
done
|
||||
break;;
|
||||
esac
|
||||
done
|
||||
|
||||
if test -z "$1"; then
|
||||
if test -z "$dir_arg"; then
|
||||
echo "$0: no input file specified." >&2
|
||||
exit 1
|
||||
fi
|
||||
# It's OK to call `install-sh -d' without argument.
|
||||
# This can happen when creating conditional directories.
|
||||
exit 0
|
||||
fi
|
||||
|
||||
for src
|
||||
do
|
||||
# Protect names starting with `-'.
|
||||
case $src in
|
||||
-*) src=./$src ;;
|
||||
esac
|
||||
|
||||
if test -n "$dir_arg"; then
|
||||
dst=$src
|
||||
src=
|
||||
|
||||
if test -d "$dst"; then
|
||||
mkdircmd=:
|
||||
chmodcmd=
|
||||
else
|
||||
mkdircmd=$mkdirprog
|
||||
fi
|
||||
else
|
||||
# Waiting for this to be detected by the "$cpprog $src $dsttmp" command
|
||||
# might cause directories to be created, which would be especially bad
|
||||
# if $src (and thus $dsttmp) contains '*'.
|
||||
if test ! -f "$src" && test ! -d "$src"; then
|
||||
echo "$0: $src does not exist." >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if test -z "$dstarg"; then
|
||||
echo "$0: no destination specified." >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
dst=$dstarg
|
||||
# Protect names starting with `-'.
|
||||
case $dst in
|
||||
-*) dst=./$dst ;;
|
||||
esac
|
||||
|
||||
# If destination is a directory, append the input filename; won't work
|
||||
# if double slashes aren't ignored.
|
||||
if test -d "$dst"; then
|
||||
if test -n "$no_target_directory"; then
|
||||
echo "$0: $dstarg: Is a directory" >&2
|
||||
exit 1
|
||||
fi
|
||||
dst=$dst/`basename "$src"`
|
||||
fi
|
||||
fi
|
||||
|
||||
# This sed command emulates the dirname command.
|
||||
dstdir=`echo "$dst" | sed -e 's,/*$,,;s,[^/]*$,,;s,/*$,,;s,^$,.,'`
|
||||
|
||||
# Make sure that the destination directory exists.
|
||||
|
||||
# Skip lots of stat calls in the usual case.
|
||||
if test ! -d "$dstdir"; then
|
||||
defaultIFS='
|
||||
'
|
||||
IFS="${IFS-$defaultIFS}"
|
||||
|
||||
oIFS=$IFS
|
||||
# Some sh's can't handle IFS=/ for some reason.
|
||||
IFS='%'
|
||||
set x `echo "$dstdir" | sed -e 's@/@%@g' -e 's@^%@/@'`
|
||||
shift
|
||||
IFS=$oIFS
|
||||
|
||||
pathcomp=
|
||||
|
||||
while test $# -ne 0 ; do
|
||||
pathcomp=$pathcomp$1
|
||||
shift
|
||||
if test ! -d "$pathcomp"; then
|
||||
$mkdirprog "$pathcomp"
|
||||
# mkdir can fail with a `File exist' error in case several
|
||||
# install-sh are creating the directory concurrently. This
|
||||
# is OK.
|
||||
test -d "$pathcomp" || exit
|
||||
fi
|
||||
pathcomp=$pathcomp/
|
||||
done
|
||||
fi
|
||||
|
||||
if test -n "$dir_arg"; then
|
||||
$doit $mkdircmd "$dst" \
|
||||
&& { test -z "$chowncmd" || $doit $chowncmd "$dst"; } \
|
||||
&& { test -z "$chgrpcmd" || $doit $chgrpcmd "$dst"; } \
|
||||
&& { test -z "$stripcmd" || $doit $stripcmd "$dst"; } \
|
||||
&& { test -z "$chmodcmd" || $doit $chmodcmd "$dst"; }
|
||||
|
||||
else
|
||||
dstfile=`basename "$dst"`
|
||||
|
||||
# Make a couple of temp file names in the proper directory.
|
||||
dsttmp=$dstdir/_inst.$$_
|
||||
rmtmp=$dstdir/_rm.$$_
|
||||
|
||||
# Trap to clean up those temp files at exit.
|
||||
trap 'ret=$?; rm -f "$dsttmp" "$rmtmp" && exit $ret' 0
|
||||
trap '(exit $?); exit' 1 2 13 15
|
||||
|
||||
# Copy the file name to the temp name.
|
||||
$doit $cpprog "$src" "$dsttmp" &&
|
||||
|
||||
# and set any options; do chmod last to preserve setuid bits.
|
||||
#
|
||||
# If any of these fail, we abort the whole thing. If we want to
|
||||
# ignore errors from any of these, just make sure not to ignore
|
||||
# errors from the above "$doit $cpprog $src $dsttmp" command.
|
||||
#
|
||||
{ test -z "$chowncmd" || $doit $chowncmd "$dsttmp"; } \
|
||||
&& { test -z "$chgrpcmd" || $doit $chgrpcmd "$dsttmp"; } \
|
||||
&& { test -z "$stripcmd" || $doit $stripcmd "$dsttmp"; } \
|
||||
&& { test -z "$chmodcmd" || $doit $chmodcmd "$dsttmp"; } &&
|
||||
|
||||
# Now rename the file to the real destination.
|
||||
{ $doit $mvcmd -f "$dsttmp" "$dstdir/$dstfile" 2>/dev/null \
|
||||
|| {
|
||||
# The rename failed, perhaps because mv can't rename something else
|
||||
# to itself, or perhaps because mv is so ancient that it does not
|
||||
# support -f.
|
||||
|
||||
# Now remove or move aside any old file at destination location.
|
||||
# We try this two ways since rm can't unlink itself on some
|
||||
# systems and the destination file might be busy for other
|
||||
# reasons. In this case, the final cleanup might fail but the new
|
||||
# file should still install successfully.
|
||||
{
|
||||
if test -f "$dstdir/$dstfile"; then
|
||||
$doit $rmcmd -f "$dstdir/$dstfile" 2>/dev/null \
|
||||
|| $doit $mvcmd -f "$dstdir/$dstfile" "$rmtmp" 2>/dev/null \
|
||||
|| {
|
||||
echo "$0: cannot unlink or rename $dstdir/$dstfile" >&2
|
||||
(exit 1); exit 1
|
||||
}
|
||||
else
|
||||
:
|
||||
fi
|
||||
} &&
|
||||
|
||||
# Now rename the file to the real destination.
|
||||
$doit $mvcmd "$dsttmp" "$dstdir/$dstfile"
|
||||
}
|
||||
}
|
||||
fi || { (exit 1); exit 1; }
|
||||
done
|
||||
|
||||
# The final little trick to "correctly" pass the exit status to the exit trap.
|
||||
{
|
||||
(exit 0); exit 0
|
||||
}
|
||||
|
||||
# Local variables:
|
||||
# eval: (add-hook 'write-file-hooks 'time-stamp)
|
||||
# time-stamp-start: "scriptversion="
|
||||
# time-stamp-format: "%:y-%02m-%02d.%02H"
|
||||
# time-stamp-end: "$"
|
||||
# End:
|
6867
libiconv/build-aux/ltmain.sh
Normal file
6867
libiconv/build-aux/ltmain.sh
Normal file
File diff suppressed because it is too large
Load Diff
356
libiconv/build-aux/missing
Normal file
356
libiconv/build-aux/missing
Normal file
@ -0,0 +1,356 @@
|
||||
#! /bin/sh
|
||||
# Common stub for a few missing GNU programs while installing.
|
||||
|
||||
scriptversion=2005-02-08.22
|
||||
|
||||
# Copyright (C) 1996, 1997, 1999, 2000, 2002, 2003, 2004, 2005
|
||||
# Free Software Foundation, Inc.
|
||||
# Originally by Fran,cois Pinard <pinard@iro.umontreal.ca>, 1996.
|
||||
|
||||
# This program is free software; you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
# the Free Software Foundation; either version 2, or (at your option)
|
||||
# any later version.
|
||||
|
||||
# This program is distributed in the hope that it will be useful,
|
||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
# GNU General Public License for more details.
|
||||
|
||||
# You should have received a copy of the GNU General Public License
|
||||
# along with this program; if not, write to the Free Software Foundation,
|
||||
# Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||
|
||||
# As a special exception to the GNU General Public License, if you
|
||||
# distribute this file as part of a program that contains a
|
||||
# configuration script generated by Autoconf, you may include it under
|
||||
# the same distribution terms that you use for the rest of that program.
|
||||
|
||||
if test $# -eq 0; then
|
||||
echo 1>&2 "Try \`$0 --help' for more information"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
run=:
|
||||
|
||||
# In the cases where this matters, `missing' is being run in the
|
||||
# srcdir already.
|
||||
if test -f configure.ac; then
|
||||
configure_ac=configure.ac
|
||||
else
|
||||
configure_ac=configure.in
|
||||
fi
|
||||
|
||||
msg="missing on your system"
|
||||
|
||||
case "$1" in
|
||||
--run)
|
||||
# Try to run requested program, and just exit if it succeeds.
|
||||
run=
|
||||
shift
|
||||
"$@" && exit 0
|
||||
# Exit code 63 means version mismatch. This often happens
|
||||
# when the user try to use an ancient version of a tool on
|
||||
# a file that requires a minimum version. In this case we
|
||||
# we should proceed has if the program had been absent, or
|
||||
# if --run hadn't been passed.
|
||||
if test $? = 63; then
|
||||
run=:
|
||||
msg="probably too old"
|
||||
fi
|
||||
;;
|
||||
|
||||
-h|--h|--he|--hel|--help)
|
||||
echo "\
|
||||
$0 [OPTION]... PROGRAM [ARGUMENT]...
|
||||
|
||||
Handle \`PROGRAM [ARGUMENT]...' for when PROGRAM is missing, or return an
|
||||
error status if there is no known handling for PROGRAM.
|
||||
|
||||
Options:
|
||||
-h, --help display this help and exit
|
||||
-v, --version output version information and exit
|
||||
--run try to run the given command, and emulate it if it fails
|
||||
|
||||
Supported PROGRAM values:
|
||||
aclocal touch file \`aclocal.m4'
|
||||
autoconf touch file \`configure'
|
||||
autoheader touch file \`config.h.in'
|
||||
automake touch all \`Makefile.in' files
|
||||
bison create \`y.tab.[ch]', if possible, from existing .[ch]
|
||||
flex create \`lex.yy.c', if possible, from existing .c
|
||||
help2man touch the output file
|
||||
lex create \`lex.yy.c', if possible, from existing .c
|
||||
makeinfo touch the output file
|
||||
tar try tar, gnutar, gtar, then tar without non-portable flags
|
||||
yacc create \`y.tab.[ch]', if possible, from existing .[ch]
|
||||
|
||||
Send bug reports to <bug-automake@gnu.org>."
|
||||
exit $?
|
||||
;;
|
||||
|
||||
-v|--v|--ve|--ver|--vers|--versi|--versio|--version)
|
||||
echo "missing $scriptversion (GNU Automake)"
|
||||
exit $?
|
||||
;;
|
||||
|
||||
-*)
|
||||
echo 1>&2 "$0: Unknown \`$1' option"
|
||||
echo 1>&2 "Try \`$0 --help' for more information"
|
||||
exit 1
|
||||
;;
|
||||
|
||||
esac
|
||||
|
||||
# Now exit if we have it, but it failed. Also exit now if we
|
||||
# don't have it and --version was passed (most likely to detect
|
||||
# the program).
|
||||
case "$1" in
|
||||
lex|yacc)
|
||||
# Not GNU programs, they don't have --version.
|
||||
;;
|
||||
|
||||
tar)
|
||||
if test -n "$run"; then
|
||||
echo 1>&2 "ERROR: \`tar' requires --run"
|
||||
exit 1
|
||||
elif test "x$2" = "x--version" || test "x$2" = "x--help"; then
|
||||
exit 1
|
||||
fi
|
||||
;;
|
||||
|
||||
*)
|
||||
if test -z "$run" && ($1 --version) > /dev/null 2>&1; then
|
||||
# We have it, but it failed.
|
||||
exit 1
|
||||
elif test "x$2" = "x--version" || test "x$2" = "x--help"; then
|
||||
# Could not run --version or --help. This is probably someone
|
||||
# running `$TOOL --version' or `$TOOL --help' to check whether
|
||||
# $TOOL exists and not knowing $TOOL uses missing.
|
||||
exit 1
|
||||
fi
|
||||
;;
|
||||
esac
|
||||
|
||||
# If it does not exist, or fails to run (possibly an outdated version),
|
||||
# try to emulate it.
|
||||
case "$1" in
|
||||
aclocal*)
|
||||
echo 1>&2 "\
|
||||
WARNING: \`$1' is $msg. You should only need it if
|
||||
you modified \`acinclude.m4' or \`${configure_ac}'. You might want
|
||||
to install the \`Automake' and \`Perl' packages. Grab them from
|
||||
any GNU archive site."
|
||||
touch aclocal.m4
|
||||
;;
|
||||
|
||||
autoconf)
|
||||
echo 1>&2 "\
|
||||
WARNING: \`$1' is $msg. You should only need it if
|
||||
you modified \`${configure_ac}'. You might want to install the
|
||||
\`Autoconf' and \`GNU m4' packages. Grab them from any GNU
|
||||
archive site."
|
||||
touch configure
|
||||
;;
|
||||
|
||||
autoheader)
|
||||
echo 1>&2 "\
|
||||
WARNING: \`$1' is $msg. You should only need it if
|
||||
you modified \`acconfig.h' or \`${configure_ac}'. You might want
|
||||
to install the \`Autoconf' and \`GNU m4' packages. Grab them
|
||||
from any GNU archive site."
|
||||
files=`sed -n 's/^[ ]*A[CM]_CONFIG_HEADER(\([^)]*\)).*/\1/p' ${configure_ac}`
|
||||
test -z "$files" && files="config.h"
|
||||
touch_files=
|
||||
for f in $files; do
|
||||
case "$f" in
|
||||
*:*) touch_files="$touch_files "`echo "$f" |
|
||||
sed -e 's/^[^:]*://' -e 's/:.*//'`;;
|
||||
*) touch_files="$touch_files $f.in";;
|
||||
esac
|
||||
done
|
||||
touch $touch_files
|
||||
;;
|
||||
|
||||
automake*)
|
||||
echo 1>&2 "\
|
||||
WARNING: \`$1' is $msg. You should only need it if
|
||||
you modified \`Makefile.am', \`acinclude.m4' or \`${configure_ac}'.
|
||||
You might want to install the \`Automake' and \`Perl' packages.
|
||||
Grab them from any GNU archive site."
|
||||
find . -type f -name Makefile.am -print |
|
||||
sed 's/\.am$/.in/' |
|
||||
while read f; do touch "$f"; done
|
||||
;;
|
||||
|
||||
autom4te)
|
||||
echo 1>&2 "\
|
||||
WARNING: \`$1' is needed, but is $msg.
|
||||
You might have modified some files without having the
|
||||
proper tools for further handling them.
|
||||
You can get \`$1' as part of \`Autoconf' from any GNU
|
||||
archive site."
|
||||
|
||||
file=`echo "$*" | sed -n 's/.*--output[ =]*\([^ ]*\).*/\1/p'`
|
||||
test -z "$file" && file=`echo "$*" | sed -n 's/.*-o[ ]*\([^ ]*\).*/\1/p'`
|
||||
if test -f "$file"; then
|
||||
touch $file
|
||||
else
|
||||
test -z "$file" || exec >$file
|
||||
echo "#! /bin/sh"
|
||||
echo "# Created by GNU Automake missing as a replacement of"
|
||||
echo "# $ $@"
|
||||
echo "exit 0"
|
||||
chmod +x $file
|
||||
exit 1
|
||||
fi
|
||||
;;
|
||||
|
||||
bison|yacc)
|
||||
echo 1>&2 "\
|
||||
WARNING: \`$1' $msg. You should only need it if
|
||||
you modified a \`.y' file. You may need the \`Bison' package
|
||||
in order for those modifications to take effect. You can get
|
||||
\`Bison' from any GNU archive site."
|
||||
rm -f y.tab.c y.tab.h
|
||||
if [ $# -ne 1 ]; then
|
||||
eval LASTARG="\${$#}"
|
||||
case "$LASTARG" in
|
||||
*.y)
|
||||
SRCFILE=`echo "$LASTARG" | sed 's/y$/c/'`
|
||||
if [ -f "$SRCFILE" ]; then
|
||||
cp "$SRCFILE" y.tab.c
|
||||
fi
|
||||
SRCFILE=`echo "$LASTARG" | sed 's/y$/h/'`
|
||||
if [ -f "$SRCFILE" ]; then
|
||||
cp "$SRCFILE" y.tab.h
|
||||
fi
|
||||
;;
|
||||
esac
|
||||
fi
|
||||
if [ ! -f y.tab.h ]; then
|
||||
echo >y.tab.h
|
||||
fi
|
||||
if [ ! -f y.tab.c ]; then
|
||||
echo 'main() { return 0; }' >y.tab.c
|
||||
fi
|
||||
;;
|
||||
|
||||
lex|flex)
|
||||
echo 1>&2 "\
|
||||
WARNING: \`$1' is $msg. You should only need it if
|
||||
you modified a \`.l' file. You may need the \`Flex' package
|
||||
in order for those modifications to take effect. You can get
|
||||
\`Flex' from any GNU archive site."
|
||||
rm -f lex.yy.c
|
||||
if [ $# -ne 1 ]; then
|
||||
eval LASTARG="\${$#}"
|
||||
case "$LASTARG" in
|
||||
*.l)
|
||||
SRCFILE=`echo "$LASTARG" | sed 's/l$/c/'`
|
||||
if [ -f "$SRCFILE" ]; then
|
||||
cp "$SRCFILE" lex.yy.c
|
||||
fi
|
||||
;;
|
||||
esac
|
||||
fi
|
||||
if [ ! -f lex.yy.c ]; then
|
||||
echo 'main() { return 0; }' >lex.yy.c
|
||||
fi
|
||||
;;
|
||||
|
||||
help2man)
|
||||
echo 1>&2 "\
|
||||
WARNING: \`$1' is $msg. You should only need it if
|
||||
you modified a dependency of a manual page. You may need the
|
||||
\`Help2man' package in order for those modifications to take
|
||||
effect. You can get \`Help2man' from any GNU archive site."
|
||||
|
||||
file=`echo "$*" | sed -n 's/.*-o \([^ ]*\).*/\1/p'`
|
||||
if test -z "$file"; then
|
||||
file=`echo "$*" | sed -n 's/.*--output=\([^ ]*\).*/\1/p'`
|
||||
fi
|
||||
if [ -f "$file" ]; then
|
||||
touch $file
|
||||
else
|
||||
test -z "$file" || exec >$file
|
||||
echo ".ab help2man is required to generate this page"
|
||||
exit 1
|
||||
fi
|
||||
;;
|
||||
|
||||
makeinfo)
|
||||
echo 1>&2 "\
|
||||
WARNING: \`$1' is $msg. You should only need it if
|
||||
you modified a \`.texi' or \`.texinfo' file, or any other file
|
||||
indirectly affecting the aspect of the manual. The spurious
|
||||
call might also be the consequence of using a buggy \`make' (AIX,
|
||||
DU, IRIX). You might want to install the \`Texinfo' package or
|
||||
the \`GNU make' package. Grab either from any GNU archive site."
|
||||
# The file to touch is that specified with -o ...
|
||||
file=`echo "$*" | sed -n 's/.*-o \([^ ]*\).*/\1/p'`
|
||||
if test -z "$file"; then
|
||||
# ... or it is the one specified with @setfilename ...
|
||||
infile=`echo "$*" | sed 's/.* \([^ ]*\) *$/\1/'`
|
||||
file=`sed -n '/^@setfilename/ { s/.* \([^ ]*\) *$/\1/; p; q; }' $infile`
|
||||
# ... or it is derived from the source name (dir/f.texi becomes f.info)
|
||||
test -z "$file" && file=`echo "$infile" | sed 's,.*/,,;s,.[^.]*$,,'`.info
|
||||
fi
|
||||
touch $file
|
||||
;;
|
||||
|
||||
tar)
|
||||
shift
|
||||
|
||||
# We have already tried tar in the generic part.
|
||||
# Look for gnutar/gtar before invocation to avoid ugly error
|
||||
# messages.
|
||||
if (gnutar --version > /dev/null 2>&1); then
|
||||
gnutar "$@" && exit 0
|
||||
fi
|
||||
if (gtar --version > /dev/null 2>&1); then
|
||||
gtar "$@" && exit 0
|
||||
fi
|
||||
firstarg="$1"
|
||||
if shift; then
|
||||
case "$firstarg" in
|
||||
*o*)
|
||||
firstarg=`echo "$firstarg" | sed s/o//`
|
||||
tar "$firstarg" "$@" && exit 0
|
||||
;;
|
||||
esac
|
||||
case "$firstarg" in
|
||||
*h*)
|
||||
firstarg=`echo "$firstarg" | sed s/h//`
|
||||
tar "$firstarg" "$@" && exit 0
|
||||
;;
|
||||
esac
|
||||
fi
|
||||
|
||||
echo 1>&2 "\
|
||||
WARNING: I can't seem to be able to run \`tar' with the given arguments.
|
||||
You may want to install GNU tar or Free paxutils, or check the
|
||||
command line arguments."
|
||||
exit 1
|
||||
;;
|
||||
|
||||
*)
|
||||
echo 1>&2 "\
|
||||
WARNING: \`$1' is needed, and is $msg.
|
||||
You might have modified some files without having the
|
||||
proper tools for further handling them. Check the \`README' file,
|
||||
it often tells you about the needed prerequisites for installing
|
||||
this package. You may also peek at any GNU archive site, in case
|
||||
some other package would contain this missing \`$1' program."
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
|
||||
exit 0
|
||||
|
||||
# Local variables:
|
||||
# eval: (add-hook 'write-file-hooks 'time-stamp)
|
||||
# time-stamp-start: "scriptversion="
|
||||
# time-stamp-format: "%:y-%02m-%02d.%02H"
|
||||
# time-stamp-end: "$"
|
||||
# End:
|
150
libiconv/build-aux/mkinstalldirs
Normal file
150
libiconv/build-aux/mkinstalldirs
Normal file
@ -0,0 +1,150 @@
|
||||
#! /bin/sh
|
||||
# mkinstalldirs --- make directory hierarchy
|
||||
|
||||
scriptversion=2005-02-02.21
|
||||
|
||||
# Original author: Noah Friedman <friedman@prep.ai.mit.edu>
|
||||
# Created: 1993-05-16
|
||||
# Public domain.
|
||||
#
|
||||
# This file is maintained in Automake, please report
|
||||
# bugs to <bug-automake@gnu.org> or send patches to
|
||||
# <automake-patches@gnu.org>.
|
||||
|
||||
errstatus=0
|
||||
dirmode=""
|
||||
|
||||
usage="\
|
||||
Usage: mkinstalldirs [-h] [--help] [--version] [-m MODE] DIR ...
|
||||
|
||||
Create each directory DIR (with mode MODE, if specified), including all
|
||||
leading file name components.
|
||||
|
||||
Report bugs to <bug-automake@gnu.org>."
|
||||
|
||||
# process command line arguments
|
||||
while test $# -gt 0 ; do
|
||||
case $1 in
|
||||
-h | --help | --h*) # -h for help
|
||||
echo "$usage"
|
||||
exit $?
|
||||
;;
|
||||
-m) # -m PERM arg
|
||||
shift
|
||||
test $# -eq 0 && { echo "$usage" 1>&2; exit 1; }
|
||||
dirmode=$1
|
||||
shift
|
||||
;;
|
||||
--version)
|
||||
echo "$0 $scriptversion"
|
||||
exit $?
|
||||
;;
|
||||
--) # stop option processing
|
||||
shift
|
||||
break
|
||||
;;
|
||||
-*) # unknown option
|
||||
echo "$usage" 1>&2
|
||||
exit 1
|
||||
;;
|
||||
*) # first non-opt arg
|
||||
break
|
||||
;;
|
||||
esac
|
||||
done
|
||||
|
||||
for file
|
||||
do
|
||||
if test -d "$file"; then
|
||||
shift
|
||||
else
|
||||
break
|
||||
fi
|
||||
done
|
||||
|
||||
case $# in
|
||||
0) exit 0 ;;
|
||||
esac
|
||||
|
||||
# Solaris 8's mkdir -p isn't thread-safe. If you mkdir -p a/b and
|
||||
# mkdir -p a/c at the same time, both will detect that a is missing,
|
||||
# one will create a, then the other will try to create a and die with
|
||||
# a "File exists" error. This is a problem when calling mkinstalldirs
|
||||
# from a parallel make. We use --version in the probe to restrict
|
||||
# ourselves to GNU mkdir, which is thread-safe.
|
||||
case $dirmode in
|
||||
'')
|
||||
if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
|
||||
echo "mkdir -p -- $*"
|
||||
exec mkdir -p -- "$@"
|
||||
else
|
||||
# On NextStep and OpenStep, the `mkdir' command does not
|
||||
# recognize any option. It will interpret all options as
|
||||
# directories to create, and then abort because `.' already
|
||||
# exists.
|
||||
test -d ./-p && rmdir ./-p
|
||||
test -d ./--version && rmdir ./--version
|
||||
fi
|
||||
;;
|
||||
*)
|
||||
if mkdir -m "$dirmode" -p --version . >/dev/null 2>&1 &&
|
||||
test ! -d ./--version; then
|
||||
echo "mkdir -m $dirmode -p -- $*"
|
||||
exec mkdir -m "$dirmode" -p -- "$@"
|
||||
else
|
||||
# Clean up after NextStep and OpenStep mkdir.
|
||||
for d in ./-m ./-p ./--version "./$dirmode";
|
||||
do
|
||||
test -d $d && rmdir $d
|
||||
done
|
||||
fi
|
||||
;;
|
||||
esac
|
||||
|
||||
for file
|
||||
do
|
||||
set fnord `echo ":$file" | sed -ne 's/^:\//#/;s/^://;s/\// /g;s/^#/\//;p'`
|
||||
shift
|
||||
|
||||
pathcomp=
|
||||
for d
|
||||
do
|
||||
pathcomp="$pathcomp$d"
|
||||
case $pathcomp in
|
||||
-*) pathcomp=./$pathcomp ;;
|
||||
esac
|
||||
|
||||
if test ! -d "$pathcomp"; then
|
||||
echo "mkdir $pathcomp"
|
||||
|
||||
mkdir "$pathcomp" || lasterr=$?
|
||||
|
||||
if test ! -d "$pathcomp"; then
|
||||
errstatus=$lasterr
|
||||
else
|
||||
if test ! -z "$dirmode"; then
|
||||
echo "chmod $dirmode $pathcomp"
|
||||
lasterr=""
|
||||
chmod "$dirmode" "$pathcomp" || lasterr=$?
|
||||
|
||||
if test ! -z "$lasterr"; then
|
||||
errstatus=$lasterr
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
|
||||
pathcomp="$pathcomp/"
|
||||
done
|
||||
done
|
||||
|
||||
exit $errstatus
|
||||
|
||||
# Local Variables:
|
||||
# mode: shell-script
|
||||
# sh-indentation: 2
|
||||
# eval: (add-hook 'write-file-hooks 'time-stamp)
|
||||
# time-stamp-start: "scriptversion="
|
||||
# time-stamp-format: "%:y-%02m-%02d.%02H"
|
||||
# time-stamp-end: "$"
|
||||
# End:
|
102
libiconv/build-aux/reloc-ldflags
Normal file
102
libiconv/build-aux/reloc-ldflags
Normal file
@ -0,0 +1,102 @@
|
||||
#! /bin/sh
|
||||
# Output a system dependent linker command for putting a relocatable library
|
||||
# search path into an executable.
|
||||
#
|
||||
# Copyright 2003 Free Software Foundation, Inc.
|
||||
# Written by Bruno Haible <bruno@clisp.org>, 2003.
|
||||
#
|
||||
# This program is free software; you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
# the Free Software Foundation; either version 2 of the License, or
|
||||
# (at your option) any later version.
|
||||
#
|
||||
# This program is distributed in the hope that it will be useful, but
|
||||
# WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
# General Public License for more details.
|
||||
#
|
||||
# You should have received a copy of the GNU General Public License
|
||||
# along with this program; if not, write to the Free Software Foundation,
|
||||
# Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||
#
|
||||
# As a special exception to the GNU General Public License, if you
|
||||
# distribute this file as part of a program that contains a
|
||||
# configuration script generated by Autoconf, you may include it under
|
||||
# the same distribution terms that you use for the rest of that program.
|
||||
#
|
||||
# The first argument passed to this file is the canonical host specification,
|
||||
# CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM
|
||||
# or
|
||||
# CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM
|
||||
# The environment variable LD should be set by the caller.
|
||||
#
|
||||
# The second argument is a colon separated list of directories that contain
|
||||
# the libraries at installation time.
|
||||
#
|
||||
# The third argument is the directory into which the executable is going to be
|
||||
# installed.
|
||||
|
||||
host="$1"
|
||||
host_cpu=`echo "$host" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
|
||||
host_vendor=`echo "$host" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
|
||||
host_os=`echo "$host" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
|
||||
|
||||
library_path_value=$2
|
||||
|
||||
installdir=$3
|
||||
|
||||
# Verify that installdir is absolute.
|
||||
case "$installdir" in
|
||||
/*) ;;
|
||||
*)
|
||||
echo "installdir is not absolute: $installdir" 1>&2
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
|
||||
case "$host_os" in
|
||||
linux*) # Supported since Linux 2.1 and glibc 2.1.
|
||||
rpath=
|
||||
save_IFS="$IFS"; IFS=":"
|
||||
for dir in $library_path_value; do
|
||||
IFS="$save_IFS"
|
||||
case "$dir" in
|
||||
/*)
|
||||
# Make dir relative to installdir. (Works only if dir is absolute.)
|
||||
idir="$installdir"
|
||||
while true; do
|
||||
dfirst=`echo "$dir" | sed -n -e 's,^//*\([^/]*\).*$,/\1,p'`
|
||||
ifirst=`echo "$idir" | sed -n -e 's,^//*\([^/]*\).*$,/\1,p'`
|
||||
if test -z "$dfirst" || test -z "$ifirst"; then
|
||||
break
|
||||
fi
|
||||
if test "$dfirst" != "$ifirst"; then
|
||||
break
|
||||
fi
|
||||
dir=`echo "$dir" | sed -e 's,^//*[^/]*,,'`
|
||||
idir=`echo "$idir" | sed -e 's,^//*[^/]*,,'`
|
||||
done
|
||||
dir="\$ORIGIN"`echo "$idir" | sed -e 's,//*[^/]*,/..,g'`"$dir"
|
||||
# Add dir to rpath.
|
||||
rpath="${rpath}${rpath:+ }$dir"
|
||||
;;
|
||||
*)
|
||||
if test -n "$dir"; then
|
||||
echo "libdir is not absolute: $dir" 1>&2
|
||||
fi
|
||||
;;
|
||||
esac
|
||||
done
|
||||
IFS="$save_IFS"
|
||||
# Output it.
|
||||
if test -n "$rpath"; then
|
||||
echo "-Wl,-rpath,$rpath"
|
||||
fi
|
||||
;;
|
||||
*)
|
||||
echo "relocation via rpath not supported on this system: $host" 1>&2
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
|
||||
exit 0
|
726
libiconv/config.h
Normal file
726
libiconv/config.h
Normal file
@ -0,0 +1,726 @@
|
||||
/* config.h. Generated from config.h.in by configure. */
|
||||
/* config.h.in. Generated from configure.ac by autoheader. */
|
||||
|
||||
/* Define to the number of bits in type 'int16_t'. */
|
||||
/* #undef BITSIZEOF_INT16_T */
|
||||
|
||||
/* Define to the number of bits in type 'int32_t'. */
|
||||
/* #undef BITSIZEOF_INT32_T */
|
||||
|
||||
/* Define to the number of bits in type 'int64_t'. */
|
||||
/* #undef BITSIZEOF_INT64_T */
|
||||
|
||||
/* Define to the number of bits in type 'int8_t'. */
|
||||
/* #undef BITSIZEOF_INT8_T */
|
||||
|
||||
/* Define to the number of bits in type 'intmax_t'. */
|
||||
/* #undef BITSIZEOF_INTMAX_T */
|
||||
|
||||
/* Define to the number of bits in type 'intptr_t'. */
|
||||
/* #undef BITSIZEOF_INTPTR_T */
|
||||
|
||||
/* Define to the number of bits in type 'int_fast16_t'. */
|
||||
/* #undef BITSIZEOF_INT_FAST16_T */
|
||||
|
||||
/* Define to the number of bits in type 'int_fast32_t'. */
|
||||
/* #undef BITSIZEOF_INT_FAST32_T */
|
||||
|
||||
/* Define to the number of bits in type 'int_fast64_t'. */
|
||||
/* #undef BITSIZEOF_INT_FAST64_T */
|
||||
|
||||
/* Define to the number of bits in type 'int_fast8_t'. */
|
||||
/* #undef BITSIZEOF_INT_FAST8_T */
|
||||
|
||||
/* Define to the number of bits in type 'int_least16_t'. */
|
||||
/* #undef BITSIZEOF_INT_LEAST16_T */
|
||||
|
||||
/* Define to the number of bits in type 'int_least32_t'. */
|
||||
/* #undef BITSIZEOF_INT_LEAST32_T */
|
||||
|
||||
/* Define to the number of bits in type 'int_least64_t'. */
|
||||
/* #undef BITSIZEOF_INT_LEAST64_T */
|
||||
|
||||
/* Define to the number of bits in type 'int_least8_t'. */
|
||||
/* #undef BITSIZEOF_INT_LEAST8_T */
|
||||
|
||||
/* Define to the number of bits in type 'long'. */
|
||||
/* #undef BITSIZEOF_LONG */
|
||||
|
||||
/* Define to the number of bits in type 'ptrdiff_t'. */
|
||||
/* #undef BITSIZEOF_PTRDIFF_T */
|
||||
|
||||
/* Define to the number of bits in type 'sig_atomic_t'. */
|
||||
/* #undef BITSIZEOF_SIG_ATOMIC_T */
|
||||
|
||||
/* Define to the number of bits in type 'size_t'. */
|
||||
/* #undef BITSIZEOF_SIZE_T */
|
||||
|
||||
/* Define to the number of bits in type 'uint16_t'. */
|
||||
/* #undef BITSIZEOF_UINT16_T */
|
||||
|
||||
/* Define to the number of bits in type 'uint32_t'. */
|
||||
/* #undef BITSIZEOF_UINT32_T */
|
||||
|
||||
/* Define to the number of bits in type 'uint64_t'. */
|
||||
/* #undef BITSIZEOF_UINT64_T */
|
||||
|
||||
/* Define to the number of bits in type 'uint8_t'. */
|
||||
/* #undef BITSIZEOF_UINT8_T */
|
||||
|
||||
/* Define to the number of bits in type 'uintmax_t'. */
|
||||
/* #undef BITSIZEOF_UINTMAX_T */
|
||||
|
||||
/* Define to the number of bits in type 'uintptr_t'. */
|
||||
/* #undef BITSIZEOF_UINTPTR_T */
|
||||
|
||||
/* Define to the number of bits in type 'uint_fast16_t'. */
|
||||
/* #undef BITSIZEOF_UINT_FAST16_T */
|
||||
|
||||
/* Define to the number of bits in type 'uint_fast32_t'. */
|
||||
/* #undef BITSIZEOF_UINT_FAST32_T */
|
||||
|
||||
/* Define to the number of bits in type 'uint_fast64_t'. */
|
||||
/* #undef BITSIZEOF_UINT_FAST64_T */
|
||||
|
||||
/* Define to the number of bits in type 'uint_fast8_t'. */
|
||||
/* #undef BITSIZEOF_UINT_FAST8_T */
|
||||
|
||||
/* Define to the number of bits in type 'uint_least16_t'. */
|
||||
/* #undef BITSIZEOF_UINT_LEAST16_T */
|
||||
|
||||
/* Define to the number of bits in type 'uint_least32_t'. */
|
||||
/* #undef BITSIZEOF_UINT_LEAST32_T */
|
||||
|
||||
/* Define to the number of bits in type 'uint_least64_t'. */
|
||||
/* #undef BITSIZEOF_UINT_LEAST64_T */
|
||||
|
||||
/* Define to the number of bits in type 'uint_least8_t'. */
|
||||
/* #undef BITSIZEOF_UINT_LEAST8_T */
|
||||
|
||||
/* Define to the number of bits in type 'unsigned_int'. */
|
||||
/* #undef BITSIZEOF_UNSIGNED_INT */
|
||||
|
||||
/* Define to the number of bits in type 'unsigned_long'. */
|
||||
/* #undef BITSIZEOF_UNSIGNED_LONG */
|
||||
|
||||
/* Define to the number of bits in type 'wchar_t'. */
|
||||
/* #undef BITSIZEOF_WCHAR_T */
|
||||
|
||||
/* Define to the number of bits in type 'wint_t'. */
|
||||
/* #undef BITSIZEOF_WINT_T */
|
||||
|
||||
/* Define to one of `_getb67', `GETB67', `getb67' for Cray-2 and Cray-YMP
|
||||
systems. This function is required for `alloca.c' support on those systems.
|
||||
*/
|
||||
/* #undef CRAY_STACKSEG_END */
|
||||
|
||||
/* Define to 1 if using `alloca.c'. */
|
||||
/* #undef C_ALLOCA */
|
||||
|
||||
/* Define as good substitute value for EILSEQ. */
|
||||
/* #undef EILSEQ */
|
||||
|
||||
/* Define to 1 to enable a few rarely used encodings. */
|
||||
#define ENABLE_EXTRA 1
|
||||
|
||||
/* Define to 1 if translation of program messages to the user's native
|
||||
language is requested. */
|
||||
/* #undef ENABLE_NLS */
|
||||
|
||||
/* Define to 1 if the package shall run at any location in the filesystem. */
|
||||
/* #undef ENABLE_RELOCATABLE */
|
||||
|
||||
/* Define this to the full path to <inttypes.h>. */
|
||||
#define FULL_PATH_INTTYPES_H </usr/include/inttypes.h>
|
||||
|
||||
/* Define this to the full path to <stdint.h>. */
|
||||
#define FULL_PATH_STDINT_H </usr/lib/gcc/i686-apple-darwin10/4.2.1/include/stdint.h>
|
||||
|
||||
/* Define to 1 if you have `alloca', as a function or macro. */
|
||||
#define HAVE_ALLOCA 1
|
||||
|
||||
/* Define to 1 if you have <alloca.h> and it should be used (not on Ultrix).
|
||||
*/
|
||||
#define HAVE_ALLOCA_H 1
|
||||
|
||||
/* Define to 1 if you have the `canonicalize_file_name' function. */
|
||||
/* #undef HAVE_CANONICALIZE_FILE_NAME */
|
||||
|
||||
/* Define to 1 if you have the MacOS X function CFLocaleCopyCurrent in the
|
||||
CoreFoundation framework. */
|
||||
#define HAVE_CFLOCALECOPYCURRENT 1
|
||||
|
||||
/* Define to 1 if you have the MacOS X function CFPreferencesCopyAppValue in
|
||||
the CoreFoundation framework. */
|
||||
#define HAVE_CFPREFERENCESCOPYAPPVALUE 1
|
||||
|
||||
/* Define if the GNU dcgettext() function is already present or preinstalled.
|
||||
*/
|
||||
/* #undef HAVE_DCGETTEXT */
|
||||
|
||||
/* Define to 1 if you have the declaration of `clearerr_unlocked', and to 0 if
|
||||
you don't. */
|
||||
#define HAVE_DECL_CLEARERR_UNLOCKED 1
|
||||
|
||||
/* Define to 1 if you have the declaration of `feof_unlocked', and to 0 if you
|
||||
don't. */
|
||||
#define HAVE_DECL_FEOF_UNLOCKED 1
|
||||
|
||||
/* Define to 1 if you have the declaration of `ferror_unlocked', and to 0 if
|
||||
you don't. */
|
||||
#define HAVE_DECL_FERROR_UNLOCKED 1
|
||||
|
||||
/* Define to 1 if you have the declaration of `fflush_unlocked', and to 0 if
|
||||
you don't. */
|
||||
#define HAVE_DECL_FFLUSH_UNLOCKED 0
|
||||
|
||||
/* Define to 1 if you have the declaration of `fgets_unlocked', and to 0 if
|
||||
you don't. */
|
||||
#define HAVE_DECL_FGETS_UNLOCKED 0
|
||||
|
||||
/* Define to 1 if you have the declaration of `fputc_unlocked', and to 0 if
|
||||
you don't. */
|
||||
#define HAVE_DECL_FPUTC_UNLOCKED 0
|
||||
|
||||
/* Define to 1 if you have the declaration of `fputs_unlocked', and to 0 if
|
||||
you don't. */
|
||||
#define HAVE_DECL_FPUTS_UNLOCKED 0
|
||||
|
||||
/* Define to 1 if you have the declaration of `fread_unlocked', and to 0 if
|
||||
you don't. */
|
||||
#define HAVE_DECL_FREAD_UNLOCKED 0
|
||||
|
||||
/* Define to 1 if you have the declaration of `fwrite_unlocked', and to 0 if
|
||||
you don't. */
|
||||
#define HAVE_DECL_FWRITE_UNLOCKED 0
|
||||
|
||||
/* Define to 1 if you have the declaration of `getchar_unlocked', and to 0 if
|
||||
you don't. */
|
||||
#define HAVE_DECL_GETCHAR_UNLOCKED 1
|
||||
|
||||
/* Define to 1 if you have the declaration of `getc_unlocked', and to 0 if you
|
||||
don't. */
|
||||
#define HAVE_DECL_GETC_UNLOCKED 1
|
||||
|
||||
/* Define to 1 if you have the declaration of `putchar_unlocked', and to 0 if
|
||||
you don't. */
|
||||
#define HAVE_DECL_PUTCHAR_UNLOCKED 1
|
||||
|
||||
/* Define to 1 if you have the declaration of `putc_unlocked', and to 0 if you
|
||||
don't. */
|
||||
#define HAVE_DECL_PUTC_UNLOCKED 1
|
||||
|
||||
/* Define to 1 if you have the declaration of `strerror_r', and to 0 if you
|
||||
don't. */
|
||||
#define HAVE_DECL_STRERROR_R 1
|
||||
|
||||
/* Define to 1 if you have the <dlfcn.h> header file. */
|
||||
#define HAVE_DLFCN_H 1
|
||||
|
||||
/* Define if you have the declaration of environ. */
|
||||
/* #undef HAVE_ENVIRON_DECL */
|
||||
|
||||
/* Define if you have the declaration of errno. */
|
||||
/* #undef HAVE_ERRNO_DECL */
|
||||
|
||||
/* Define to 1 if you have the `getcwd' function. */
|
||||
#define HAVE_GETCWD 1
|
||||
|
||||
/* Define to 1 if you have the `getc_unlocked' function. */
|
||||
#define HAVE_GETC_UNLOCKED 1
|
||||
|
||||
/* Define if the GNU gettext() function is already present or preinstalled. */
|
||||
/* #undef HAVE_GETTEXT */
|
||||
|
||||
/* Define if you have the iconv() function. */
|
||||
#define HAVE_ICONV 1
|
||||
|
||||
/* Define to 1 if the type 'int16_t' is already defined. */
|
||||
#define HAVE_INT16_T 1
|
||||
|
||||
/* Define to 1 if the type 'int32_t' is already defined. */
|
||||
#define HAVE_INT32_T 1
|
||||
|
||||
/* Define to 1 if the type 'int64_t' is already defined. */
|
||||
#define HAVE_INT64_T 1
|
||||
|
||||
/* Define to 1 if the type 'int64_t' is already definedin <stdint.h>. */
|
||||
#define HAVE_INT64_T_IN_STDINT_H 1
|
||||
|
||||
/* Define to 1 if the type 'int8_t' is already defined. */
|
||||
#define HAVE_INT8_T 1
|
||||
|
||||
/* Define to 1 if the type 'intmax_t' is already defined. */
|
||||
#define HAVE_INTMAX_T 1
|
||||
|
||||
/* Define to 1 if the type 'intptr_t' is already defined. */
|
||||
#define HAVE_INTPTR_T 1
|
||||
|
||||
/* Define to 1 if you have the <inttypes.h> header file. */
|
||||
#define HAVE_INTTYPES_H 1
|
||||
|
||||
/* Define to 1 if the type 'int_fast16_t' is already defined. */
|
||||
#define HAVE_INT_FAST16_T 1
|
||||
|
||||
/* Define to 1 if the type 'int_fast32_t' is already defined. */
|
||||
#define HAVE_INT_FAST32_T 1
|
||||
|
||||
/* Define to 1 if the type 'int_fast64_t' is already defined. */
|
||||
#define HAVE_INT_FAST64_T 1
|
||||
|
||||
/* Define to 1 if the type 'int_fast64_t' is already definedin <stdint.h>. */
|
||||
#define HAVE_INT_FAST64_T_IN_STDINT_H 1
|
||||
|
||||
/* Define to 1 if the type 'int_fast8_t' is already defined. */
|
||||
#define HAVE_INT_FAST8_T 1
|
||||
|
||||
/* Define to 1 if the type 'int_least16_t' is already defined. */
|
||||
#define HAVE_INT_LEAST16_T 1
|
||||
|
||||
/* Define to 1 if the type 'int_least32_t' is already defined. */
|
||||
#define HAVE_INT_LEAST32_T 1
|
||||
|
||||
/* Define to 1 if the type 'int_least64_t' is already defined. */
|
||||
#define HAVE_INT_LEAST64_T 1
|
||||
|
||||
/* Define to 1 if the type 'int_least64_t' is already definedin <stdint.h>. */
|
||||
#define HAVE_INT_LEAST64_T_IN_STDINT_H 1
|
||||
|
||||
/* Define to 1 if the type 'int_least8_t' is already defined. */
|
||||
#define HAVE_INT_LEAST8_T 1
|
||||
|
||||
/* Define if you have <langinfo.h> and nl_langinfo(CODESET). */
|
||||
#define HAVE_LANGINFO_CODESET 1
|
||||
|
||||
/* Define to 1 if you have the <locale.h> header file. */
|
||||
#define HAVE_LOCALE_H 1
|
||||
|
||||
/* Define if you have the 'long double' type. */
|
||||
#define HAVE_LONG_DOUBLE 1
|
||||
|
||||
/* Define if you have the 'long long' type. */
|
||||
#define HAVE_LONG_LONG 1
|
||||
|
||||
/* Define to 1 if you have the <mach-o/dyld.h> header file. */
|
||||
/* #undef HAVE_MACH_O_DYLD_H */
|
||||
|
||||
/* Define to 1 if you have the `mbrtowc' function. */
|
||||
#define HAVE_MBRTOWC 1
|
||||
|
||||
/* Define to 1 if you have the `mbsinit' function. */
|
||||
#define HAVE_MBSINIT 1
|
||||
|
||||
/* Define to 1 if <wchar.h> declares mbstate_t. */
|
||||
#define HAVE_MBSTATE_T 1
|
||||
|
||||
/* Define to 1 if you have the `memmove' function. */
|
||||
#define HAVE_MEMMOVE 1
|
||||
|
||||
/* Define to 1 if you have the <memory.h> header file. */
|
||||
#define HAVE_MEMORY_H 1
|
||||
|
||||
/* Define to 1 if the system has the type `ptrdiff_t'. */
|
||||
/* #undef HAVE_PTRDIFF_T */
|
||||
|
||||
/* Define to 1 if you have the `readlink' function. */
|
||||
#define HAVE_READLINK 1
|
||||
|
||||
/* Define to 1 if you have the <search.h> header file. */
|
||||
/* #undef HAVE_SEARCH_H */
|
||||
|
||||
/* Define to 1 if you have the `setenv' function. */
|
||||
#define HAVE_SETENV 1
|
||||
|
||||
/* Define to 1 if you have the `setlocale' function. */
|
||||
#define HAVE_SETLOCALE 1
|
||||
|
||||
/* Define to 1 if 'sig_atomic_t' is a signed integer type. */
|
||||
/* #undef HAVE_SIGNED_SIG_ATOMIC_T */
|
||||
|
||||
/* Define to 1 if 'wchar_t' is a signed integer type. */
|
||||
/* #undef HAVE_SIGNED_WCHAR_T */
|
||||
|
||||
/* Define to 1 if 'wint_t' is a signed integer type. */
|
||||
/* #undef HAVE_SIGNED_WINT_T */
|
||||
|
||||
/* Define to 1 if the system has the type `sig_atomic_t'. */
|
||||
/* #undef HAVE_SIG_ATOMIC_T */
|
||||
|
||||
/* Define to 1 if stdbool.h conforms to C99. */
|
||||
#define HAVE_STDBOOL_H 1
|
||||
|
||||
/* Define to 1 if you have the <stddef.h> header file. */
|
||||
#define HAVE_STDDEF_H 1
|
||||
|
||||
/* Define to 1 if you have the <stdint.h> header file. */
|
||||
#define HAVE_STDINT_H 1
|
||||
|
||||
/* Define to 1 if you have the <stdlib.h> header file. */
|
||||
#define HAVE_STDLIB_H 1
|
||||
|
||||
/* Define to 1 if you have the `strerror' function. */
|
||||
#define HAVE_STRERROR 1
|
||||
|
||||
/* Define to 1 if you have the `strerror_r' function. */
|
||||
#define HAVE_STRERROR_R 1
|
||||
|
||||
/* Define to 1 if you have the <strings.h> header file. */
|
||||
#define HAVE_STRINGS_H 1
|
||||
|
||||
/* Define to 1 if you have the <string.h> header file. */
|
||||
#define HAVE_STRING_H 1
|
||||
|
||||
/* Define to 1 if you have the <sys/bitypes.h> header file. */
|
||||
/* #undef HAVE_SYS_BITYPES_H */
|
||||
|
||||
/* Define to 1 if you have the <sys/inttypes.h> header file. */
|
||||
/* #undef HAVE_SYS_INTTYPES_H */
|
||||
|
||||
/* Define to 1 if you have the <sys/param.h> header file. */
|
||||
#define HAVE_SYS_PARAM_H 1
|
||||
|
||||
/* Define to 1 if you have the <sys/stat.h> header file. */
|
||||
#define HAVE_SYS_STAT_H 1
|
||||
|
||||
/* Define to 1 if you have the <sys/types.h> header file. */
|
||||
#define HAVE_SYS_TYPES_H 1
|
||||
|
||||
/* Define to 1 if you have the `tsearch' function. */
|
||||
/* #undef HAVE_TSEARCH */
|
||||
|
||||
/* Define to 1 if the type 'uint16_t' is already defined. */
|
||||
#define HAVE_UINT16_T 1
|
||||
|
||||
/* Define to 1 if the type 'uint32_t' is already defined. */
|
||||
#define HAVE_UINT32_T 1
|
||||
|
||||
/* Define to 1 if the type 'uint64_t' is already defined. */
|
||||
#define HAVE_UINT64_T 1
|
||||
|
||||
/* Define to 1 if the type 'uint64_t' is already definedin <stdint.h>. */
|
||||
#define HAVE_UINT64_T_IN_STDINT_H 1
|
||||
|
||||
/* Define to 1 if the type 'uint8_t' is already defined. */
|
||||
#define HAVE_UINT8_T 1
|
||||
|
||||
/* Define to 1 if the type 'uintmax_t' is already defined. */
|
||||
#define HAVE_UINTMAX_T 1
|
||||
|
||||
/* Define to 1 if the type 'uintptr_t' is already defined. */
|
||||
#define HAVE_UINTPTR_T 1
|
||||
|
||||
/* Define to 1 if the type 'uint_fast16_t' is already defined. */
|
||||
#define HAVE_UINT_FAST16_T 1
|
||||
|
||||
/* Define to 1 if the type 'uint_fast32_t' is already defined. */
|
||||
#define HAVE_UINT_FAST32_T 1
|
||||
|
||||
/* Define to 1 if the type 'uint_fast64_t' is already defined. */
|
||||
#define HAVE_UINT_FAST64_T 1
|
||||
|
||||
/* Define to 1 if the type 'uint_fast64_t' is already definedin <stdint.h>. */
|
||||
#define HAVE_UINT_FAST64_T_IN_STDINT_H 1
|
||||
|
||||
/* Define to 1 if the type 'uint_fast8_t' is already defined. */
|
||||
#define HAVE_UINT_FAST8_T 1
|
||||
|
||||
/* Define to 1 if the type 'uint_least16_t' is already defined. */
|
||||
#define HAVE_UINT_LEAST16_T 1
|
||||
|
||||
/* Define to 1 if the type 'uint_least32_t' is already defined. */
|
||||
#define HAVE_UINT_LEAST32_T 1
|
||||
|
||||
/* Define to 1 if the type 'uint_least64_t' is already defined. */
|
||||
#define HAVE_UINT_LEAST64_T 1
|
||||
|
||||
/* Define to 1 if the type 'uint_least64_t' is already definedin <stdint.h>.
|
||||
*/
|
||||
#define HAVE_UINT_LEAST64_T_IN_STDINT_H 1
|
||||
|
||||
/* Define to 1 if the type 'uint_least8_t' is already defined. */
|
||||
#define HAVE_UINT_LEAST8_T 1
|
||||
|
||||
/* Define to 1 if you have the <unistd.h> header file. */
|
||||
#define HAVE_UNISTD_H 1
|
||||
|
||||
/* Define to 1 if you have the `unsetenv' function. */
|
||||
#define HAVE_UNSETENV 1
|
||||
|
||||
/* Define to 1 or 0, depending whether the compiler supports simple visibility
|
||||
declarations. */
|
||||
#define HAVE_VISIBILITY 1
|
||||
|
||||
/* Define to 1 if you have the <wchar.h> header file. */
|
||||
#define HAVE_WCHAR_H 1
|
||||
|
||||
/* Define if you have the 'wchar_t' type. */
|
||||
#define HAVE_WCHAR_T 1
|
||||
|
||||
/* Define to 1 if you have the `wcrtomb' function. */
|
||||
#define HAVE_WCRTOMB 1
|
||||
|
||||
/* Define to 1 if the system has the type `wint_t'. */
|
||||
/* #undef HAVE_WINT_T */
|
||||
|
||||
/* Define to 1 if the system has the type `_Bool'. */
|
||||
#define HAVE__BOOL 1
|
||||
|
||||
/* Define to 1 if you have the `_NSGetExecutablePath' function. */
|
||||
/* #undef HAVE__NSGETEXECUTABLEPATH */
|
||||
|
||||
/* Define as const if the declaration of iconv() needs const. */
|
||||
#define ICONV_CONST
|
||||
|
||||
/* Define to the value of ${prefix}, as a string. */
|
||||
#define INSTALLPREFIX "/usr"
|
||||
|
||||
/* Define if <stdint.h> doesn't define it. */
|
||||
/* #undef INT16_MAX */
|
||||
|
||||
/* Define if <stdint.h> doesn't define it. */
|
||||
/* #undef INT16_MIN */
|
||||
|
||||
/* Define if <stdint.h> doesn't define it. */
|
||||
/* #undef INT32_MAX */
|
||||
|
||||
/* Define if <stdint.h> doesn't define it. */
|
||||
/* #undef INT32_MIN */
|
||||
|
||||
/* Define if <stdint.h> doesn't define it but has the int64_t type. */
|
||||
/* #undef INT64_MAX */
|
||||
|
||||
/* Define if <stdint.h> doesn't define it but has the int64_t type. */
|
||||
/* #undef INT64_MIN */
|
||||
|
||||
/* Define if <stdint.h> doesn't define it. */
|
||||
/* #undef INT8_MAX */
|
||||
|
||||
/* Define if <stdint.h> doesn't define it. */
|
||||
/* #undef INT8_MIN */
|
||||
|
||||
/* Define if <stdint.h> doesn't define it. */
|
||||
/* #undef INTMAX_MAX */
|
||||
|
||||
/* Define if <stdint.h> doesn't define it. */
|
||||
/* #undef INTMAX_MIN */
|
||||
|
||||
/* Define if <stdint.h> doesn't define it. */
|
||||
/* #undef INTPTR_MAX */
|
||||
|
||||
/* Define if <stdint.h> doesn't define it. */
|
||||
/* #undef INTPTR_MIN */
|
||||
|
||||
/* Define if <stdint.h> doesn't define it. */
|
||||
/* #undef INT_FAST16_MAX */
|
||||
|
||||
/* Define if <stdint.h> doesn't define it. */
|
||||
/* #undef INT_FAST16_MIN */
|
||||
|
||||
/* Define if <stdint.h> doesn't define it. */
|
||||
/* #undef INT_FAST32_MAX */
|
||||
|
||||
/* Define if <stdint.h> doesn't define it. */
|
||||
/* #undef INT_FAST32_MIN */
|
||||
|
||||
/* Define if <stdint.h> doesn't define it. */
|
||||
/* #undef INT_FAST64_MAX */
|
||||
|
||||
/* Define if <stdint.h> doesn't define it. */
|
||||
/* #undef INT_FAST64_MIN */
|
||||
|
||||
/* Define if <stdint.h> doesn't define it. */
|
||||
/* #undef INT_FAST8_MAX */
|
||||
|
||||
/* Define if <stdint.h> doesn't define it. */
|
||||
/* #undef INT_FAST8_MIN */
|
||||
|
||||
/* Define if <stdint.h> doesn't define it. */
|
||||
/* #undef INT_LEAST16_MAX */
|
||||
|
||||
/* Define if <stdint.h> doesn't define it. */
|
||||
/* #undef INT_LEAST16_MIN */
|
||||
|
||||
/* Define if <stdint.h> doesn't define it. */
|
||||
/* #undef INT_LEAST32_MAX */
|
||||
|
||||
/* Define if <stdint.h> doesn't define it. */
|
||||
/* #undef INT_LEAST32_MIN */
|
||||
|
||||
/* Define if <stdint.h> doesn't define it but has the int_least64_t type. */
|
||||
/* #undef INT_LEAST64_MAX */
|
||||
|
||||
/* Define if <stdint.h> doesn't define it but has the int_least64_t type. */
|
||||
/* #undef INT_LEAST64_MIN */
|
||||
|
||||
/* Define if <stdint.h> doesn't define it. */
|
||||
/* #undef INT_LEAST8_MAX */
|
||||
|
||||
/* Define if <stdint.h> doesn't define it. */
|
||||
/* #undef INT_LEAST8_MIN */
|
||||
|
||||
/* If malloc(0) is != NULL, define this to 1. Otherwise define this to 0. */
|
||||
#define MALLOC_0_IS_NONNULL 1
|
||||
|
||||
/* Name of package */
|
||||
#define PACKAGE "libiconv"
|
||||
|
||||
/* Define to the address where bug reports for this package should be sent. */
|
||||
#define PACKAGE_BUGREPORT ""
|
||||
|
||||
/* Define to the full name of this package. */
|
||||
#define PACKAGE_NAME ""
|
||||
|
||||
/* Define to the full name and version of this package. */
|
||||
#define PACKAGE_STRING ""
|
||||
|
||||
/* Define to the one symbol short name of this package. */
|
||||
#define PACKAGE_TARNAME ""
|
||||
|
||||
/* Define to the version of this package. */
|
||||
#define PACKAGE_VERSION ""
|
||||
|
||||
/* Define if <stdint.h> doesn't define it. */
|
||||
/* #undef PTRDIFF_MAX */
|
||||
|
||||
/* Define if <stdint.h> doesn't define it. */
|
||||
/* #undef PTRDIFF_MIN */
|
||||
|
||||
/* Define if <stdint.h> doesn't define it. */
|
||||
/* #undef SIG_ATOMIC_MAX */
|
||||
|
||||
/* Define if <stdint.h> doesn't define it. */
|
||||
/* #undef SIG_ATOMIC_MIN */
|
||||
|
||||
/* Define as the maximum value of type 'size_t', if the system doesn't define
|
||||
it. */
|
||||
/* #undef SIZE_MAX */
|
||||
|
||||
/* If using the C implementation of alloca, define if you know the
|
||||
direction of stack growth for your system; otherwise it will be
|
||||
automatically deduced at runtime.
|
||||
STACK_DIRECTION > 0 => grows toward higher addresses
|
||||
STACK_DIRECTION < 0 => grows toward lower addresses
|
||||
STACK_DIRECTION = 0 => direction of growth unknown */
|
||||
/* #undef STACK_DIRECTION */
|
||||
|
||||
/* Define to 1 if you have the ANSI C header files. */
|
||||
#define STDC_HEADERS 1
|
||||
|
||||
/* Define to 1 if strerror_r returns char *. */
|
||||
/* #undef STRERROR_R_CHAR_P */
|
||||
|
||||
/* Define if <stdint.h> doesn't define it. */
|
||||
/* #undef UINT16_MAX */
|
||||
|
||||
/* Define if <stdint.h> doesn't define it. */
|
||||
/* #undef UINT32_MAX */
|
||||
|
||||
/* Define if <stdint.h> doesn't define it but has the uint64_t type. */
|
||||
/* #undef UINT64_MAX */
|
||||
|
||||
/* Define if <stdint.h> doesn't define it. */
|
||||
/* #undef UINT8_MAX */
|
||||
|
||||
/* Define if <stdint.h> doesn't define it. */
|
||||
/* #undef UINTMAX_MAX */
|
||||
|
||||
/* Define if <stdint.h> doesn't define it. */
|
||||
/* #undef UINTPTR_MAX */
|
||||
|
||||
/* Define if <stdint.h> doesn't define it. */
|
||||
/* #undef UINT_FAST16_MAX */
|
||||
|
||||
/* Define if <stdint.h> doesn't define it. */
|
||||
/* #undef UINT_FAST32_MAX */
|
||||
|
||||
/* Define if <stdint.h> doesn't define it. */
|
||||
/* #undef UINT_FAST64_MAX */
|
||||
|
||||
/* Define if <stdint.h> doesn't define it. */
|
||||
/* #undef UINT_FAST8_MAX */
|
||||
|
||||
/* Define if <stdint.h> doesn't define it. */
|
||||
/* #undef UINT_LEAST16_MAX */
|
||||
|
||||
/* Define if <stdint.h> doesn't define it. */
|
||||
/* #undef UINT_LEAST32_MAX */
|
||||
|
||||
/* Define if <stdint.h> doesn't define it but has the uint_least64_t type. */
|
||||
/* #undef UINT_LEAST64_MAX */
|
||||
|
||||
/* Define if <stdint.h> doesn't define it. */
|
||||
/* #undef UINT_LEAST8_MAX */
|
||||
|
||||
/* Define to 1 if you want getc etc. to use unlocked I/O if available.
|
||||
Unlocked I/O can improve performance in unithreaded apps, but it is not
|
||||
safe for multithreaded apps. */
|
||||
#define USE_UNLOCKED_IO 1
|
||||
|
||||
/* Version number of package */
|
||||
#define VERSION "1.11"
|
||||
|
||||
/* Define if unsetenv() returns void, not int. */
|
||||
/* #undef VOID_UNSETENV */
|
||||
|
||||
/* Define if <stdint.h> doesn't define it. */
|
||||
/* #undef WINT_MAX */
|
||||
|
||||
/* Define if <stdint.h> doesn't define it. */
|
||||
/* #undef WINT_MIN */
|
||||
|
||||
/* Define if the machine's byte ordering is little endian. */
|
||||
#ifdef __LITTLE_ENDIAN__
|
||||
#define WORDS_LITTLEENDIAN 1
|
||||
#else /* !__LITTLE_ENDIAN__ */
|
||||
#undef WORDS_LITTLEENDIAN
|
||||
#endif /* __LITTLE_ENDIAN__ */
|
||||
|
||||
/* Define to 1 if on AIX 3.
|
||||
System headers sometimes define this.
|
||||
We just want to avoid a redefinition error message. */
|
||||
#ifndef _ALL_SOURCE
|
||||
/* # undef _ALL_SOURCE */
|
||||
#endif
|
||||
|
||||
/* Enable GNU extensions on systems that have them. */
|
||||
#ifndef _GNU_SOURCE
|
||||
# define _GNU_SOURCE 1
|
||||
#endif
|
||||
|
||||
/* Define to 1 if on MINIX. */
|
||||
/* #undef _MINIX */
|
||||
|
||||
/* Define to 2 if the system does not provide POSIX.1 features except with
|
||||
this defined. */
|
||||
/* #undef _POSIX_1_SOURCE */
|
||||
|
||||
/* Define to 1 if you need to in order for `stat' and other things to work. */
|
||||
/* #undef _POSIX_SOURCE */
|
||||
|
||||
/* Enable extensions on Solaris. */
|
||||
#ifndef __EXTENSIONS__
|
||||
# define __EXTENSIONS__ 1
|
||||
#endif
|
||||
|
||||
/* Define to a type if <wchar.h> does not define. */
|
||||
/* #undef mbstate_t */
|
||||
|
||||
/* Define to a replacement function name for realpath(). */
|
||||
#define realpath rpl_realpath
|
||||
|
||||
/* Define to `unsigned int' if <sys/types.h> does not define. */
|
||||
/* #undef size_t */
|
||||
|
||||
/* Define as a signed type of the same size as size_t. */
|
||||
/* #undef ssize_t */
|
||||
|
||||
|
||||
/* On Windows, variables that may be in a DLL must be marked specially. */
|
||||
#if defined _MSC_VER && defined _DLL
|
||||
# define DLL_VARIABLE __declspec (dllimport)
|
||||
#else
|
||||
# define DLL_VARIABLE
|
||||
#endif
|
||||
/* Workaround Leopard/SnowLeopard issues with GCC_PREPROCESSOR_DEFINITIONS */
|
||||
#define LIBDIR "/usr/lib"
|
||||
#define INSTALLDIR "/usr/lib"
|
719
libiconv/config.h.in
Normal file
719
libiconv/config.h.in
Normal file
@ -0,0 +1,719 @@
|
||||
/* config.h.in. Generated from configure.ac by autoheader. */
|
||||
|
||||
/* Define to the number of bits in type 'int16_t'. */
|
||||
#undef BITSIZEOF_INT16_T
|
||||
|
||||
/* Define to the number of bits in type 'int32_t'. */
|
||||
#undef BITSIZEOF_INT32_T
|
||||
|
||||
/* Define to the number of bits in type 'int64_t'. */
|
||||
#undef BITSIZEOF_INT64_T
|
||||
|
||||
/* Define to the number of bits in type 'int8_t'. */
|
||||
#undef BITSIZEOF_INT8_T
|
||||
|
||||
/* Define to the number of bits in type 'intmax_t'. */
|
||||
#undef BITSIZEOF_INTMAX_T
|
||||
|
||||
/* Define to the number of bits in type 'intptr_t'. */
|
||||
#undef BITSIZEOF_INTPTR_T
|
||||
|
||||
/* Define to the number of bits in type 'int_fast16_t'. */
|
||||
#undef BITSIZEOF_INT_FAST16_T
|
||||
|
||||
/* Define to the number of bits in type 'int_fast32_t'. */
|
||||
#undef BITSIZEOF_INT_FAST32_T
|
||||
|
||||
/* Define to the number of bits in type 'int_fast64_t'. */
|
||||
#undef BITSIZEOF_INT_FAST64_T
|
||||
|
||||
/* Define to the number of bits in type 'int_fast8_t'. */
|
||||
#undef BITSIZEOF_INT_FAST8_T
|
||||
|
||||
/* Define to the number of bits in type 'int_least16_t'. */
|
||||
#undef BITSIZEOF_INT_LEAST16_T
|
||||
|
||||
/* Define to the number of bits in type 'int_least32_t'. */
|
||||
#undef BITSIZEOF_INT_LEAST32_T
|
||||
|
||||
/* Define to the number of bits in type 'int_least64_t'. */
|
||||
#undef BITSIZEOF_INT_LEAST64_T
|
||||
|
||||
/* Define to the number of bits in type 'int_least8_t'. */
|
||||
#undef BITSIZEOF_INT_LEAST8_T
|
||||
|
||||
/* Define to the number of bits in type 'long'. */
|
||||
#undef BITSIZEOF_LONG
|
||||
|
||||
/* Define to the number of bits in type 'ptrdiff_t'. */
|
||||
#undef BITSIZEOF_PTRDIFF_T
|
||||
|
||||
/* Define to the number of bits in type 'sig_atomic_t'. */
|
||||
#undef BITSIZEOF_SIG_ATOMIC_T
|
||||
|
||||
/* Define to the number of bits in type 'size_t'. */
|
||||
#undef BITSIZEOF_SIZE_T
|
||||
|
||||
/* Define to the number of bits in type 'uint16_t'. */
|
||||
#undef BITSIZEOF_UINT16_T
|
||||
|
||||
/* Define to the number of bits in type 'uint32_t'. */
|
||||
#undef BITSIZEOF_UINT32_T
|
||||
|
||||
/* Define to the number of bits in type 'uint64_t'. */
|
||||
#undef BITSIZEOF_UINT64_T
|
||||
|
||||
/* Define to the number of bits in type 'uint8_t'. */
|
||||
#undef BITSIZEOF_UINT8_T
|
||||
|
||||
/* Define to the number of bits in type 'uintmax_t'. */
|
||||
#undef BITSIZEOF_UINTMAX_T
|
||||
|
||||
/* Define to the number of bits in type 'uintptr_t'. */
|
||||
#undef BITSIZEOF_UINTPTR_T
|
||||
|
||||
/* Define to the number of bits in type 'uint_fast16_t'. */
|
||||
#undef BITSIZEOF_UINT_FAST16_T
|
||||
|
||||
/* Define to the number of bits in type 'uint_fast32_t'. */
|
||||
#undef BITSIZEOF_UINT_FAST32_T
|
||||
|
||||
/* Define to the number of bits in type 'uint_fast64_t'. */
|
||||
#undef BITSIZEOF_UINT_FAST64_T
|
||||
|
||||
/* Define to the number of bits in type 'uint_fast8_t'. */
|
||||
#undef BITSIZEOF_UINT_FAST8_T
|
||||
|
||||
/* Define to the number of bits in type 'uint_least16_t'. */
|
||||
#undef BITSIZEOF_UINT_LEAST16_T
|
||||
|
||||
/* Define to the number of bits in type 'uint_least32_t'. */
|
||||
#undef BITSIZEOF_UINT_LEAST32_T
|
||||
|
||||
/* Define to the number of bits in type 'uint_least64_t'. */
|
||||
#undef BITSIZEOF_UINT_LEAST64_T
|
||||
|
||||
/* Define to the number of bits in type 'uint_least8_t'. */
|
||||
#undef BITSIZEOF_UINT_LEAST8_T
|
||||
|
||||
/* Define to the number of bits in type 'unsigned_int'. */
|
||||
#undef BITSIZEOF_UNSIGNED_INT
|
||||
|
||||
/* Define to the number of bits in type 'unsigned_long'. */
|
||||
#undef BITSIZEOF_UNSIGNED_LONG
|
||||
|
||||
/* Define to the number of bits in type 'wchar_t'. */
|
||||
#undef BITSIZEOF_WCHAR_T
|
||||
|
||||
/* Define to the number of bits in type 'wint_t'. */
|
||||
#undef BITSIZEOF_WINT_T
|
||||
|
||||
/* Define to one of `_getb67', `GETB67', `getb67' for Cray-2 and Cray-YMP
|
||||
systems. This function is required for `alloca.c' support on those systems.
|
||||
*/
|
||||
#undef CRAY_STACKSEG_END
|
||||
|
||||
/* Define to 1 if using `alloca.c'. */
|
||||
#undef C_ALLOCA
|
||||
|
||||
/* Define as good substitute value for EILSEQ. */
|
||||
#undef EILSEQ
|
||||
|
||||
/* Define to 1 to enable a few rarely used encodings. */
|
||||
#undef ENABLE_EXTRA
|
||||
|
||||
/* Define to 1 if translation of program messages to the user's native
|
||||
language is requested. */
|
||||
#undef ENABLE_NLS
|
||||
|
||||
/* Define to 1 if the package shall run at any location in the filesystem. */
|
||||
#undef ENABLE_RELOCATABLE
|
||||
|
||||
/* Define this to the full path to <inttypes.h>. */
|
||||
#undef FULL_PATH_INTTYPES_H
|
||||
|
||||
/* Define this to the full path to <stdint.h>. */
|
||||
#undef FULL_PATH_STDINT_H
|
||||
|
||||
/* Define to 1 if you have `alloca', as a function or macro. */
|
||||
#undef HAVE_ALLOCA
|
||||
|
||||
/* Define to 1 if you have <alloca.h> and it should be used (not on Ultrix).
|
||||
*/
|
||||
#undef HAVE_ALLOCA_H
|
||||
|
||||
/* Define to 1 if you have the `canonicalize_file_name' function. */
|
||||
#undef HAVE_CANONICALIZE_FILE_NAME
|
||||
|
||||
/* Define to 1 if you have the MacOS X function CFLocaleCopyCurrent in the
|
||||
CoreFoundation framework. */
|
||||
#undef HAVE_CFLOCALECOPYCURRENT
|
||||
|
||||
/* Define to 1 if you have the MacOS X function CFPreferencesCopyAppValue in
|
||||
the CoreFoundation framework. */
|
||||
#undef HAVE_CFPREFERENCESCOPYAPPVALUE
|
||||
|
||||
/* Define if the GNU dcgettext() function is already present or preinstalled.
|
||||
*/
|
||||
#undef HAVE_DCGETTEXT
|
||||
|
||||
/* Define to 1 if you have the declaration of `clearerr_unlocked', and to 0 if
|
||||
you don't. */
|
||||
#undef HAVE_DECL_CLEARERR_UNLOCKED
|
||||
|
||||
/* Define to 1 if you have the declaration of `feof_unlocked', and to 0 if you
|
||||
don't. */
|
||||
#undef HAVE_DECL_FEOF_UNLOCKED
|
||||
|
||||
/* Define to 1 if you have the declaration of `ferror_unlocked', and to 0 if
|
||||
you don't. */
|
||||
#undef HAVE_DECL_FERROR_UNLOCKED
|
||||
|
||||
/* Define to 1 if you have the declaration of `fflush_unlocked', and to 0 if
|
||||
you don't. */
|
||||
#undef HAVE_DECL_FFLUSH_UNLOCKED
|
||||
|
||||
/* Define to 1 if you have the declaration of `fgets_unlocked', and to 0 if
|
||||
you don't. */
|
||||
#undef HAVE_DECL_FGETS_UNLOCKED
|
||||
|
||||
/* Define to 1 if you have the declaration of `fputc_unlocked', and to 0 if
|
||||
you don't. */
|
||||
#undef HAVE_DECL_FPUTC_UNLOCKED
|
||||
|
||||
/* Define to 1 if you have the declaration of `fputs_unlocked', and to 0 if
|
||||
you don't. */
|
||||
#undef HAVE_DECL_FPUTS_UNLOCKED
|
||||
|
||||
/* Define to 1 if you have the declaration of `fread_unlocked', and to 0 if
|
||||
you don't. */
|
||||
#undef HAVE_DECL_FREAD_UNLOCKED
|
||||
|
||||
/* Define to 1 if you have the declaration of `fwrite_unlocked', and to 0 if
|
||||
you don't. */
|
||||
#undef HAVE_DECL_FWRITE_UNLOCKED
|
||||
|
||||
/* Define to 1 if you have the declaration of `getchar_unlocked', and to 0 if
|
||||
you don't. */
|
||||
#undef HAVE_DECL_GETCHAR_UNLOCKED
|
||||
|
||||
/* Define to 1 if you have the declaration of `getc_unlocked', and to 0 if you
|
||||
don't. */
|
||||
#undef HAVE_DECL_GETC_UNLOCKED
|
||||
|
||||
/* Define to 1 if you have the declaration of `putchar_unlocked', and to 0 if
|
||||
you don't. */
|
||||
#undef HAVE_DECL_PUTCHAR_UNLOCKED
|
||||
|
||||
/* Define to 1 if you have the declaration of `putc_unlocked', and to 0 if you
|
||||
don't. */
|
||||
#undef HAVE_DECL_PUTC_UNLOCKED
|
||||
|
||||
/* Define to 1 if you have the declaration of `strerror_r', and to 0 if you
|
||||
don't. */
|
||||
#undef HAVE_DECL_STRERROR_R
|
||||
|
||||
/* Define to 1 if you have the <dlfcn.h> header file. */
|
||||
#undef HAVE_DLFCN_H
|
||||
|
||||
/* Define if you have the declaration of environ. */
|
||||
#undef HAVE_ENVIRON_DECL
|
||||
|
||||
/* Define if you have the declaration of errno. */
|
||||
#undef HAVE_ERRNO_DECL
|
||||
|
||||
/* Define to 1 if you have the `getcwd' function. */
|
||||
#undef HAVE_GETCWD
|
||||
|
||||
/* Define to 1 if you have the `getc_unlocked' function. */
|
||||
#undef HAVE_GETC_UNLOCKED
|
||||
|
||||
/* Define if the GNU gettext() function is already present or preinstalled. */
|
||||
#undef HAVE_GETTEXT
|
||||
|
||||
/* Define if you have the iconv() function. */
|
||||
#undef HAVE_ICONV
|
||||
|
||||
/* Define to 1 if the type 'int16_t' is already defined. */
|
||||
#undef HAVE_INT16_T
|
||||
|
||||
/* Define to 1 if the type 'int32_t' is already defined. */
|
||||
#undef HAVE_INT32_T
|
||||
|
||||
/* Define to 1 if the type 'int64_t' is already defined. */
|
||||
#undef HAVE_INT64_T
|
||||
|
||||
/* Define to 1 if the type 'int64_t' is already definedin <stdint.h>. */
|
||||
#undef HAVE_INT64_T_IN_STDINT_H
|
||||
|
||||
/* Define to 1 if the type 'int8_t' is already defined. */
|
||||
#undef HAVE_INT8_T
|
||||
|
||||
/* Define to 1 if the type 'intmax_t' is already defined. */
|
||||
#undef HAVE_INTMAX_T
|
||||
|
||||
/* Define to 1 if the type 'intptr_t' is already defined. */
|
||||
#undef HAVE_INTPTR_T
|
||||
|
||||
/* Define to 1 if you have the <inttypes.h> header file. */
|
||||
#undef HAVE_INTTYPES_H
|
||||
|
||||
/* Define to 1 if the type 'int_fast16_t' is already defined. */
|
||||
#undef HAVE_INT_FAST16_T
|
||||
|
||||
/* Define to 1 if the type 'int_fast32_t' is already defined. */
|
||||
#undef HAVE_INT_FAST32_T
|
||||
|
||||
/* Define to 1 if the type 'int_fast64_t' is already defined. */
|
||||
#undef HAVE_INT_FAST64_T
|
||||
|
||||
/* Define to 1 if the type 'int_fast64_t' is already definedin <stdint.h>. */
|
||||
#undef HAVE_INT_FAST64_T_IN_STDINT_H
|
||||
|
||||
/* Define to 1 if the type 'int_fast8_t' is already defined. */
|
||||
#undef HAVE_INT_FAST8_T
|
||||
|
||||
/* Define to 1 if the type 'int_least16_t' is already defined. */
|
||||
#undef HAVE_INT_LEAST16_T
|
||||
|
||||
/* Define to 1 if the type 'int_least32_t' is already defined. */
|
||||
#undef HAVE_INT_LEAST32_T
|
||||
|
||||
/* Define to 1 if the type 'int_least64_t' is already defined. */
|
||||
#undef HAVE_INT_LEAST64_T
|
||||
|
||||
/* Define to 1 if the type 'int_least64_t' is already definedin <stdint.h>. */
|
||||
#undef HAVE_INT_LEAST64_T_IN_STDINT_H
|
||||
|
||||
/* Define to 1 if the type 'int_least8_t' is already defined. */
|
||||
#undef HAVE_INT_LEAST8_T
|
||||
|
||||
/* Define if you have <langinfo.h> and nl_langinfo(CODESET). */
|
||||
#undef HAVE_LANGINFO_CODESET
|
||||
|
||||
/* Define to 1 if you have the <locale.h> header file. */
|
||||
#undef HAVE_LOCALE_H
|
||||
|
||||
/* Define if you have the 'long double' type. */
|
||||
#undef HAVE_LONG_DOUBLE
|
||||
|
||||
/* Define if you have the 'long long' type. */
|
||||
#undef HAVE_LONG_LONG
|
||||
|
||||
/* Define to 1 if you have the <mach-o/dyld.h> header file. */
|
||||
#undef HAVE_MACH_O_DYLD_H
|
||||
|
||||
/* Define to 1 if you have the `mbrtowc' function. */
|
||||
#undef HAVE_MBRTOWC
|
||||
|
||||
/* Define to 1 if you have the `mbsinit' function. */
|
||||
#undef HAVE_MBSINIT
|
||||
|
||||
/* Define to 1 if <wchar.h> declares mbstate_t. */
|
||||
#undef HAVE_MBSTATE_T
|
||||
|
||||
/* Define to 1 if you have the `memmove' function. */
|
||||
#undef HAVE_MEMMOVE
|
||||
|
||||
/* Define to 1 if you have the <memory.h> header file. */
|
||||
#undef HAVE_MEMORY_H
|
||||
|
||||
/* Define to 1 if the system has the type `ptrdiff_t'. */
|
||||
#undef HAVE_PTRDIFF_T
|
||||
|
||||
/* Define to 1 if you have the `readlink' function. */
|
||||
#undef HAVE_READLINK
|
||||
|
||||
/* Define to 1 if you have the <search.h> header file. */
|
||||
#undef HAVE_SEARCH_H
|
||||
|
||||
/* Define to 1 if you have the `setenv' function. */
|
||||
#undef HAVE_SETENV
|
||||
|
||||
/* Define to 1 if you have the `setlocale' function. */
|
||||
#undef HAVE_SETLOCALE
|
||||
|
||||
/* Define to 1 if 'sig_atomic_t' is a signed integer type. */
|
||||
#undef HAVE_SIGNED_SIG_ATOMIC_T
|
||||
|
||||
/* Define to 1 if 'wchar_t' is a signed integer type. */
|
||||
#undef HAVE_SIGNED_WCHAR_T
|
||||
|
||||
/* Define to 1 if 'wint_t' is a signed integer type. */
|
||||
#undef HAVE_SIGNED_WINT_T
|
||||
|
||||
/* Define to 1 if the system has the type `sig_atomic_t'. */
|
||||
#undef HAVE_SIG_ATOMIC_T
|
||||
|
||||
/* Define to 1 if stdbool.h conforms to C99. */
|
||||
#undef HAVE_STDBOOL_H
|
||||
|
||||
/* Define to 1 if you have the <stddef.h> header file. */
|
||||
#undef HAVE_STDDEF_H
|
||||
|
||||
/* Define to 1 if you have the <stdint.h> header file. */
|
||||
#undef HAVE_STDINT_H
|
||||
|
||||
/* Define to 1 if you have the <stdlib.h> header file. */
|
||||
#undef HAVE_STDLIB_H
|
||||
|
||||
/* Define to 1 if you have the `strerror' function. */
|
||||
#undef HAVE_STRERROR
|
||||
|
||||
/* Define to 1 if you have the `strerror_r' function. */
|
||||
#undef HAVE_STRERROR_R
|
||||
|
||||
/* Define to 1 if you have the <strings.h> header file. */
|
||||
#undef HAVE_STRINGS_H
|
||||
|
||||
/* Define to 1 if you have the <string.h> header file. */
|
||||
#undef HAVE_STRING_H
|
||||
|
||||
/* Define to 1 if you have the <sys/bitypes.h> header file. */
|
||||
#undef HAVE_SYS_BITYPES_H
|
||||
|
||||
/* Define to 1 if you have the <sys/inttypes.h> header file. */
|
||||
#undef HAVE_SYS_INTTYPES_H
|
||||
|
||||
/* Define to 1 if you have the <sys/param.h> header file. */
|
||||
#undef HAVE_SYS_PARAM_H
|
||||
|
||||
/* Define to 1 if you have the <sys/stat.h> header file. */
|
||||
#undef HAVE_SYS_STAT_H
|
||||
|
||||
/* Define to 1 if you have the <sys/types.h> header file. */
|
||||
#undef HAVE_SYS_TYPES_H
|
||||
|
||||
/* Define to 1 if you have the `tsearch' function. */
|
||||
#undef HAVE_TSEARCH
|
||||
|
||||
/* Define to 1 if the type 'uint16_t' is already defined. */
|
||||
#undef HAVE_UINT16_T
|
||||
|
||||
/* Define to 1 if the type 'uint32_t' is already defined. */
|
||||
#undef HAVE_UINT32_T
|
||||
|
||||
/* Define to 1 if the type 'uint64_t' is already defined. */
|
||||
#undef HAVE_UINT64_T
|
||||
|
||||
/* Define to 1 if the type 'uint64_t' is already definedin <stdint.h>. */
|
||||
#undef HAVE_UINT64_T_IN_STDINT_H
|
||||
|
||||
/* Define to 1 if the type 'uint8_t' is already defined. */
|
||||
#undef HAVE_UINT8_T
|
||||
|
||||
/* Define to 1 if the type 'uintmax_t' is already defined. */
|
||||
#undef HAVE_UINTMAX_T
|
||||
|
||||
/* Define to 1 if the type 'uintptr_t' is already defined. */
|
||||
#undef HAVE_UINTPTR_T
|
||||
|
||||
/* Define to 1 if the type 'uint_fast16_t' is already defined. */
|
||||
#undef HAVE_UINT_FAST16_T
|
||||
|
||||
/* Define to 1 if the type 'uint_fast32_t' is already defined. */
|
||||
#undef HAVE_UINT_FAST32_T
|
||||
|
||||
/* Define to 1 if the type 'uint_fast64_t' is already defined. */
|
||||
#undef HAVE_UINT_FAST64_T
|
||||
|
||||
/* Define to 1 if the type 'uint_fast64_t' is already definedin <stdint.h>. */
|
||||
#undef HAVE_UINT_FAST64_T_IN_STDINT_H
|
||||
|
||||
/* Define to 1 if the type 'uint_fast8_t' is already defined. */
|
||||
#undef HAVE_UINT_FAST8_T
|
||||
|
||||
/* Define to 1 if the type 'uint_least16_t' is already defined. */
|
||||
#undef HAVE_UINT_LEAST16_T
|
||||
|
||||
/* Define to 1 if the type 'uint_least32_t' is already defined. */
|
||||
#undef HAVE_UINT_LEAST32_T
|
||||
|
||||
/* Define to 1 if the type 'uint_least64_t' is already defined. */
|
||||
#undef HAVE_UINT_LEAST64_T
|
||||
|
||||
/* Define to 1 if the type 'uint_least64_t' is already definedin <stdint.h>.
|
||||
*/
|
||||
#undef HAVE_UINT_LEAST64_T_IN_STDINT_H
|
||||
|
||||
/* Define to 1 if the type 'uint_least8_t' is already defined. */
|
||||
#undef HAVE_UINT_LEAST8_T
|
||||
|
||||
/* Define to 1 if you have the <unistd.h> header file. */
|
||||
#undef HAVE_UNISTD_H
|
||||
|
||||
/* Define to 1 if you have the `unsetenv' function. */
|
||||
#undef HAVE_UNSETENV
|
||||
|
||||
/* Define to 1 or 0, depending whether the compiler supports simple visibility
|
||||
declarations. */
|
||||
#undef HAVE_VISIBILITY
|
||||
|
||||
/* Define to 1 if you have the <wchar.h> header file. */
|
||||
#undef HAVE_WCHAR_H
|
||||
|
||||
/* Define if you have the 'wchar_t' type. */
|
||||
#undef HAVE_WCHAR_T
|
||||
|
||||
/* Define to 1 if you have the `wcrtomb' function. */
|
||||
#undef HAVE_WCRTOMB
|
||||
|
||||
/* Define to 1 if the system has the type `wint_t'. */
|
||||
#undef HAVE_WINT_T
|
||||
|
||||
/* Define to 1 if the system has the type `_Bool'. */
|
||||
#undef HAVE__BOOL
|
||||
|
||||
/* Define to 1 if you have the `_NSGetExecutablePath' function. */
|
||||
#undef HAVE__NSGETEXECUTABLEPATH
|
||||
|
||||
/* Define as const if the declaration of iconv() needs const. */
|
||||
#undef ICONV_CONST
|
||||
|
||||
/* Define to the value of ${prefix}, as a string. */
|
||||
#undef INSTALLPREFIX
|
||||
|
||||
/* Define if <stdint.h> doesn't define it. */
|
||||
#undef INT16_MAX
|
||||
|
||||
/* Define if <stdint.h> doesn't define it. */
|
||||
#undef INT16_MIN
|
||||
|
||||
/* Define if <stdint.h> doesn't define it. */
|
||||
#undef INT32_MAX
|
||||
|
||||
/* Define if <stdint.h> doesn't define it. */
|
||||
#undef INT32_MIN
|
||||
|
||||
/* Define if <stdint.h> doesn't define it but has the int64_t type. */
|
||||
#undef INT64_MAX
|
||||
|
||||
/* Define if <stdint.h> doesn't define it but has the int64_t type. */
|
||||
#undef INT64_MIN
|
||||
|
||||
/* Define if <stdint.h> doesn't define it. */
|
||||
#undef INT8_MAX
|
||||
|
||||
/* Define if <stdint.h> doesn't define it. */
|
||||
#undef INT8_MIN
|
||||
|
||||
/* Define if <stdint.h> doesn't define it. */
|
||||
#undef INTMAX_MAX
|
||||
|
||||
/* Define if <stdint.h> doesn't define it. */
|
||||
#undef INTMAX_MIN
|
||||
|
||||
/* Define if <stdint.h> doesn't define it. */
|
||||
#undef INTPTR_MAX
|
||||
|
||||
/* Define if <stdint.h> doesn't define it. */
|
||||
#undef INTPTR_MIN
|
||||
|
||||
/* Define if <stdint.h> doesn't define it. */
|
||||
#undef INT_FAST16_MAX
|
||||
|
||||
/* Define if <stdint.h> doesn't define it. */
|
||||
#undef INT_FAST16_MIN
|
||||
|
||||
/* Define if <stdint.h> doesn't define it. */
|
||||
#undef INT_FAST32_MAX
|
||||
|
||||
/* Define if <stdint.h> doesn't define it. */
|
||||
#undef INT_FAST32_MIN
|
||||
|
||||
/* Define if <stdint.h> doesn't define it. */
|
||||
#undef INT_FAST64_MAX
|
||||
|
||||
/* Define if <stdint.h> doesn't define it. */
|
||||
#undef INT_FAST64_MIN
|
||||
|
||||
/* Define if <stdint.h> doesn't define it. */
|
||||
#undef INT_FAST8_MAX
|
||||
|
||||
/* Define if <stdint.h> doesn't define it. */
|
||||
#undef INT_FAST8_MIN
|
||||
|
||||
/* Define if <stdint.h> doesn't define it. */
|
||||
#undef INT_LEAST16_MAX
|
||||
|
||||
/* Define if <stdint.h> doesn't define it. */
|
||||
#undef INT_LEAST16_MIN
|
||||
|
||||
/* Define if <stdint.h> doesn't define it. */
|
||||
#undef INT_LEAST32_MAX
|
||||
|
||||
/* Define if <stdint.h> doesn't define it. */
|
||||
#undef INT_LEAST32_MIN
|
||||
|
||||
/* Define if <stdint.h> doesn't define it but has the int_least64_t type. */
|
||||
#undef INT_LEAST64_MAX
|
||||
|
||||
/* Define if <stdint.h> doesn't define it but has the int_least64_t type. */
|
||||
#undef INT_LEAST64_MIN
|
||||
|
||||
/* Define if <stdint.h> doesn't define it. */
|
||||
#undef INT_LEAST8_MAX
|
||||
|
||||
/* Define if <stdint.h> doesn't define it. */
|
||||
#undef INT_LEAST8_MIN
|
||||
|
||||
/* If malloc(0) is != NULL, define this to 1. Otherwise define this to 0. */
|
||||
#undef MALLOC_0_IS_NONNULL
|
||||
|
||||
/* Name of package */
|
||||
#undef PACKAGE
|
||||
|
||||
/* Define to the address where bug reports for this package should be sent. */
|
||||
#undef PACKAGE_BUGREPORT
|
||||
|
||||
/* Define to the full name of this package. */
|
||||
#undef PACKAGE_NAME
|
||||
|
||||
/* Define to the full name and version of this package. */
|
||||
#undef PACKAGE_STRING
|
||||
|
||||
/* Define to the one symbol short name of this package. */
|
||||
#undef PACKAGE_TARNAME
|
||||
|
||||
/* Define to the version of this package. */
|
||||
#undef PACKAGE_VERSION
|
||||
|
||||
/* Define if <stdint.h> doesn't define it. */
|
||||
#undef PTRDIFF_MAX
|
||||
|
||||
/* Define if <stdint.h> doesn't define it. */
|
||||
#undef PTRDIFF_MIN
|
||||
|
||||
/* Define if <stdint.h> doesn't define it. */
|
||||
#undef SIG_ATOMIC_MAX
|
||||
|
||||
/* Define if <stdint.h> doesn't define it. */
|
||||
#undef SIG_ATOMIC_MIN
|
||||
|
||||
/* Define as the maximum value of type 'size_t', if the system doesn't define
|
||||
it. */
|
||||
#undef SIZE_MAX
|
||||
|
||||
/* If using the C implementation of alloca, define if you know the
|
||||
direction of stack growth for your system; otherwise it will be
|
||||
automatically deduced at runtime.
|
||||
STACK_DIRECTION > 0 => grows toward higher addresses
|
||||
STACK_DIRECTION < 0 => grows toward lower addresses
|
||||
STACK_DIRECTION = 0 => direction of growth unknown */
|
||||
#undef STACK_DIRECTION
|
||||
|
||||
/* Define to 1 if you have the ANSI C header files. */
|
||||
#undef STDC_HEADERS
|
||||
|
||||
/* Define to 1 if strerror_r returns char *. */
|
||||
#undef STRERROR_R_CHAR_P
|
||||
|
||||
/* Define if <stdint.h> doesn't define it. */
|
||||
#undef UINT16_MAX
|
||||
|
||||
/* Define if <stdint.h> doesn't define it. */
|
||||
#undef UINT32_MAX
|
||||
|
||||
/* Define if <stdint.h> doesn't define it but has the uint64_t type. */
|
||||
#undef UINT64_MAX
|
||||
|
||||
/* Define if <stdint.h> doesn't define it. */
|
||||
#undef UINT8_MAX
|
||||
|
||||
/* Define if <stdint.h> doesn't define it. */
|
||||
#undef UINTMAX_MAX
|
||||
|
||||
/* Define if <stdint.h> doesn't define it. */
|
||||
#undef UINTPTR_MAX
|
||||
|
||||
/* Define if <stdint.h> doesn't define it. */
|
||||
#undef UINT_FAST16_MAX
|
||||
|
||||
/* Define if <stdint.h> doesn't define it. */
|
||||
#undef UINT_FAST32_MAX
|
||||
|
||||
/* Define if <stdint.h> doesn't define it. */
|
||||
#undef UINT_FAST64_MAX
|
||||
|
||||
/* Define if <stdint.h> doesn't define it. */
|
||||
#undef UINT_FAST8_MAX
|
||||
|
||||
/* Define if <stdint.h> doesn't define it. */
|
||||
#undef UINT_LEAST16_MAX
|
||||
|
||||
/* Define if <stdint.h> doesn't define it. */
|
||||
#undef UINT_LEAST32_MAX
|
||||
|
||||
/* Define if <stdint.h> doesn't define it but has the uint_least64_t type. */
|
||||
#undef UINT_LEAST64_MAX
|
||||
|
||||
/* Define if <stdint.h> doesn't define it. */
|
||||
#undef UINT_LEAST8_MAX
|
||||
|
||||
/* Define to 1 if you want getc etc. to use unlocked I/O if available.
|
||||
Unlocked I/O can improve performance in unithreaded apps, but it is not
|
||||
safe for multithreaded apps. */
|
||||
#undef USE_UNLOCKED_IO
|
||||
|
||||
/* Version number of package */
|
||||
#undef VERSION
|
||||
|
||||
/* Define if unsetenv() returns void, not int. */
|
||||
#undef VOID_UNSETENV
|
||||
|
||||
/* Define if <stdint.h> doesn't define it. */
|
||||
#undef WINT_MAX
|
||||
|
||||
/* Define if <stdint.h> doesn't define it. */
|
||||
#undef WINT_MIN
|
||||
|
||||
/* Define if the machine's byte ordering is little endian. */
|
||||
#undef WORDS_LITTLEENDIAN
|
||||
|
||||
/* Define to 1 if on AIX 3.
|
||||
System headers sometimes define this.
|
||||
We just want to avoid a redefinition error message. */
|
||||
#ifndef _ALL_SOURCE
|
||||
# undef _ALL_SOURCE
|
||||
#endif
|
||||
|
||||
/* Enable GNU extensions on systems that have them. */
|
||||
#ifndef _GNU_SOURCE
|
||||
# undef _GNU_SOURCE
|
||||
#endif
|
||||
|
||||
/* Define to 1 if on MINIX. */
|
||||
#undef _MINIX
|
||||
|
||||
/* Define to 2 if the system does not provide POSIX.1 features except with
|
||||
this defined. */
|
||||
#undef _POSIX_1_SOURCE
|
||||
|
||||
/* Define to 1 if you need to in order for `stat' and other things to work. */
|
||||
#undef _POSIX_SOURCE
|
||||
|
||||
/* Enable extensions on Solaris. */
|
||||
#ifndef __EXTENSIONS__
|
||||
# undef __EXTENSIONS__
|
||||
#endif
|
||||
|
||||
/* Define to a type if <wchar.h> does not define. */
|
||||
#undef mbstate_t
|
||||
|
||||
/* Define to a replacement function name for realpath(). */
|
||||
#undef realpath
|
||||
|
||||
/* Define to `unsigned int' if <sys/types.h> does not define. */
|
||||
#undef size_t
|
||||
|
||||
/* Define as a signed type of the same size as size_t. */
|
||||
#undef ssize_t
|
||||
|
||||
|
||||
/* On Windows, variables that may be in a DLL must be marked specially. */
|
||||
#if defined _MSC_VER && defined _DLL
|
||||
# define DLL_VARIABLE __declspec (dllimport)
|
||||
#else
|
||||
# define DLL_VARIABLE
|
||||
#endif
|
||||
|
717
libiconv/config.h.msvc
Normal file
717
libiconv/config.h.msvc
Normal file
@ -0,0 +1,717 @@
|
||||
/* config.h.in. Generated from configure.ac by autoheader. */
|
||||
|
||||
/* Define to the number of bits in type 'int16_t'. */
|
||||
#undef BITSIZEOF_INT16_T
|
||||
|
||||
/* Define to the number of bits in type 'int32_t'. */
|
||||
#undef BITSIZEOF_INT32_T
|
||||
|
||||
/* Define to the number of bits in type 'int64_t'. */
|
||||
#undef BITSIZEOF_INT64_T
|
||||
|
||||
/* Define to the number of bits in type 'int8_t'. */
|
||||
#undef BITSIZEOF_INT8_T
|
||||
|
||||
/* Define to the number of bits in type 'intmax_t'. */
|
||||
#undef BITSIZEOF_INTMAX_T
|
||||
|
||||
/* Define to the number of bits in type 'intptr_t'. */
|
||||
#undef BITSIZEOF_INTPTR_T
|
||||
|
||||
/* Define to the number of bits in type 'int_fast16_t'. */
|
||||
#undef BITSIZEOF_INT_FAST16_T
|
||||
|
||||
/* Define to the number of bits in type 'int_fast32_t'. */
|
||||
#undef BITSIZEOF_INT_FAST32_T
|
||||
|
||||
/* Define to the number of bits in type 'int_fast64_t'. */
|
||||
#undef BITSIZEOF_INT_FAST64_T
|
||||
|
||||
/* Define to the number of bits in type 'int_fast8_t'. */
|
||||
#undef BITSIZEOF_INT_FAST8_T
|
||||
|
||||
/* Define to the number of bits in type 'int_least16_t'. */
|
||||
#undef BITSIZEOF_INT_LEAST16_T
|
||||
|
||||
/* Define to the number of bits in type 'int_least32_t'. */
|
||||
#undef BITSIZEOF_INT_LEAST32_T
|
||||
|
||||
/* Define to the number of bits in type 'int_least64_t'. */
|
||||
#undef BITSIZEOF_INT_LEAST64_T
|
||||
|
||||
/* Define to the number of bits in type 'int_least8_t'. */
|
||||
#undef BITSIZEOF_INT_LEAST8_T
|
||||
|
||||
/* Define to the number of bits in type 'long'. */
|
||||
#undef BITSIZEOF_LONG
|
||||
|
||||
/* Define to the number of bits in type 'ptrdiff_t'. */
|
||||
#undef BITSIZEOF_PTRDIFF_T
|
||||
|
||||
/* Define to the number of bits in type 'sig_atomic_t'. */
|
||||
#undef BITSIZEOF_SIG_ATOMIC_T
|
||||
|
||||
/* Define to the number of bits in type 'size_t'. */
|
||||
#undef BITSIZEOF_SIZE_T
|
||||
|
||||
/* Define to the number of bits in type 'uint16_t'. */
|
||||
#undef BITSIZEOF_UINT16_T
|
||||
|
||||
/* Define to the number of bits in type 'uint32_t'. */
|
||||
#undef BITSIZEOF_UINT32_T
|
||||
|
||||
/* Define to the number of bits in type 'uint64_t'. */
|
||||
#undef BITSIZEOF_UINT64_T
|
||||
|
||||
/* Define to the number of bits in type 'uint8_t'. */
|
||||
#undef BITSIZEOF_UINT8_T
|
||||
|
||||
/* Define to the number of bits in type 'uintmax_t'. */
|
||||
#undef BITSIZEOF_UINTMAX_T
|
||||
|
||||
/* Define to the number of bits in type 'uintptr_t'. */
|
||||
#undef BITSIZEOF_UINTPTR_T
|
||||
|
||||
/* Define to the number of bits in type 'uint_fast16_t'. */
|
||||
#undef BITSIZEOF_UINT_FAST16_T
|
||||
|
||||
/* Define to the number of bits in type 'uint_fast32_t'. */
|
||||
#undef BITSIZEOF_UINT_FAST32_T
|
||||
|
||||
/* Define to the number of bits in type 'uint_fast64_t'. */
|
||||
#undef BITSIZEOF_UINT_FAST64_T
|
||||
|
||||
/* Define to the number of bits in type 'uint_fast8_t'. */
|
||||
#undef BITSIZEOF_UINT_FAST8_T
|
||||
|
||||
/* Define to the number of bits in type 'uint_least16_t'. */
|
||||
#undef BITSIZEOF_UINT_LEAST16_T
|
||||
|
||||
/* Define to the number of bits in type 'uint_least32_t'. */
|
||||
#undef BITSIZEOF_UINT_LEAST32_T
|
||||
|
||||
/* Define to the number of bits in type 'uint_least64_t'. */
|
||||
#undef BITSIZEOF_UINT_LEAST64_T
|
||||
|
||||
/* Define to the number of bits in type 'uint_least8_t'. */
|
||||
#undef BITSIZEOF_UINT_LEAST8_T
|
||||
|
||||
/* Define to the number of bits in type 'unsigned_int'. */
|
||||
#undef BITSIZEOF_UNSIGNED_INT
|
||||
|
||||
/* Define to the number of bits in type 'unsigned_long'. */
|
||||
#undef BITSIZEOF_UNSIGNED_LONG
|
||||
|
||||
/* Define to the number of bits in type 'wchar_t'. */
|
||||
#undef BITSIZEOF_WCHAR_T
|
||||
|
||||
/* Define to the number of bits in type 'wint_t'. */
|
||||
#undef BITSIZEOF_WINT_T
|
||||
|
||||
/* Define to one of `_getb67', `GETB67', `getb67' for Cray-2 and Cray-YMP
|
||||
systems. This function is required for `alloca.c' support on those systems.
|
||||
*/
|
||||
#undef CRAY_STACKSEG_END
|
||||
|
||||
/* Define to 1 if using `alloca.c'. */
|
||||
#undef C_ALLOCA
|
||||
|
||||
/* Define as good substitute value for EILSEQ. */
|
||||
#undef EILSEQ
|
||||
|
||||
/* Define to 1 to enable a few rarely used encodings. */
|
||||
#undef ENABLE_EXTRA
|
||||
|
||||
/* Define to 1 if translation of program messages to the user's native
|
||||
language is requested. */
|
||||
|
||||
/* Define to 1 if the package shall run at any location in the filesystem. */
|
||||
#define ENABLE_RELOCATABLE 1
|
||||
|
||||
/* Define this to the full path to <inttypes.h>. */
|
||||
#undef FULL_PATH_INTTYPES_H
|
||||
|
||||
/* Define this to the full path to <stdint.h>. */
|
||||
#undef FULL_PATH_STDINT_H
|
||||
|
||||
/* Define to 1 if you have `alloca', as a function or macro. */
|
||||
#define HAVE_ALLOCA 1
|
||||
|
||||
/* Define to 1 if you have <alloca.h> and it should be used (not on Ultrix).
|
||||
*/
|
||||
#undef HAVE_ALLOCA_H
|
||||
|
||||
/* Define to 1 if you have the `canonicalize_file_name' function. */
|
||||
#undef HAVE_CANONICALIZE_FILE_NAME
|
||||
|
||||
/* Define to 1 if you have the MacOS X function CFLocaleCopyCurrent in the
|
||||
CoreFoundation framework. */
|
||||
#undef HAVE_CFLOCALECOPYCURRENT
|
||||
|
||||
/* Define to 1 if you have the MacOS X function CFPreferencesCopyAppValue in
|
||||
the CoreFoundation framework. */
|
||||
#undef HAVE_CFPREFERENCESCOPYAPPVALUE
|
||||
|
||||
/* Define if the GNU dcgettext() function is already present or preinstalled.
|
||||
*/
|
||||
#undef HAVE_DCGETTEXT
|
||||
|
||||
/* Define to 1 if you have the declaration of `clearerr_unlocked', and to 0 if
|
||||
you don't. */
|
||||
#undef HAVE_DECL_CLEARERR_UNLOCKED
|
||||
|
||||
/* Define to 1 if you have the declaration of `feof_unlocked', and to 0 if you
|
||||
don't. */
|
||||
#undef HAVE_DECL_FEOF_UNLOCKED
|
||||
|
||||
/* Define to 1 if you have the declaration of `ferror_unlocked', and to 0 if
|
||||
you don't. */
|
||||
#undef HAVE_DECL_FERROR_UNLOCKED
|
||||
|
||||
/* Define to 1 if you have the declaration of `fflush_unlocked', and to 0 if
|
||||
you don't. */
|
||||
#undef HAVE_DECL_FFLUSH_UNLOCKED
|
||||
|
||||
/* Define to 1 if you have the declaration of `fgets_unlocked', and to 0 if
|
||||
you don't. */
|
||||
#undef HAVE_DECL_FGETS_UNLOCKED
|
||||
|
||||
/* Define to 1 if you have the declaration of `fputc_unlocked', and to 0 if
|
||||
you don't. */
|
||||
#undef HAVE_DECL_FPUTC_UNLOCKED
|
||||
|
||||
/* Define to 1 if you have the declaration of `fputs_unlocked', and to 0 if
|
||||
you don't. */
|
||||
#undef HAVE_DECL_FPUTS_UNLOCKED
|
||||
|
||||
/* Define to 1 if you have the declaration of `fread_unlocked', and to 0 if
|
||||
you don't. */
|
||||
#undef HAVE_DECL_FREAD_UNLOCKED
|
||||
|
||||
/* Define to 1 if you have the declaration of `fwrite_unlocked', and to 0 if
|
||||
you don't. */
|
||||
#undef HAVE_DECL_FWRITE_UNLOCKED
|
||||
|
||||
/* Define to 1 if you have the declaration of `getchar_unlocked', and to 0 if
|
||||
you don't. */
|
||||
#undef HAVE_DECL_GETCHAR_UNLOCKED
|
||||
|
||||
/* Define to 1 if you have the declaration of `getc_unlocked', and to 0 if you
|
||||
don't. */
|
||||
#undef HAVE_DECL_GETC_UNLOCKED
|
||||
|
||||
/* Define to 1 if you have the declaration of `putchar_unlocked', and to 0 if
|
||||
you don't. */
|
||||
#undef HAVE_DECL_PUTCHAR_UNLOCKED
|
||||
|
||||
/* Define to 1 if you have the declaration of `putc_unlocked', and to 0 if you
|
||||
don't. */
|
||||
#undef HAVE_DECL_PUTC_UNLOCKED
|
||||
|
||||
/* Define to 1 if you have the declaration of `strerror_r', and to 0 if you
|
||||
don't. */
|
||||
#undef HAVE_DECL_STRERROR_R
|
||||
|
||||
/* Define to 1 if you have the <dlfcn.h> header file. */
|
||||
#undef HAVE_DLFCN_H
|
||||
|
||||
/* Define if you have the declaration of environ. */
|
||||
#define HAVE_ENVIRON_DECL 1
|
||||
|
||||
/* Define if you have the declaration of errno. */
|
||||
#define HAVE_ERRNO_DECL 1
|
||||
|
||||
/* Define to 1 if you have the `getcwd' function. */
|
||||
#define HAVE_GETCWD 1
|
||||
|
||||
/* Define to 1 if you have the `getc_unlocked' function. */
|
||||
#undef HAVE_GETC_UNLOCKED
|
||||
|
||||
/* Define if the GNU gettext() function is already present or preinstalled. */
|
||||
#undef HAVE_GETTEXT
|
||||
|
||||
/* Define if you have the iconv() function. */
|
||||
#undef HAVE_ICONV
|
||||
|
||||
/* Define to 1 if the type 'int16_t' is already defined. */
|
||||
#undef HAVE_INT16_T
|
||||
|
||||
/* Define to 1 if the type 'int32_t' is already defined. */
|
||||
#undef HAVE_INT32_T
|
||||
|
||||
/* Define to 1 if the type 'int64_t' is already defined. */
|
||||
#undef HAVE_INT64_T
|
||||
|
||||
/* Define to 1 if the type 'int64_t' is already definedin <stdint.h>. */
|
||||
#undef HAVE_INT64_T_IN_STDINT_H
|
||||
|
||||
/* Define to 1 if the type 'int8_t' is already defined. */
|
||||
#undef HAVE_INT8_T
|
||||
|
||||
/* Define to 1 if the type 'intmax_t' is already defined. */
|
||||
#undef HAVE_INTMAX_T
|
||||
|
||||
/* Define to 1 if the type 'intptr_t' is already defined. */
|
||||
#undef HAVE_INTPTR_T
|
||||
|
||||
/* Define to 1 if you have the <inttypes.h> header file. */
|
||||
#undef HAVE_INTTYPES_H
|
||||
|
||||
/* Define to 1 if the type 'int_fast16_t' is already defined. */
|
||||
#undef HAVE_INT_FAST16_T
|
||||
|
||||
/* Define to 1 if the type 'int_fast32_t' is already defined. */
|
||||
#undef HAVE_INT_FAST32_T
|
||||
|
||||
/* Define to 1 if the type 'int_fast64_t' is already defined. */
|
||||
#undef HAVE_INT_FAST64_T
|
||||
|
||||
/* Define to 1 if the type 'int_fast64_t' is already definedin <stdint.h>. */
|
||||
#undef HAVE_INT_FAST64_T_IN_STDINT_H
|
||||
|
||||
/* Define to 1 if the type 'int_fast8_t' is already defined. */
|
||||
#undef HAVE_INT_FAST8_T
|
||||
|
||||
/* Define to 1 if the type 'int_least16_t' is already defined. */
|
||||
#undef HAVE_INT_LEAST16_T
|
||||
|
||||
/* Define to 1 if the type 'int_least32_t' is already defined. */
|
||||
#undef HAVE_INT_LEAST32_T
|
||||
|
||||
/* Define to 1 if the type 'int_least64_t' is already defined. */
|
||||
#undef HAVE_INT_LEAST64_T
|
||||
|
||||
/* Define to 1 if the type 'int_least64_t' is already definedin <stdint.h>. */
|
||||
#undef HAVE_INT_LEAST64_T_IN_STDINT_H
|
||||
|
||||
/* Define to 1 if the type 'int_least8_t' is already defined. */
|
||||
#undef HAVE_INT_LEAST8_T
|
||||
|
||||
/* Define if you have <langinfo.h> and nl_langinfo(CODESET). */
|
||||
#undef HAVE_LANGINFO_CODESET
|
||||
|
||||
/* Define to 1 if you have the <locale.h> header file. */
|
||||
#define HAVE_LOCALE_H 1
|
||||
|
||||
/* Define if you have the 'long double' type. */
|
||||
#undef HAVE_LONG_DOUBLE
|
||||
|
||||
/* Define if you have the 'long long' type. */
|
||||
#undef HAVE_LONG_LONG
|
||||
|
||||
/* Define to 1 if you have the <mach-o/dyld.h> header file. */
|
||||
#undef HAVE_MACH_O_DYLD_H
|
||||
|
||||
/* Define to 1 if you have the `mbrtowc' function. */
|
||||
#undef HAVE_MBRTOWC
|
||||
|
||||
/* Define to 1 if you have the `mbsinit' function. */
|
||||
#undef HAVE_MBSINIT
|
||||
|
||||
/* Define to 1 if <wchar.h> declares mbstate_t. */
|
||||
#undef HAVE_MBSTATE_T
|
||||
|
||||
/* Define to 1 if you have the `memmove' function. */
|
||||
#define HAVE_MEMMOVE 1
|
||||
|
||||
/* Define to 1 if you have the <memory.h> header file. */
|
||||
#define HAVE_MEMORY_H 1
|
||||
|
||||
/* Define to 1 if the system has the type `ptrdiff_t'. */
|
||||
#undef HAVE_PTRDIFF_T
|
||||
|
||||
/* Define to 1 if you have the `readlink' function. */
|
||||
#undef HAVE_READLINK
|
||||
|
||||
/* Define to 1 if you have the <search.h> header file. */
|
||||
#define HAVE_SEARCH_H 1
|
||||
|
||||
/* Define to 1 if you have the `setenv' function. */
|
||||
#undef HAVE_SETENV
|
||||
|
||||
/* Define to 1 if you have the `setlocale' function. */
|
||||
#define HAVE_SETLOCALE 1
|
||||
|
||||
/* Define to 1 if 'sig_atomic_t' is a signed integer type. */
|
||||
#undef HAVE_SIGNED_SIG_ATOMIC_T
|
||||
|
||||
/* Define to 1 if 'wchar_t' is a signed integer type. */
|
||||
#undef HAVE_SIGNED_WCHAR_T
|
||||
|
||||
/* Define to 1 if 'wint_t' is a signed integer type. */
|
||||
#undef HAVE_SIGNED_WINT_T
|
||||
|
||||
/* Define to 1 if the system has the type `sig_atomic_t'. */
|
||||
#undef HAVE_SIG_ATOMIC_T
|
||||
|
||||
/* Define to 1 if stdbool.h conforms to C99. */
|
||||
#undef HAVE_STDBOOL_H
|
||||
|
||||
/* Define to 1 if you have the <stddef.h> header file. */
|
||||
#define HAVE_STDDEF_H 1
|
||||
|
||||
/* Define to 1 if you have the <stdint.h> header file. */
|
||||
#undef HAVE_STDINT_H
|
||||
|
||||
/* Define to 1 if you have the <stdlib.h> header file. */
|
||||
#define HAVE_STDLIB_H 1
|
||||
|
||||
/* Define to 1 if you have the `strerror' function. */
|
||||
#define HAVE_STRERROR 1
|
||||
|
||||
/* Define to 1 if you have the `strerror_r' function. */
|
||||
#undef HAVE_STRERROR_R
|
||||
|
||||
/* Define to 1 if you have the <strings.h> header file. */
|
||||
#undef HAVE_STRINGS_H
|
||||
|
||||
/* Define to 1 if you have the <string.h> header file. */
|
||||
#define HAVE_STRING_H 1
|
||||
|
||||
/* Define to 1 if you have the <sys/bitypes.h> header file. */
|
||||
#undef HAVE_SYS_BITYPES_H
|
||||
|
||||
/* Define to 1 if you have the <sys/inttypes.h> header file. */
|
||||
#undef HAVE_SYS_INTTYPES_H
|
||||
|
||||
/* Define to 1 if you have the <sys/param.h> header file. */
|
||||
#undef HAVE_SYS_PARAM_H
|
||||
|
||||
/* Define to 1 if you have the <sys/stat.h> header file. */
|
||||
#define HAVE_SYS_STAT_H 1
|
||||
|
||||
/* Define to 1 if you have the <sys/types.h> header file. */
|
||||
#define HAVE_SYS_TYPES_H 1
|
||||
|
||||
/* Define to 1 if you have the `tsearch' function. */
|
||||
#undef HAVE_TSEARCH
|
||||
|
||||
/* Define to 1 if the type 'uint16_t' is already defined. */
|
||||
#undef HAVE_UINT16_T
|
||||
|
||||
/* Define to 1 if the type 'uint32_t' is already defined. */
|
||||
#undef HAVE_UINT32_T
|
||||
|
||||
/* Define to 1 if the type 'uint64_t' is already defined. */
|
||||
#undef HAVE_UINT64_T
|
||||
|
||||
/* Define to 1 if the type 'uint64_t' is already definedin <stdint.h>. */
|
||||
#undef HAVE_UINT64_T_IN_STDINT_H
|
||||
|
||||
/* Define to 1 if the type 'uint8_t' is already defined. */
|
||||
#undef HAVE_UINT8_T
|
||||
|
||||
/* Define to 1 if the type 'uintmax_t' is already defined. */
|
||||
#undef HAVE_UINTMAX_T
|
||||
|
||||
/* Define to 1 if the type 'uintptr_t' is already defined. */
|
||||
#undef HAVE_UINTPTR_T
|
||||
|
||||
/* Define to 1 if the type 'uint_fast16_t' is already defined. */
|
||||
#undef HAVE_UINT_FAST16_T
|
||||
|
||||
/* Define to 1 if the type 'uint_fast32_t' is already defined. */
|
||||
#undef HAVE_UINT_FAST32_T
|
||||
|
||||
/* Define to 1 if the type 'uint_fast64_t' is already defined. */
|
||||
#undef HAVE_UINT_FAST64_T
|
||||
|
||||
/* Define to 1 if the type 'uint_fast64_t' is already definedin <stdint.h>. */
|
||||
#undef HAVE_UINT_FAST64_T_IN_STDINT_H
|
||||
|
||||
/* Define to 1 if the type 'uint_fast8_t' is already defined. */
|
||||
#undef HAVE_UINT_FAST8_T
|
||||
|
||||
/* Define to 1 if the type 'uint_least16_t' is already defined. */
|
||||
#undef HAVE_UINT_LEAST16_T
|
||||
|
||||
/* Define to 1 if the type 'uint_least32_t' is already defined. */
|
||||
#undef HAVE_UINT_LEAST32_T
|
||||
|
||||
/* Define to 1 if the type 'uint_least64_t' is already defined. */
|
||||
#undef HAVE_UINT_LEAST64_T
|
||||
|
||||
/* Define to 1 if the type 'uint_least64_t' is already definedin <stdint.h>.
|
||||
*/
|
||||
#undef HAVE_UINT_LEAST64_T_IN_STDINT_H
|
||||
|
||||
/* Define to 1 if the type 'uint_least8_t' is already defined. */
|
||||
#undef HAVE_UINT_LEAST8_T
|
||||
|
||||
/* Define to 1 if you have the <unistd.h> header file. */
|
||||
#undef HAVE_UNISTD_H
|
||||
|
||||
/* Define to 1 if you have the `unsetenv' function. */
|
||||
#undef HAVE_UNSETENV
|
||||
|
||||
/* Define to 1 or 0, depending whether the compiler supports simple visibility
|
||||
declarations. */
|
||||
#undef HAVE_VISIBILITY
|
||||
|
||||
/* Define to 1 if you have the <wchar.h> header file. */
|
||||
#undef HAVE_WCHAR_H
|
||||
|
||||
/* Define if you have the 'wchar_t' type. */
|
||||
#undef HAVE_WCHAR_T
|
||||
|
||||
/* Define to 1 if you have the `wcrtomb' function. */
|
||||
#undef HAVE_WCRTOMB
|
||||
|
||||
/* Define to 1 if the system has the type `wint_t'. */
|
||||
#undef HAVE_WINT_T
|
||||
|
||||
/* Define to 1 if the system has the type `_Bool'. */
|
||||
#undef HAVE__BOOL
|
||||
|
||||
/* Define to 1 if you have the `_NSGetExecutablePath' function. */
|
||||
#undef HAVE__NSGETEXECUTABLEPATH
|
||||
|
||||
/* Define as const if the declaration of iconv() needs const. */
|
||||
#undef ICONV_CONST
|
||||
|
||||
/* Define to the value of ${prefix}, as a string. */
|
||||
|
||||
/* Define if <stdint.h> doesn't define it. */
|
||||
#undef INT16_MAX
|
||||
|
||||
/* Define if <stdint.h> doesn't define it. */
|
||||
#undef INT16_MIN
|
||||
|
||||
/* Define if <stdint.h> doesn't define it. */
|
||||
#undef INT32_MAX
|
||||
|
||||
/* Define if <stdint.h> doesn't define it. */
|
||||
#undef INT32_MIN
|
||||
|
||||
/* Define if <stdint.h> doesn't define it but has the int64_t type. */
|
||||
#undef INT64_MAX
|
||||
|
||||
/* Define if <stdint.h> doesn't define it but has the int64_t type. */
|
||||
#undef INT64_MIN
|
||||
|
||||
/* Define if <stdint.h> doesn't define it. */
|
||||
#undef INT8_MAX
|
||||
|
||||
/* Define if <stdint.h> doesn't define it. */
|
||||
#undef INT8_MIN
|
||||
|
||||
/* Define if <stdint.h> doesn't define it. */
|
||||
#undef INTMAX_MAX
|
||||
|
||||
/* Define if <stdint.h> doesn't define it. */
|
||||
#undef INTMAX_MIN
|
||||
|
||||
/* Define if <stdint.h> doesn't define it. */
|
||||
#undef INTPTR_MAX
|
||||
|
||||
/* Define if <stdint.h> doesn't define it. */
|
||||
#undef INTPTR_MIN
|
||||
|
||||
/* Define if <stdint.h> doesn't define it. */
|
||||
#undef INT_FAST16_MAX
|
||||
|
||||
/* Define if <stdint.h> doesn't define it. */
|
||||
#undef INT_FAST16_MIN
|
||||
|
||||
/* Define if <stdint.h> doesn't define it. */
|
||||
#undef INT_FAST32_MAX
|
||||
|
||||
/* Define if <stdint.h> doesn't define it. */
|
||||
#undef INT_FAST32_MIN
|
||||
|
||||
/* Define if <stdint.h> doesn't define it. */
|
||||
#undef INT_FAST64_MAX
|
||||
|
||||
/* Define if <stdint.h> doesn't define it. */
|
||||
#undef INT_FAST64_MIN
|
||||
|
||||
/* Define if <stdint.h> doesn't define it. */
|
||||
#undef INT_FAST8_MAX
|
||||
|
||||
/* Define if <stdint.h> doesn't define it. */
|
||||
#undef INT_FAST8_MIN
|
||||
|
||||
/* Define if <stdint.h> doesn't define it. */
|
||||
#undef INT_LEAST16_MAX
|
||||
|
||||
/* Define if <stdint.h> doesn't define it. */
|
||||
#undef INT_LEAST16_MIN
|
||||
|
||||
/* Define if <stdint.h> doesn't define it. */
|
||||
#undef INT_LEAST32_MAX
|
||||
|
||||
/* Define if <stdint.h> doesn't define it. */
|
||||
#undef INT_LEAST32_MIN
|
||||
|
||||
/* Define if <stdint.h> doesn't define it but has the int_least64_t type. */
|
||||
#undef INT_LEAST64_MAX
|
||||
|
||||
/* Define if <stdint.h> doesn't define it but has the int_least64_t type. */
|
||||
#undef INT_LEAST64_MIN
|
||||
|
||||
/* Define if <stdint.h> doesn't define it. */
|
||||
#undef INT_LEAST8_MAX
|
||||
|
||||
/* Define if <stdint.h> doesn't define it. */
|
||||
#undef INT_LEAST8_MIN
|
||||
|
||||
/* If malloc(0) is != NULL, define this to 1. Otherwise define this to 0. */
|
||||
#define MALLOC_0_IS_NONNULL 1
|
||||
|
||||
/* Name of package */
|
||||
#undef PACKAGE
|
||||
|
||||
/* Define to the address where bug reports for this package should be sent. */
|
||||
#undef PACKAGE_BUGREPORT
|
||||
|
||||
/* Define to the full name of this package. */
|
||||
#undef PACKAGE_NAME
|
||||
|
||||
/* Define to the full name and version of this package. */
|
||||
#undef PACKAGE_STRING
|
||||
|
||||
/* Define to the one symbol short name of this package. */
|
||||
#undef PACKAGE_TARNAME
|
||||
|
||||
/* Define to the version of this package. */
|
||||
#undef PACKAGE_VERSION
|
||||
|
||||
/* Define if <stdint.h> doesn't define it. */
|
||||
#undef PTRDIFF_MAX
|
||||
|
||||
/* Define if <stdint.h> doesn't define it. */
|
||||
#undef PTRDIFF_MIN
|
||||
|
||||
/* Define if <stdint.h> doesn't define it. */
|
||||
#undef SIG_ATOMIC_MAX
|
||||
|
||||
/* Define if <stdint.h> doesn't define it. */
|
||||
#undef SIG_ATOMIC_MIN
|
||||
|
||||
/* Define as the maximum value of type 'size_t', if the system doesn't define
|
||||
it. */
|
||||
#undef SIZE_MAX
|
||||
|
||||
/* If using the C implementation of alloca, define if you know the
|
||||
direction of stack growth for your system; otherwise it will be
|
||||
automatically deduced at runtime.
|
||||
STACK_DIRECTION > 0 => grows toward higher addresses
|
||||
STACK_DIRECTION < 0 => grows toward lower addresses
|
||||
STACK_DIRECTION = 0 => direction of growth unknown */
|
||||
#define STACK_DIRECTION -1
|
||||
|
||||
/* Define to 1 if you have the ANSI C header files. */
|
||||
#define STDC_HEADERS 1
|
||||
|
||||
/* Define to 1 if strerror_r returns char *. */
|
||||
#undef STRERROR_R_CHAR_P
|
||||
|
||||
/* Define if <stdint.h> doesn't define it. */
|
||||
#undef UINT16_MAX
|
||||
|
||||
/* Define if <stdint.h> doesn't define it. */
|
||||
#undef UINT32_MAX
|
||||
|
||||
/* Define if <stdint.h> doesn't define it but has the uint64_t type. */
|
||||
#undef UINT64_MAX
|
||||
|
||||
/* Define if <stdint.h> doesn't define it. */
|
||||
#undef UINT8_MAX
|
||||
|
||||
/* Define if <stdint.h> doesn't define it. */
|
||||
#undef UINTMAX_MAX
|
||||
|
||||
/* Define if <stdint.h> doesn't define it. */
|
||||
#undef UINTPTR_MAX
|
||||
|
||||
/* Define if <stdint.h> doesn't define it. */
|
||||
#undef UINT_FAST16_MAX
|
||||
|
||||
/* Define if <stdint.h> doesn't define it. */
|
||||
#undef UINT_FAST32_MAX
|
||||
|
||||
/* Define if <stdint.h> doesn't define it. */
|
||||
#undef UINT_FAST64_MAX
|
||||
|
||||
/* Define if <stdint.h> doesn't define it. */
|
||||
#undef UINT_FAST8_MAX
|
||||
|
||||
/* Define if <stdint.h> doesn't define it. */
|
||||
#undef UINT_LEAST16_MAX
|
||||
|
||||
/* Define if <stdint.h> doesn't define it. */
|
||||
#undef UINT_LEAST32_MAX
|
||||
|
||||
/* Define if <stdint.h> doesn't define it but has the uint_least64_t type. */
|
||||
#undef UINT_LEAST64_MAX
|
||||
|
||||
/* Define if <stdint.h> doesn't define it. */
|
||||
#undef UINT_LEAST8_MAX
|
||||
|
||||
/* Define to 1 if you want getc etc. to use unlocked I/O if available.
|
||||
Unlocked I/O can improve performance in unithreaded apps, but it is not
|
||||
safe for multithreaded apps. */
|
||||
#undef USE_UNLOCKED_IO
|
||||
|
||||
/* Version number of package */
|
||||
#undef VERSION
|
||||
|
||||
/* Define if unsetenv() returns void, not int. */
|
||||
#undef VOID_UNSETENV
|
||||
|
||||
/* Define if <stdint.h> doesn't define it. */
|
||||
#undef WINT_MAX
|
||||
|
||||
/* Define if <stdint.h> doesn't define it. */
|
||||
#undef WINT_MIN
|
||||
|
||||
/* Define if the machine's byte ordering is little endian. */
|
||||
#define WORDS_LITTLEENDIAN 1
|
||||
|
||||
/* Define to 1 if on AIX 3.
|
||||
System headers sometimes define this.
|
||||
We just want to avoid a redefinition error message. */
|
||||
#ifndef _ALL_SOURCE
|
||||
# undef _ALL_SOURCE
|
||||
#endif
|
||||
|
||||
/* Enable GNU extensions on systems that have them. */
|
||||
#ifndef _GNU_SOURCE
|
||||
# undef _GNU_SOURCE
|
||||
#endif
|
||||
|
||||
/* Define to 1 if on MINIX. */
|
||||
#undef _MINIX
|
||||
|
||||
/* Define to 2 if the system does not provide POSIX.1 features except with
|
||||
this defined. */
|
||||
#undef _POSIX_1_SOURCE
|
||||
|
||||
/* Define to 1 if you need to in order for `stat' and other things to work. */
|
||||
#undef _POSIX_SOURCE
|
||||
|
||||
/* Enable extensions on Solaris. */
|
||||
#ifndef __EXTENSIONS__
|
||||
# undef __EXTENSIONS__
|
||||
#endif
|
||||
|
||||
/* Define to a type if <wchar.h> does not define. */
|
||||
#undef mbstate_t
|
||||
|
||||
/* Define to a replacement function name for realpath(). */
|
||||
#undef realpath
|
||||
|
||||
/* Define to `unsigned int' if <sys/types.h> does not define. */
|
||||
#undef size_t
|
||||
|
||||
/* Define as a signed type of the same size as size_t. */
|
||||
#undef ssize_t
|
||||
|
||||
|
||||
/* On Windows, variables that may be in a DLL must be marked specially. */
|
||||
#if defined _MSC_VER && defined _DLL
|
||||
# define DLL_VARIABLE __declspec (dllimport)
|
||||
#else
|
||||
# define DLL_VARIABLE
|
||||
#endif
|
||||
|
718
libiconv/config.h_vms
Normal file
718
libiconv/config.h_vms
Normal file
@ -0,0 +1,718 @@
|
||||
/* config.h.in. Generated from configure.ac by autoheader. */
|
||||
|
||||
/* Define to the number of bits in type 'int16_t'. */
|
||||
#undef BITSIZEOF_INT16_T
|
||||
|
||||
/* Define to the number of bits in type 'int32_t'. */
|
||||
#undef BITSIZEOF_INT32_T
|
||||
|
||||
/* Define to the number of bits in type 'int64_t'. */
|
||||
#undef BITSIZEOF_INT64_T
|
||||
|
||||
/* Define to the number of bits in type 'int8_t'. */
|
||||
#undef BITSIZEOF_INT8_T
|
||||
|
||||
/* Define to the number of bits in type 'intmax_t'. */
|
||||
#undef BITSIZEOF_INTMAX_T
|
||||
|
||||
/* Define to the number of bits in type 'intptr_t'. */
|
||||
#undef BITSIZEOF_INTPTR_T
|
||||
|
||||
/* Define to the number of bits in type 'int_fast16_t'. */
|
||||
#undef BITSIZEOF_INT_FAST16_T
|
||||
|
||||
/* Define to the number of bits in type 'int_fast32_t'. */
|
||||
#undef BITSIZEOF_INT_FAST32_T
|
||||
|
||||
/* Define to the number of bits in type 'int_fast64_t'. */
|
||||
#undef BITSIZEOF_INT_FAST64_T
|
||||
|
||||
/* Define to the number of bits in type 'int_fast8_t'. */
|
||||
#undef BITSIZEOF_INT_FAST8_T
|
||||
|
||||
/* Define to the number of bits in type 'int_least16_t'. */
|
||||
#undef BITSIZEOF_INT_LEAST16_T
|
||||
|
||||
/* Define to the number of bits in type 'int_least32_t'. */
|
||||
#undef BITSIZEOF_INT_LEAST32_T
|
||||
|
||||
/* Define to the number of bits in type 'int_least64_t'. */
|
||||
#undef BITSIZEOF_INT_LEAST64_T
|
||||
|
||||
/* Define to the number of bits in type 'int_least8_t'. */
|
||||
#undef BITSIZEOF_INT_LEAST8_T
|
||||
|
||||
/* Define to the number of bits in type 'long'. */
|
||||
#undef BITSIZEOF_LONG
|
||||
|
||||
/* Define to the number of bits in type 'ptrdiff_t'. */
|
||||
#undef BITSIZEOF_PTRDIFF_T
|
||||
|
||||
/* Define to the number of bits in type 'sig_atomic_t'. */
|
||||
#undef BITSIZEOF_SIG_ATOMIC_T
|
||||
|
||||
/* Define to the number of bits in type 'size_t'. */
|
||||
#undef BITSIZEOF_SIZE_T
|
||||
|
||||
/* Define to the number of bits in type 'uint16_t'. */
|
||||
#undef BITSIZEOF_UINT16_T
|
||||
|
||||
/* Define to the number of bits in type 'uint32_t'. */
|
||||
#undef BITSIZEOF_UINT32_T
|
||||
|
||||
/* Define to the number of bits in type 'uint64_t'. */
|
||||
#undef BITSIZEOF_UINT64_T
|
||||
|
||||
/* Define to the number of bits in type 'uint8_t'. */
|
||||
#undef BITSIZEOF_UINT8_T
|
||||
|
||||
/* Define to the number of bits in type 'uintmax_t'. */
|
||||
#undef BITSIZEOF_UINTMAX_T
|
||||
|
||||
/* Define to the number of bits in type 'uintptr_t'. */
|
||||
#undef BITSIZEOF_UINTPTR_T
|
||||
|
||||
/* Define to the number of bits in type 'uint_fast16_t'. */
|
||||
#undef BITSIZEOF_UINT_FAST16_T
|
||||
|
||||
/* Define to the number of bits in type 'uint_fast32_t'. */
|
||||
#undef BITSIZEOF_UINT_FAST32_T
|
||||
|
||||
/* Define to the number of bits in type 'uint_fast64_t'. */
|
||||
#undef BITSIZEOF_UINT_FAST64_T
|
||||
|
||||
/* Define to the number of bits in type 'uint_fast8_t'. */
|
||||
#undef BITSIZEOF_UINT_FAST8_T
|
||||
|
||||
/* Define to the number of bits in type 'uint_least16_t'. */
|
||||
#undef BITSIZEOF_UINT_LEAST16_T
|
||||
|
||||
/* Define to the number of bits in type 'uint_least32_t'. */
|
||||
#undef BITSIZEOF_UINT_LEAST32_T
|
||||
|
||||
/* Define to the number of bits in type 'uint_least64_t'. */
|
||||
#undef BITSIZEOF_UINT_LEAST64_T
|
||||
|
||||
/* Define to the number of bits in type 'uint_least8_t'. */
|
||||
#undef BITSIZEOF_UINT_LEAST8_T
|
||||
|
||||
/* Define to the number of bits in type 'unsigned_int'. */
|
||||
#undef BITSIZEOF_UNSIGNED_INT
|
||||
|
||||
/* Define to the number of bits in type 'unsigned_long'. */
|
||||
#undef BITSIZEOF_UNSIGNED_LONG
|
||||
|
||||
/* Define to the number of bits in type 'wchar_t'. */
|
||||
#undef BITSIZEOF_WCHAR_T
|
||||
|
||||
/* Define to the number of bits in type 'wint_t'. */
|
||||
#undef BITSIZEOF_WINT_T
|
||||
|
||||
/* Define to one of `_getb67', `GETB67', `getb67' for Cray-2 and Cray-YMP
|
||||
systems. This function is required for `alloca.c' support on those systems.
|
||||
*/
|
||||
#undef CRAY_STACKSEG_END
|
||||
|
||||
/* Define to 1 if using `alloca.c'. */
|
||||
#undef C_ALLOCA
|
||||
|
||||
/* Define as good substitute value for EILSEQ. */
|
||||
#undef EILSEQ
|
||||
|
||||
/* Define to 1 to enable a few rarely used encodings. */
|
||||
#undef ENABLE_EXTRA
|
||||
|
||||
/* Define to 1 if translation of program messages to the user's native
|
||||
language is requested. */
|
||||
#define ENABLE_NLS 1
|
||||
|
||||
/* Define to 1 if the package shall run at any location in the filesystem. */
|
||||
#define ENABLE_RELOCATABLE 1
|
||||
|
||||
/* Define this to the full path to <inttypes.h>. */
|
||||
#undef FULL_PATH_INTTYPES_H
|
||||
|
||||
/* Define this to the full path to <stdint.h>. */
|
||||
#undef FULL_PATH_STDINT_H
|
||||
|
||||
/* Define to 1 if you have `alloca', as a function or macro. */
|
||||
#define HAVE_ALLOCA 1
|
||||
|
||||
/* Define to 1 if you have <alloca.h> and it should be used (not on Ultrix).
|
||||
*/
|
||||
#undef HAVE_ALLOCA_H
|
||||
|
||||
/* Define to 1 if you have the `canonicalize_file_name' function. */
|
||||
#undef HAVE_CANONICALIZE_FILE_NAME
|
||||
|
||||
/* Define to 1 if you have the MacOS X function CFLocaleCopyCurrent in the
|
||||
CoreFoundation framework. */
|
||||
#undef HAVE_CFLOCALECOPYCURRENT
|
||||
|
||||
/* Define to 1 if you have the MacOS X function CFPreferencesCopyAppValue in
|
||||
the CoreFoundation framework. */
|
||||
#undef HAVE_CFPREFERENCESCOPYAPPVALUE
|
||||
|
||||
/* Define if the GNU dcgettext() function is already present or preinstalled.
|
||||
*/
|
||||
#undef HAVE_DCGETTEXT
|
||||
|
||||
/* Define to 1 if you have the declaration of `clearerr_unlocked', and to 0 if
|
||||
you don't. */
|
||||
#undef HAVE_DECL_CLEARERR_UNLOCKED
|
||||
|
||||
/* Define to 1 if you have the declaration of `feof_unlocked', and to 0 if you
|
||||
don't. */
|
||||
#undef HAVE_DECL_FEOF_UNLOCKED
|
||||
|
||||
/* Define to 1 if you have the declaration of `ferror_unlocked', and to 0 if
|
||||
you don't. */
|
||||
#undef HAVE_DECL_FERROR_UNLOCKED
|
||||
|
||||
/* Define to 1 if you have the declaration of `fflush_unlocked', and to 0 if
|
||||
you don't. */
|
||||
#undef HAVE_DECL_FFLUSH_UNLOCKED
|
||||
|
||||
/* Define to 1 if you have the declaration of `fgets_unlocked', and to 0 if
|
||||
you don't. */
|
||||
#undef HAVE_DECL_FGETS_UNLOCKED
|
||||
|
||||
/* Define to 1 if you have the declaration of `fputc_unlocked', and to 0 if
|
||||
you don't. */
|
||||
#undef HAVE_DECL_FPUTC_UNLOCKED
|
||||
|
||||
/* Define to 1 if you have the declaration of `fputs_unlocked', and to 0 if
|
||||
you don't. */
|
||||
#undef HAVE_DECL_FPUTS_UNLOCKED
|
||||
|
||||
/* Define to 1 if you have the declaration of `fread_unlocked', and to 0 if
|
||||
you don't. */
|
||||
#undef HAVE_DECL_FREAD_UNLOCKED
|
||||
|
||||
/* Define to 1 if you have the declaration of `fwrite_unlocked', and to 0 if
|
||||
you don't. */
|
||||
#undef HAVE_DECL_FWRITE_UNLOCKED
|
||||
|
||||
/* Define to 1 if you have the declaration of `getchar_unlocked', and to 0 if
|
||||
you don't. */
|
||||
#undef HAVE_DECL_GETCHAR_UNLOCKED
|
||||
|
||||
/* Define to 1 if you have the declaration of `getc_unlocked', and to 0 if you
|
||||
don't. */
|
||||
#undef HAVE_DECL_GETC_UNLOCKED
|
||||
|
||||
/* Define to 1 if you have the declaration of `putchar_unlocked', and to 0 if
|
||||
you don't. */
|
||||
#undef HAVE_DECL_PUTCHAR_UNLOCKED
|
||||
|
||||
/* Define to 1 if you have the declaration of `putc_unlocked', and to 0 if you
|
||||
don't. */
|
||||
#undef HAVE_DECL_PUTC_UNLOCKED
|
||||
|
||||
/* Define to 1 if you have the declaration of `strerror_r', and to 0 if you
|
||||
don't. */
|
||||
#undef HAVE_DECL_STRERROR_R
|
||||
|
||||
/* Define to 1 if you have the <dlfcn.h> header file. */
|
||||
#define HAVE_DLFCN_H 1
|
||||
|
||||
/* Define if you have the declaration of environ. */
|
||||
#undef HAVE_ENVIRON_DECL
|
||||
|
||||
/* Define if you have the declaration of errno. */
|
||||
#define HAVE_ERRNO_DECL 1
|
||||
|
||||
/* Define to 1 if you have the `getcwd' function. */
|
||||
#define HAVE_GETCWD 1
|
||||
|
||||
/* Define to 1 if you have the `getc_unlocked' function. */
|
||||
#undef HAVE_GETC_UNLOCKED
|
||||
|
||||
/* Define if the GNU gettext() function is already present or preinstalled. */
|
||||
#undef HAVE_GETTEXT
|
||||
|
||||
/* Define if you have the iconv() function. */
|
||||
#define HAVE_ICONV 1
|
||||
|
||||
/* Define to 1 if the type 'int16_t' is already defined. */
|
||||
#undef HAVE_INT16_T
|
||||
|
||||
/* Define to 1 if the type 'int32_t' is already defined. */
|
||||
#undef HAVE_INT32_T
|
||||
|
||||
/* Define to 1 if the type 'int64_t' is already defined. */
|
||||
#undef HAVE_INT64_T
|
||||
|
||||
/* Define to 1 if the type 'int64_t' is already definedin <stdint.h>. */
|
||||
#undef HAVE_INT64_T_IN_STDINT_H
|
||||
|
||||
/* Define to 1 if the type 'int8_t' is already defined. */
|
||||
#undef HAVE_INT8_T
|
||||
|
||||
/* Define to 1 if the type 'intmax_t' is already defined. */
|
||||
#undef HAVE_INTMAX_T
|
||||
|
||||
/* Define to 1 if the type 'intptr_t' is already defined. */
|
||||
#undef HAVE_INTPTR_T
|
||||
|
||||
/* Define to 1 if you have the <inttypes.h> header file. */
|
||||
#define HAVE_INTTYPES_H 1
|
||||
|
||||
/* Define to 1 if the type 'int_fast16_t' is already defined. */
|
||||
#undef HAVE_INT_FAST16_T
|
||||
|
||||
/* Define to 1 if the type 'int_fast32_t' is already defined. */
|
||||
#undef HAVE_INT_FAST32_T
|
||||
|
||||
/* Define to 1 if the type 'int_fast64_t' is already defined. */
|
||||
#undef HAVE_INT_FAST64_T
|
||||
|
||||
/* Define to 1 if the type 'int_fast64_t' is already definedin <stdint.h>. */
|
||||
#undef HAVE_INT_FAST64_T_IN_STDINT_H
|
||||
|
||||
/* Define to 1 if the type 'int_fast8_t' is already defined. */
|
||||
#undef HAVE_INT_FAST8_T
|
||||
|
||||
/* Define to 1 if the type 'int_least16_t' is already defined. */
|
||||
#undef HAVE_INT_LEAST16_T
|
||||
|
||||
/* Define to 1 if the type 'int_least32_t' is already defined. */
|
||||
#undef HAVE_INT_LEAST32_T
|
||||
|
||||
/* Define to 1 if the type 'int_least64_t' is already defined. */
|
||||
#undef HAVE_INT_LEAST64_T
|
||||
|
||||
/* Define to 1 if the type 'int_least64_t' is already definedin <stdint.h>. */
|
||||
#undef HAVE_INT_LEAST64_T_IN_STDINT_H
|
||||
|
||||
/* Define to 1 if the type 'int_least8_t' is already defined. */
|
||||
#undef HAVE_INT_LEAST8_T
|
||||
|
||||
/* Define if you have <langinfo.h> and nl_langinfo(CODESET). */
|
||||
#define HAVE_LANGINFO_CODESET 1
|
||||
|
||||
/* Define to 1 if you have the <locale.h> header file. */
|
||||
#define HAVE_LOCALE_H 1
|
||||
|
||||
/* Define if you have the 'long double' type. */
|
||||
#undef HAVE_LONG_DOUBLE
|
||||
|
||||
/* Define if you have the 'long long' type. */
|
||||
#undef HAVE_LONG_LONG
|
||||
|
||||
/* Define to 1 if you have the <mach-o/dyld.h> header file. */
|
||||
#undef HAVE_MACH_O_DYLD_H
|
||||
|
||||
/* Define to 1 if you have the `mbrtowc' function. */
|
||||
#define HAVE_MBRTOWC 1
|
||||
|
||||
/* Define to 1 if you have the `mbsinit' function. */
|
||||
#define HAVE_MBSINIT 1
|
||||
|
||||
/* Define to 1 if <wchar.h> declares mbstate_t. */
|
||||
#undef HAVE_MBSTATE_T
|
||||
|
||||
/* Define to 1 if you have the `memmove' function. */
|
||||
#define HAVE_MEMMOVE 1
|
||||
|
||||
/* Define to 1 if you have the <memory.h> header file. */
|
||||
#define HAVE_MEMORY_H 1
|
||||
|
||||
/* Define to 1 if the system has the type `ptrdiff_t'. */
|
||||
#undef HAVE_PTRDIFF_T
|
||||
|
||||
/* Define to 1 if you have the `readlink' function. */
|
||||
#undef HAVE_READLINK
|
||||
|
||||
/* Define to 1 if you have the <search.h> header file. */
|
||||
#undef HAVE_SEARCH_H
|
||||
|
||||
/* Define to 1 if you have the `setenv' function. */
|
||||
#define HAVE_SETENV 1
|
||||
|
||||
/* Define to 1 if you have the `setlocale' function. */
|
||||
#define HAVE_SETLOCALE 1
|
||||
|
||||
/* Define to 1 if 'sig_atomic_t' is a signed integer type. */
|
||||
#undef HAVE_SIGNED_SIG_ATOMIC_T
|
||||
|
||||
/* Define to 1 if 'wchar_t' is a signed integer type. */
|
||||
#undef HAVE_SIGNED_WCHAR_T
|
||||
|
||||
/* Define to 1 if 'wint_t' is a signed integer type. */
|
||||
#undef HAVE_SIGNED_WINT_T
|
||||
|
||||
/* Define to 1 if the system has the type `sig_atomic_t'. */
|
||||
#undef HAVE_SIG_ATOMIC_T
|
||||
|
||||
/* Define to 1 if stdbool.h conforms to C99. */
|
||||
#define HAVE_STDBOOL_H 1
|
||||
|
||||
/* Define to 1 if you have the <stddef.h> header file. */
|
||||
#define HAVE_STDDEF_H 1
|
||||
|
||||
/* Define to 1 if you have the <stdint.h> header file. */
|
||||
#undef HAVE_STDINT_H
|
||||
|
||||
/* Define to 1 if you have the <stdlib.h> header file. */
|
||||
#define HAVE_STDLIB_H 1
|
||||
|
||||
/* Define to 1 if you have the `strerror' function. */
|
||||
#define HAVE_STRERROR 1
|
||||
|
||||
/* Define to 1 if you have the `strerror_r' function. */
|
||||
#undef HAVE_STRERROR_R
|
||||
|
||||
/* Define to 1 if you have the <strings.h> header file. */
|
||||
#define HAVE_STRINGS_H 1
|
||||
|
||||
/* Define to 1 if you have the <string.h> header file. */
|
||||
#define HAVE_STRING_H 1
|
||||
|
||||
/* Define to 1 if you have the <sys/bitypes.h> header file. */
|
||||
#undef HAVE_SYS_BITYPES_H
|
||||
|
||||
/* Define to 1 if you have the <sys/inttypes.h> header file. */
|
||||
#undef HAVE_SYS_INTTYPES_H
|
||||
|
||||
/* Define to 1 if you have the <sys/param.h> header file. */
|
||||
#define HAVE_SYS_PARAM_H 1
|
||||
|
||||
/* Define to 1 if you have the <sys/stat.h> header file. */
|
||||
#define HAVE_SYS_STAT_H 1
|
||||
|
||||
/* Define to 1 if you have the <sys/types.h> header file. */
|
||||
#define HAVE_SYS_TYPES_H 1
|
||||
|
||||
/* Define to 1 if you have the `tsearch' function. */
|
||||
#undef HAVE_TSEARCH
|
||||
|
||||
/* Define to 1 if the type 'uint16_t' is already defined. */
|
||||
#undef HAVE_UINT16_T
|
||||
|
||||
/* Define to 1 if the type 'uint32_t' is already defined. */
|
||||
#undef HAVE_UINT32_T
|
||||
|
||||
/* Define to 1 if the type 'uint64_t' is already defined. */
|
||||
#undef HAVE_UINT64_T
|
||||
|
||||
/* Define to 1 if the type 'uint64_t' is already definedin <stdint.h>. */
|
||||
#undef HAVE_UINT64_T_IN_STDINT_H
|
||||
|
||||
/* Define to 1 if the type 'uint8_t' is already defined. */
|
||||
#undef HAVE_UINT8_T
|
||||
|
||||
/* Define to 1 if the type 'uintmax_t' is already defined. */
|
||||
#undef HAVE_UINTMAX_T
|
||||
|
||||
/* Define to 1 if the type 'uintptr_t' is already defined. */
|
||||
#undef HAVE_UINTPTR_T
|
||||
|
||||
/* Define to 1 if the type 'uint_fast16_t' is already defined. */
|
||||
#undef HAVE_UINT_FAST16_T
|
||||
|
||||
/* Define to 1 if the type 'uint_fast32_t' is already defined. */
|
||||
#undef HAVE_UINT_FAST32_T
|
||||
|
||||
/* Define to 1 if the type 'uint_fast64_t' is already defined. */
|
||||
#undef HAVE_UINT_FAST64_T
|
||||
|
||||
/* Define to 1 if the type 'uint_fast64_t' is already definedin <stdint.h>. */
|
||||
#undef HAVE_UINT_FAST64_T_IN_STDINT_H
|
||||
|
||||
/* Define to 1 if the type 'uint_fast8_t' is already defined. */
|
||||
#undef HAVE_UINT_FAST8_T
|
||||
|
||||
/* Define to 1 if the type 'uint_least16_t' is already defined. */
|
||||
#undef HAVE_UINT_LEAST16_T
|
||||
|
||||
/* Define to 1 if the type 'uint_least32_t' is already defined. */
|
||||
#undef HAVE_UINT_LEAST32_T
|
||||
|
||||
/* Define to 1 if the type 'uint_least64_t' is already defined. */
|
||||
#undef HAVE_UINT_LEAST64_T
|
||||
|
||||
/* Define to 1 if the type 'uint_least64_t' is already definedin <stdint.h>.
|
||||
*/
|
||||
#undef HAVE_UINT_LEAST64_T_IN_STDINT_H
|
||||
|
||||
/* Define to 1 if the type 'uint_least8_t' is already defined. */
|
||||
#undef HAVE_UINT_LEAST8_T
|
||||
|
||||
/* Define to 1 if you have the <unistd.h> header file. */
|
||||
#define HAVE_UNISTD_H 1
|
||||
|
||||
/* Define to 1 if you have the `unsetenv' function. */
|
||||
#define HAVE_UNSETENV 1
|
||||
|
||||
/* Define to 1 or 0, depending whether the compiler supports simple visibility
|
||||
declarations. */
|
||||
#undef HAVE_VISIBILITY
|
||||
|
||||
/* Define to 1 if you have the <wchar.h> header file. */
|
||||
#define HAVE_WCHAR_H 1
|
||||
|
||||
/* Define if you have the 'wchar_t' type. */
|
||||
#undef HAVE_WCHAR_T
|
||||
|
||||
/* Define to 1 if you have the `wcrtomb' function. */
|
||||
#define HAVE_WCRTOMB 1
|
||||
|
||||
/* Define to 1 if the system has the type `wint_t'. */
|
||||
#undef HAVE_WINT_T
|
||||
|
||||
/* Define to 1 if the system has the type `_Bool'. */
|
||||
#undef HAVE__BOOL
|
||||
|
||||
/* Define to 1 if you have the `_NSGetExecutablePath' function. */
|
||||
#undef HAVE__NSGETEXECUTABLEPATH
|
||||
|
||||
/* Define as const if the declaration of iconv() needs const. */
|
||||
#define ICONV_CONST
|
||||
|
||||
/* Define to the value of ${prefix}, as a string. */
|
||||
|
||||
/* Define if <stdint.h> doesn't define it. */
|
||||
#undef INT16_MAX
|
||||
|
||||
/* Define if <stdint.h> doesn't define it. */
|
||||
#undef INT16_MIN
|
||||
|
||||
/* Define if <stdint.h> doesn't define it. */
|
||||
#undef INT32_MAX
|
||||
|
||||
/* Define if <stdint.h> doesn't define it. */
|
||||
#undef INT32_MIN
|
||||
|
||||
/* Define if <stdint.h> doesn't define it but has the int64_t type. */
|
||||
#undef INT64_MAX
|
||||
|
||||
/* Define if <stdint.h> doesn't define it but has the int64_t type. */
|
||||
#undef INT64_MIN
|
||||
|
||||
/* Define if <stdint.h> doesn't define it. */
|
||||
#undef INT8_MAX
|
||||
|
||||
/* Define if <stdint.h> doesn't define it. */
|
||||
#undef INT8_MIN
|
||||
|
||||
/* Define if <stdint.h> doesn't define it. */
|
||||
#undef INTMAX_MAX
|
||||
|
||||
/* Define if <stdint.h> doesn't define it. */
|
||||
#undef INTMAX_MIN
|
||||
|
||||
/* Define if <stdint.h> doesn't define it. */
|
||||
#undef INTPTR_MAX
|
||||
|
||||
/* Define if <stdint.h> doesn't define it. */
|
||||
#undef INTPTR_MIN
|
||||
|
||||
/* Define if <stdint.h> doesn't define it. */
|
||||
#undef INT_FAST16_MAX
|
||||
|
||||
/* Define if <stdint.h> doesn't define it. */
|
||||
#undef INT_FAST16_MIN
|
||||
|
||||
/* Define if <stdint.h> doesn't define it. */
|
||||
#undef INT_FAST32_MAX
|
||||
|
||||
/* Define if <stdint.h> doesn't define it. */
|
||||
#undef INT_FAST32_MIN
|
||||
|
||||
/* Define if <stdint.h> doesn't define it. */
|
||||
#undef INT_FAST64_MAX
|
||||
|
||||
/* Define if <stdint.h> doesn't define it. */
|
||||
#undef INT_FAST64_MIN
|
||||
|
||||
/* Define if <stdint.h> doesn't define it. */
|
||||
#undef INT_FAST8_MAX
|
||||
|
||||
/* Define if <stdint.h> doesn't define it. */
|
||||
#undef INT_FAST8_MIN
|
||||
|
||||
/* Define if <stdint.h> doesn't define it. */
|
||||
#undef INT_LEAST16_MAX
|
||||
|
||||
/* Define if <stdint.h> doesn't define it. */
|
||||
#undef INT_LEAST16_MIN
|
||||
|
||||
/* Define if <stdint.h> doesn't define it. */
|
||||
#undef INT_LEAST32_MAX
|
||||
|
||||
/* Define if <stdint.h> doesn't define it. */
|
||||
#undef INT_LEAST32_MIN
|
||||
|
||||
/* Define if <stdint.h> doesn't define it but has the int_least64_t type. */
|
||||
#undef INT_LEAST64_MAX
|
||||
|
||||
/* Define if <stdint.h> doesn't define it but has the int_least64_t type. */
|
||||
#undef INT_LEAST64_MIN
|
||||
|
||||
/* Define if <stdint.h> doesn't define it. */
|
||||
#undef INT_LEAST8_MAX
|
||||
|
||||
/* Define if <stdint.h> doesn't define it. */
|
||||
#undef INT_LEAST8_MIN
|
||||
|
||||
/* If malloc(0) is != NULL, define this to 1. Otherwise define this to 0. */
|
||||
#define MALLOC_0_IS_NONNULL 0
|
||||
|
||||
/* Name of package */
|
||||
#undef PACKAGE
|
||||
|
||||
/* Define to the address where bug reports for this package should be sent. */
|
||||
#undef PACKAGE_BUGREPORT
|
||||
|
||||
/* Define to the full name of this package. */
|
||||
#undef PACKAGE_NAME
|
||||
|
||||
/* Define to the full name and version of this package. */
|
||||
#undef PACKAGE_STRING
|
||||
|
||||
/* Define to the one symbol short name of this package. */
|
||||
#undef PACKAGE_TARNAME
|
||||
|
||||
/* Define to the version of this package. */
|
||||
#undef PACKAGE_VERSION
|
||||
|
||||
/* Define if <stdint.h> doesn't define it. */
|
||||
#undef PTRDIFF_MAX
|
||||
|
||||
/* Define if <stdint.h> doesn't define it. */
|
||||
#undef PTRDIFF_MIN
|
||||
|
||||
/* Define if <stdint.h> doesn't define it. */
|
||||
#undef SIG_ATOMIC_MAX
|
||||
|
||||
/* Define if <stdint.h> doesn't define it. */
|
||||
#undef SIG_ATOMIC_MIN
|
||||
|
||||
/* Define as the maximum value of type 'size_t', if the system doesn't define
|
||||
it. */
|
||||
#undef SIZE_MAX
|
||||
|
||||
/* If using the C implementation of alloca, define if you know the
|
||||
direction of stack growth for your system; otherwise it will be
|
||||
automatically deduced at runtime.
|
||||
STACK_DIRECTION > 0 => grows toward higher addresses
|
||||
STACK_DIRECTION < 0 => grows toward lower addresses
|
||||
STACK_DIRECTION = 0 => direction of growth unknown */
|
||||
#undef STACK_DIRECTION
|
||||
|
||||
/* Define to 1 if you have the ANSI C header files. */
|
||||
#define STDC_HEADERS 1
|
||||
|
||||
/* Define to 1 if strerror_r returns char *. */
|
||||
#undef STRERROR_R_CHAR_P
|
||||
|
||||
/* Define if <stdint.h> doesn't define it. */
|
||||
#undef UINT16_MAX
|
||||
|
||||
/* Define if <stdint.h> doesn't define it. */
|
||||
#undef UINT32_MAX
|
||||
|
||||
/* Define if <stdint.h> doesn't define it but has the uint64_t type. */
|
||||
#undef UINT64_MAX
|
||||
|
||||
/* Define if <stdint.h> doesn't define it. */
|
||||
#undef UINT8_MAX
|
||||
|
||||
/* Define if <stdint.h> doesn't define it. */
|
||||
#undef UINTMAX_MAX
|
||||
|
||||
/* Define if <stdint.h> doesn't define it. */
|
||||
#undef UINTPTR_MAX
|
||||
|
||||
/* Define if <stdint.h> doesn't define it. */
|
||||
#undef UINT_FAST16_MAX
|
||||
|
||||
/* Define if <stdint.h> doesn't define it. */
|
||||
#undef UINT_FAST32_MAX
|
||||
|
||||
/* Define if <stdint.h> doesn't define it. */
|
||||
#undef UINT_FAST64_MAX
|
||||
|
||||
/* Define if <stdint.h> doesn't define it. */
|
||||
#undef UINT_FAST8_MAX
|
||||
|
||||
/* Define if <stdint.h> doesn't define it. */
|
||||
#undef UINT_LEAST16_MAX
|
||||
|
||||
/* Define if <stdint.h> doesn't define it. */
|
||||
#undef UINT_LEAST32_MAX
|
||||
|
||||
/* Define if <stdint.h> doesn't define it but has the uint_least64_t type. */
|
||||
#undef UINT_LEAST64_MAX
|
||||
|
||||
/* Define if <stdint.h> doesn't define it. */
|
||||
#undef UINT_LEAST8_MAX
|
||||
|
||||
/* Define to 1 if you want getc etc. to use unlocked I/O if available.
|
||||
Unlocked I/O can improve performance in unithreaded apps, but it is not
|
||||
safe for multithreaded apps. */
|
||||
#undef USE_UNLOCKED_IO
|
||||
|
||||
/* Version number of package */
|
||||
#undef VERSION
|
||||
|
||||
/* Define if unsetenv() returns void, not int. */
|
||||
#undef VOID_UNSETENV
|
||||
|
||||
/* Define if <stdint.h> doesn't define it. */
|
||||
#undef WINT_MAX
|
||||
|
||||
/* Define if <stdint.h> doesn't define it. */
|
||||
#undef WINT_MIN
|
||||
|
||||
/* Define if the machine's byte ordering is little endian. */
|
||||
#define WORDS_LITTLEENDIAN 1
|
||||
|
||||
/* Define to 1 if on AIX 3.
|
||||
System headers sometimes define this.
|
||||
We just want to avoid a redefinition error message. */
|
||||
#ifndef _ALL_SOURCE
|
||||
# undef _ALL_SOURCE
|
||||
#endif
|
||||
|
||||
/* Enable GNU extensions on systems that have them. */
|
||||
#ifndef _GNU_SOURCE
|
||||
# undef _GNU_SOURCE
|
||||
#endif
|
||||
|
||||
/* Define to 1 if on MINIX. */
|
||||
#undef _MINIX
|
||||
|
||||
/* Define to 2 if the system does not provide POSIX.1 features except with
|
||||
this defined. */
|
||||
#undef _POSIX_1_SOURCE
|
||||
|
||||
/* Define to 1 if you need to in order for `stat' and other things to work. */
|
||||
#undef _POSIX_SOURCE
|
||||
|
||||
/* Enable extensions on Solaris. */
|
||||
#ifndef __EXTENSIONS__
|
||||
# undef __EXTENSIONS__
|
||||
#endif
|
||||
|
||||
/* Define to a type if <wchar.h> does not define. */
|
||||
#undef mbstate_t
|
||||
|
||||
/* Define to a replacement function name for realpath(). */
|
||||
#define realpath rpl_realpath
|
||||
|
||||
/* Define to `unsigned int' if <sys/types.h> does not define. */
|
||||
#undef size_t
|
||||
|
||||
/* Define as a signed type of the same size as size_t. */
|
||||
#undef ssize_t
|
||||
|
||||
|
||||
/* On Windows, variables that may be in a DLL must be marked specially. */
|
||||
#if defined _MSC_VER && defined _DLL
|
||||
# define DLL_VARIABLE __declspec (dllimport)
|
||||
#else
|
||||
# define DLL_VARIABLE
|
||||
#endif
|
||||
|
40555
libiconv/configure
vendored
Normal file
40555
libiconv/configure
vendored
Normal file
File diff suppressed because it is too large
Load Diff
205
libiconv/configure.ac
Normal file
205
libiconv/configure.ac
Normal file
@ -0,0 +1,205 @@
|
||||
dnl Copyright (C) 1999-2006 Free Software Foundation, Inc.
|
||||
dnl This file is part of the GNU LIBICONV Library.
|
||||
dnl
|
||||
dnl The GNU LIBICONV Library is free software; you can redistribute it
|
||||
dnl and/or modify it under the terms of the GNU Library General Public
|
||||
dnl License as published by the Free Software Foundation; either version 2
|
||||
dnl of the License, or (at your option) any later version.
|
||||
dnl
|
||||
dnl The GNU LIBICONV Library is distributed in the hope that it will be
|
||||
dnl useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
dnl Library General Public License for more details.
|
||||
dnl
|
||||
dnl You should have received a copy of the GNU Library General Public
|
||||
dnl License along with the GNU LIBICONV Library; see the file COPYING.LIB.
|
||||
dnl If not, write to the Free Software Foundation, Inc., 51 Franklin Street,
|
||||
dnl Fifth Floor, Boston, MA 02110-1301, USA.
|
||||
|
||||
AC_PREREQ(2.52)
|
||||
AC_INIT
|
||||
AC_CONFIG_SRCDIR(lib/iconv.c)
|
||||
AC_CONFIG_AUX_DIR(build-aux)
|
||||
AM_INIT_AUTOMAKE(libiconv, 1.11)
|
||||
AC_CONFIG_HEADERS(config.h lib/config.h)
|
||||
AC_PROG_MAKE_SET
|
||||
|
||||
dnl checks for basic programs
|
||||
|
||||
AC_PROG_CC
|
||||
AC_PROG_CPP
|
||||
AC_PROG_GCC_TRADITIONAL
|
||||
AC_PROG_INSTALL
|
||||
|
||||
dnl check for host type
|
||||
|
||||
AC_CANONICAL_HOST
|
||||
|
||||
dnl hack
|
||||
|
||||
dnl Hack to work around limitations of automake and error.m4 regarding LIBOBJS.
|
||||
dnl "srclib/Makefile.am:32: automatically discovered file `error.h' should not be explicitly mentioned"
|
||||
AC_DEFUN([my_SRCLIB_OBJ],[SRCLIBOBJS="$SRCLIBOBJS $1.$ac_objext"])
|
||||
AC_DEFUN([my_SRCLIB_REPLACE_FUNCS], [AC_CHECK_FUNCS([$1], , [my_SRCLIB_OBJ($ac_func)])])
|
||||
m4_pushdef([AC_LIBOBJ], m4_defn([my_SRCLIB_OBJ]))
|
||||
m4_pushdef([AC_REPLACE_FUNCS], m4_defn([my_SRCLIB_REPLACE_FUNCS]))
|
||||
|
||||
dnl checks for UNIX variants that set DEFS
|
||||
|
||||
AC_GNU_SOURCE
|
||||
gl_USE_SYSTEM_EXTENSIONS
|
||||
AC_ISC_POSIX
|
||||
|
||||
dnl checks for installer options
|
||||
|
||||
AC_RELOCATABLE
|
||||
|
||||
AC_ARG_ENABLE([extra-encodings],
|
||||
[AC_HELP_STRING([--enable-extra-encodings],
|
||||
[add support for a few rarely used encodings])],
|
||||
[AC_DEFINE([ENABLE_EXTRA], 1,
|
||||
[Define to 1 to enable a few rarely used encodings.])
|
||||
USE_EXTRA_ENCODINGS=yes],
|
||||
[USE_EXTRA_ENCODINGS=no])
|
||||
AC_SUBST([USE_EXTRA_ENCODINGS])
|
||||
|
||||
dnl checks for programs
|
||||
|
||||
AC_PROG_RANLIB
|
||||
CL_PROG_CP
|
||||
CL_PROG_LN
|
||||
AC_PROG_LN_S
|
||||
|
||||
dnl checks for compiler output filename suffixes
|
||||
|
||||
AC_OBJEXT
|
||||
AC_EXEEXT
|
||||
|
||||
dnl check for build configuration
|
||||
|
||||
AC_DISABLE_STATIC
|
||||
AC_LIBTOOL_WIN32_DLL
|
||||
AC_PROG_LIBTOOL
|
||||
gl_VISIBILITY
|
||||
AM_ICONV
|
||||
AM_GNU_GETTEXT([external], [need-ngettext])
|
||||
|
||||
dnl checks for header files
|
||||
|
||||
AC_HEADER_STDC
|
||||
AC_CHECK_HEADERS([locale.h stddef.h stdlib.h string.h])
|
||||
gl_HEADER_UNISTD
|
||||
|
||||
dnl checks for typedefs
|
||||
|
||||
AC_TYPE_MBSTATE_T
|
||||
gl_STDINT_H
|
||||
gt_TYPE_WCHAR_T
|
||||
|
||||
dnl checks for functions and declarations
|
||||
|
||||
if test "$am_cv_func_iconv" = yes -a -z "$am_cv_proto_iconv_arg1"; then
|
||||
ICONV_CONST=""
|
||||
else
|
||||
ICONV_CONST="const"
|
||||
fi
|
||||
AC_SUBST(ICONV_CONST)
|
||||
|
||||
if test $gt_cv_c_wchar_t = yes; then
|
||||
HAVE_WCHAR_T=1
|
||||
else
|
||||
HAVE_WCHAR_T=0
|
||||
fi
|
||||
AC_SUBST(HAVE_WCHAR_T)
|
||||
|
||||
AC_CHECK_FUNCS([getc_unlocked mbrtowc wcrtomb mbsinit setlocale])
|
||||
AC_REPLACE_FUNCS([memmove])
|
||||
|
||||
AM_LANGINFO_CODESET
|
||||
|
||||
AC_EILSEQ
|
||||
|
||||
CL_WORDS_LITTLEENDIAN
|
||||
|
||||
gl_FUNC_ALLOCA
|
||||
gl_ALLOCSA
|
||||
gl_CANONICALIZE
|
||||
gl_FUNC_GLIBC_UNLOCKED_IO
|
||||
gl_ERROR
|
||||
gl_PATHMAX
|
||||
gt_FUNC_SETENV
|
||||
AM_STDBOOL_H
|
||||
gl_FUNC_STRERROR
|
||||
gl_FUNC_READLINK
|
||||
gl_XREADLINK
|
||||
|
||||
dnl hack
|
||||
|
||||
dnl End of hack to work around limitations of automake and error.m4.
|
||||
m4_popdef([AC_REPLACE_FUNCS])
|
||||
m4_popdef([AC_LIBOBJ])
|
||||
AC_SUBST([SRCLIBOBJS])
|
||||
|
||||
dnl check whether OS supports plug libraries
|
||||
|
||||
OS=""
|
||||
case "$host_os" in
|
||||
linux*) OS="linux" ;;
|
||||
solaris*) OS="solaris" ;;
|
||||
osf*) OS="osf" ;;
|
||||
esac
|
||||
if test -n "$OS"; then
|
||||
AC_SUBST(OS)
|
||||
AC_SUBST(GCC)
|
||||
PLUGLIB="preloadable_libiconv.so"
|
||||
else
|
||||
PLUGLIB=""
|
||||
fi
|
||||
AC_SUBST(PLUGLIB)
|
||||
|
||||
dnl Compilation on mingw and Cygwin needs special Makefile rules, because
|
||||
dnl 1. when we install a shared library, we must arrange to export
|
||||
dnl auxiliary pointer variables for every exported variable,
|
||||
dnl 2. when we install a shared library and a static library simultaneously,
|
||||
dnl the include file specifies __declspec(dllimport) and therefore we
|
||||
dnl must arrange to define the auxiliary pointer variables for the
|
||||
dnl exported variables _also_ in the static library.
|
||||
if test "$enable_shared" = yes; then
|
||||
case "$host_os" in
|
||||
mingw* | cygwin*) is_woe32dll=yes ;;
|
||||
*) is_woe32dll=no ;;
|
||||
esac
|
||||
else
|
||||
is_woe32dll=no
|
||||
fi
|
||||
WOE32DLL=$is_woe32dll
|
||||
AC_SUBST([WOE32DLL])
|
||||
if test $is_woe32dll = yes; then
|
||||
DLL_VARIABLE='__declspec (dllimport)'
|
||||
else
|
||||
DLL_VARIABLE=
|
||||
fi
|
||||
AC_SUBST([DLL_VARIABLE])
|
||||
|
||||
AH_BOTTOM([
|
||||
/* On Windows, variables that may be in a DLL must be marked specially. */
|
||||
#if defined _MSC_VER && defined _DLL
|
||||
# define DLL_VARIABLE __declspec (dllimport)
|
||||
#else
|
||||
# define DLL_VARIABLE
|
||||
#endif
|
||||
])
|
||||
|
||||
AC_CONFIG_SUBDIRS(libcharset)
|
||||
AC_CONFIG_FILES([Makefile])
|
||||
AC_CONFIG_FILES([lib/Makefile])
|
||||
AC_CONFIG_FILES([srclib/Makefile])
|
||||
AC_CONFIG_FILES([src/Makefile])
|
||||
AC_CONFIG_FILES([po/Makefile.in])
|
||||
AC_CONFIG_FILES([man/Makefile])
|
||||
if test -d "${srcdir}/tests"; then
|
||||
AC_CONFIG_FILES([tests/Makefile])
|
||||
fi
|
||||
AC_CONFIG_FILES([include/iconv.h:include/iconv.h.build.in])
|
||||
AC_CONFIG_FILES([include/iconv.h.inst:include/iconv.h.in])
|
||||
AC_OUTPUT
|
30
libiconv/djgpp/Makefile.maint
Normal file
30
libiconv/djgpp/Makefile.maint
Normal file
@ -0,0 +1,30 @@
|
||||
# Maintainer's Makefile -*-Makefile-*-
|
||||
|
||||
top_srcdir = ..
|
||||
srcdir = .
|
||||
|
||||
SHELL = /bin/sh
|
||||
|
||||
all: README fnchange.lst
|
||||
|
||||
fnchange.lst: fnchange.in $(top_srcdir)/configure.ac
|
||||
PACKAGE=`grep "^AM_INIT_AUTOMAKE(" $(top_srcdir)/configure.ac | sed -e 's/^.*(\([A-Za-z]*\),.*$$/\1/'`; \
|
||||
VERSION=`grep "^AM_INIT_AUTOMAKE(" $(top_srcdir)/configure.ac | sed -e 's/^.*,[ ]\([0-9.]*\).*$$/\1/'`; \
|
||||
sed \
|
||||
-e '/^#/d' \
|
||||
-e "s/@V@/$${PACKAGE}-$${VERSION}/g" \
|
||||
$(srcdir)/fnchange.in > t-$@
|
||||
mv t-$@ $@
|
||||
|
||||
README: README.in $(top_srcdir)/configure.ac
|
||||
PACKAGE=`grep "^AM_INIT_AUTOMAKE(" $(top_srcdir)/configure.ac | sed -e 's/^.*(\([A-Za-z]*\),.*$$/\1/'`; \
|
||||
VERSION=`grep "^AM_INIT_AUTOMAKE(" $(top_srcdir)/configure.ac | sed -e 's/^.*,[ ]\([0-9.]*\).*$$/\1/'`; \
|
||||
packageversion=`echo "$${VERSION}" | sed 's/\.//g'`; \
|
||||
treeversion=`echo "$${VERSION}" | sed 's/\.//g'`; \
|
||||
sed \
|
||||
-e "s/@V@/$${PACKAGE}-$${VERSION}/g" \
|
||||
-e "s/@VER@/$${VERSION}/g" \
|
||||
-e "s/@packageversion@/$$packageversion/g" \
|
||||
-e "s/@treeversion@/$$treeversion/g" \
|
||||
$(srcdir)/README.in > t-$@
|
||||
mv t-$@ $@
|
122
libiconv/djgpp/README
Normal file
122
libiconv/djgpp/README
Normal file
@ -0,0 +1,122 @@
|
||||
This is a port of GNU Libiconv 1.11 to MSDOS/DJGPP.
|
||||
|
||||
1.: DJGPP specific changes.
|
||||
=======================
|
||||
There are no DJGPP specific changes. This package should
|
||||
configure and compile out-of-the-box.
|
||||
Please read the documentation to become familiar with this
|
||||
product.
|
||||
|
||||
|
||||
2.: Installing the binary package.
|
||||
==============================
|
||||
|
||||
2.1.: Copy the binary distribution into the top DJGPP installation
|
||||
directory and unzip the binary distribution running *ONE* of
|
||||
the following commands:
|
||||
unzip32 licv111b.zip or
|
||||
djtarx licv111b.zip or
|
||||
pkunzip -d licv111b.zip
|
||||
|
||||
|
||||
|
||||
3.: Building the binaries from sources.
|
||||
===================================
|
||||
|
||||
3.1.: To build the binaries you will need the following binary packages:
|
||||
djdev203.zip, bsh204b.zip, gcc2952b.zip,
|
||||
bnu210b.zip, mak3791b.zip, fil316b.zip,
|
||||
shl112b.zip, txt20b.zip, txi40b.zip,
|
||||
grep24b.zip and sed302b.zip
|
||||
|
||||
|
||||
All this packages can be found in the v2gnu directory of any
|
||||
Simtel.NET mirror.
|
||||
You will need bsh204b.zip and *NOT* a prior version or the build will fail.
|
||||
The same applies to djdev203.zip. You *MUST* use the updated versions of
|
||||
fil316b.zip (date: 2000-05-30) and shl112b.zip (date: 2000-08-11). This
|
||||
updated versions have been recompiled with djdev203.zip and know about
|
||||
the "/dev/env" functionality introduced with djdev203.zip. All the other
|
||||
packages are the ones I have used to build the binaries from this sources.
|
||||
Previuos and/or later versions of this packages may do the job as well but
|
||||
I have not tested this.
|
||||
|
||||
3.2.: Create a temporary directory and copy the source package: licv111s.zip
|
||||
into the temporary directory. If you download the source distribution
|
||||
from one of the DJGPP archives, just unzip it preserving the directory
|
||||
structure, runnig ONE of the following commands:
|
||||
unzip32 licv111s.zip or
|
||||
djtarx licv111s.zip or
|
||||
pkunzip -d licv111s.zip
|
||||
|
||||
Source distributions downloaded from one of the GNU FTP sites need
|
||||
some more work to unpack. First, you MUST use the `djtar' program to
|
||||
unzip the package. That's because some file names in the official
|
||||
distributions need to be changed to avoid problems on the various
|
||||
platforms supported by DJGPP. `djtar' can rename files on the fly
|
||||
given a file with name mappings. The distribution includes a file
|
||||
`djgpp/fnchange.lst' with the necessary mappings. So you need first
|
||||
to retrieve that file, and then invoke `djtar' to unpack the
|
||||
distribution. Here's how:
|
||||
|
||||
djtar -x -p -o libiconv-1.7/djgpp/fnchange.lst libiconv-1.7.tar.gz > lst
|
||||
djtar -x -n lst libiconv-1.7.tar.gz
|
||||
|
||||
(The name of the distribution archive and the top-level directory will
|
||||
be different for versions other than 1.7.)
|
||||
|
||||
3.3.: The package is preconfigured for djdev203. To build the products you
|
||||
should run the following command:
|
||||
make
|
||||
|
||||
After the compilation has finished, you can check the products
|
||||
running the command:
|
||||
make check
|
||||
|
||||
To install the products run the command:
|
||||
make install
|
||||
|
||||
This will install the products (iconv.exe iconv.h localcharset.h libconv.a
|
||||
libcharset.a iconv.1 iconv.3 iconv_open.3 iconv_close.3) into your DJGPP
|
||||
installation tree. As usual, prefix is defined as "/dev/env/DJDIR".
|
||||
If you prefer to install into same other directory run the command:
|
||||
make install prefix=z:/some/other/dir
|
||||
|
||||
Of course, you should replace "z:/some/other/dir" by an appropriate path
|
||||
that will meet your requeriments.
|
||||
|
||||
3.4.: If you need/want to reconfigure the package you will have to run the
|
||||
following commands:
|
||||
make distclean
|
||||
djgpp\config
|
||||
|
||||
Please note that you *MUST* use the "distclean" option or the config.cache
|
||||
file will *NOT* be deleted. In this case you are *NOT* reconfiguring
|
||||
because the configuration informations is read from the cache file instead
|
||||
of being newly computed.
|
||||
To build the programs in a directory other than where the sources are,
|
||||
you must add the parameter that specifies the source directory,
|
||||
e.g:
|
||||
x:\src\gnu\libiconv.111\djgpp\config x:/src/gnu/libiconv.111
|
||||
|
||||
Lets assume you want to build the binaries in a directory placed on a
|
||||
different drive (z:\build in this case) from where the sources are,
|
||||
then you will run the following commands:
|
||||
z:
|
||||
md \build
|
||||
cd \build
|
||||
x:\src\gnu\libiconv.111\djgpp\config x:/src/gnu/libiconv.111
|
||||
|
||||
You *MUST* use forward slashes to specify the source directory.
|
||||
After having configured the package run the folowing commands to create
|
||||
the binaries and docs and install them:
|
||||
make
|
||||
make check
|
||||
make install
|
||||
|
||||
Send suggestions and bug reports concerning the DJGPP port to
|
||||
comp.os.msdos.djgpp or djgpp@delorie.com. Libiconv specific bugs
|
||||
must be reported to Bruno Haible <haible@clisp.cons.org>.
|
||||
|
||||
|
||||
Guerrero, Juan Manuel <st001906@hrz1.hrz.tu-darmstadt.de>
|
120
libiconv/djgpp/README.in
Normal file
120
libiconv/djgpp/README.in
Normal file
@ -0,0 +1,120 @@
|
||||
This is a port of GNU Libiconv @VER@ to MSDOS/DJGPP.
|
||||
|
||||
1.: DJGPP specific changes.
|
||||
=======================
|
||||
There are no DJGPP specific changes. This package should
|
||||
configure and compile out-of-the-box.
|
||||
Please read the documentation to become familiar with this
|
||||
product.
|
||||
|
||||
|
||||
2.: Installing the binary package.
|
||||
==============================
|
||||
|
||||
2.1.: Copy the binary distribution into the top DJGPP installation
|
||||
directory and unzip the binary distribution running *ONE* of
|
||||
the following commands:
|
||||
unzip32 licv@packageversion@b.zip or
|
||||
djtarx licv@packageversion@b.zip or
|
||||
pkunzip -d licv@packageversion@b.zip
|
||||
|
||||
|
||||
|
||||
3.: Building the binaries from sources.
|
||||
===================================
|
||||
|
||||
3.1.: To build the binaries you will need the following binary packages:
|
||||
djdev203.zip (patchlevel 2),
|
||||
bshNNNb.zip, gccNNNb.zip, bnuNNNb.zip, makNNNb.zip, filNNNb.zip,
|
||||
shlNNNb.zip, txtNNNb.zip, txiNNNb.zip, grepNNNb.zip, sedNNNb.zip,
|
||||
and difNNN.zip
|
||||
|
||||
NNN represents the latest version number of the binary packages. All
|
||||
this packages can be found in the current/v2gnu/ directory of any
|
||||
ftp.delorie.com mirror.
|
||||
|
||||
3.2.: Create a temporary directory and copy the source package: licv@packageversion@s.zip
|
||||
into the temporary directory. If you download the source distribution
|
||||
from one of the DJGPP archives, just unzip it preserving the directory
|
||||
structure, runnig ONE of the following commands:
|
||||
unzip32 licv@packageversion@s.zip or
|
||||
djtarx licv@packageversion@s.zip or
|
||||
pkunzip -d licv@packageversion@s.zip
|
||||
|
||||
Source distributions downloaded from one of the GNU FTP sites need
|
||||
some more work to unpack. First, you MUST use the `djtar' program
|
||||
to unzip the package. That's because some file names in the official
|
||||
distributions need to be changed to avoid problems on the various
|
||||
platforms supported by DJGPP. `djtar' can rename files on the fly
|
||||
given a file with name mappings. The distribution includes a file
|
||||
`djgpp/fnchange.lst' with the necessary mappings. So you need first
|
||||
to retrieve that file, and then invoke `djtar' to unpack the
|
||||
distribution. Here's how:
|
||||
|
||||
djtar -x -p -o @V@/djgpp/fnchange.lst @V@.tar.gz > lst
|
||||
djtar -x -n lst @V@.tar.gz
|
||||
|
||||
(The name of the distribution archive and the top-level directory will
|
||||
be different for versions other than @VER@.)
|
||||
|
||||
3.3.: If you have downloaded the source package from one of the GNU FTP sites
|
||||
you will have to configure the package running the command:
|
||||
djgpp\config.bat
|
||||
|
||||
3.4.: If you have downloaded the source package from one of the delorie FTP
|
||||
sites the package is already preconfigured for djdev203 or later. In
|
||||
any case, to build the products you must run the following command:
|
||||
make
|
||||
|
||||
After the compilation has finished, you can check the products
|
||||
running the command:
|
||||
make check
|
||||
|
||||
To install the products run the command:
|
||||
make install
|
||||
|
||||
This will install the products (iconv.exe iconv.h localcharset.h libconv.a
|
||||
libcharset.a iconv.1 iconv.3 iconv_open.3 iconv_close.3) into your DJGPP
|
||||
installation tree. As usual, prefix is defined as "/dev/env/DJDIR".
|
||||
If you prefer to install into same other directory run the command:
|
||||
make install prefix=z:/some/other/dir
|
||||
|
||||
Of course, you should replace "z:/some/other/dir" by an appropriate path
|
||||
that will meet your requeriments.
|
||||
|
||||
3.5.: If for some reason you want to reconfigure the package cd into the top
|
||||
srcdir (libiconv.@treeversion@) and run the following commands:
|
||||
del djgpp\config.cache
|
||||
make distclean
|
||||
djgpp\config
|
||||
|
||||
Please note that you *MUST* delete the config.cache file in the djgpp
|
||||
subdir or you will not really reconfigure the sources because the
|
||||
configuration informations will be read from the cache file instead
|
||||
of being newly computed.
|
||||
To build the programs in a directory other than where the sources are,
|
||||
you must add the parameter that specifies the source directory,
|
||||
e.g:
|
||||
x:\src\gnu\libiconv.@treeversion@\djgpp\config x:/src/gnu/libiconv.@treeversion@
|
||||
|
||||
Lets assume you want to build the binaries in a directory placed on a
|
||||
different drive (z:\build in this case) from where the sources are,
|
||||
then you will run the following commands:
|
||||
z:
|
||||
md \build
|
||||
cd \build
|
||||
x:\src\gnu\libiconv.@treeversion@\djgpp\config x:/src/gnu/libiconv.@treeversion@
|
||||
|
||||
You *MUST* use forward slashes to specify the source directory.
|
||||
After having configured the package run the folowing commands to create
|
||||
the binaries and docs and install them:
|
||||
make
|
||||
make check
|
||||
make install
|
||||
|
||||
Send suggestions and bug reports concerning the DJGPP port to
|
||||
comp.os.msdos.djgpp or djgpp@delorie.com. Libiconv specific bugs
|
||||
must be reported to <bug-gnu-libiconv@gnu.org>.
|
||||
|
||||
|
||||
Guerrero, Juan Manuel <juan.guerrero@gmx.de>
|
435
libiconv/djgpp/config.bat
Normal file
435
libiconv/djgpp/config.bat
Normal file
@ -0,0 +1,435 @@
|
||||
@echo off
|
||||
Rem Configure libiconv for DJGPP.
|
||||
|
||||
Rem WARNING WARNING WARNING: This file needs to have DOS CRLF end-of-line
|
||||
Rem format, or else stock DOS/Windows shells will refuse to run it.
|
||||
|
||||
echo Configuring GNU libiconv for DJGPP v2.x...
|
||||
Rem The SmallEnv tests protect against fixed and too small size
|
||||
Rem of the environment in stock DOS shell.
|
||||
|
||||
Rem Find out if NLS is wanted or not,
|
||||
Rem if dependency-tracking is wanted or not,
|
||||
Rem if caching is wanted or not
|
||||
Rem and where the sources are.
|
||||
Rem We always default to NLS support,
|
||||
Rem no dependency tracking
|
||||
Rem and to in place configuration.
|
||||
set ARGS=
|
||||
set NLS=disabled
|
||||
if not "%NLS%" == "disabled" goto SmallEnv
|
||||
set CACHING=enabled
|
||||
if not "%CACHING%" == "enabled" goto SmallEnv
|
||||
set DEPENDENCY_TRACKING=disabled
|
||||
if not "%DEPENDENCY_TRACKING%" == "disabled" goto SmallEnv
|
||||
set LIBICONV_PREFIX=disabled
|
||||
if not "%LIBICONV_PREFIX%" == "disabled" goto SmallEnv
|
||||
set LIBINTL_PREFIX=disabled
|
||||
if not "%LIBINTL_PREFIX%" == "disabled" goto SmallEnv
|
||||
set HTML=enabled
|
||||
if not "%HTML%" == "enabled" goto SmallEnv
|
||||
set XSRC=.
|
||||
if not "%XSRC%" == "." goto SmallEnv
|
||||
|
||||
Rem Loop over all arguments.
|
||||
Rem Special arguments are: NLS, XSRC, CACHE, STATIC_LIBS, LIBICONV_PREFIX, LIBINTL_PREFIX and DEPS.
|
||||
Rem All other arguments are stored into ARGS.
|
||||
:ArgLoop
|
||||
if "%1" == "nls" goto NextArgument
|
||||
if "%1" == "NLS" goto NextArgument
|
||||
if "%1" == "no-nls" goto NoNLS
|
||||
if "%1" == "no-NLS" goto NoNLS
|
||||
if "%1" == "NO-NLS" goto NoNLS
|
||||
goto CachingOption
|
||||
:NoNLS
|
||||
if "%1" == "no-nls" set NLS=disabled
|
||||
if "%1" == "no-NLS" set NLS=disabled
|
||||
if "%1" == "NO-NLS" set NLS=disabled
|
||||
if not "%NLS%" == "disabled" goto SmallEnv
|
||||
goto NextArgument
|
||||
:CachingOption
|
||||
if "%1" == "cache" goto NextArgument
|
||||
if "%1" == "CACHE" goto NextArgument
|
||||
if "%1" == "no-cache" goto NoCaching
|
||||
if "%1" == "no-CACHE" goto NoCaching
|
||||
if "%1" == "NO-CACHE" goto NoCaching
|
||||
goto DependencyOption
|
||||
:NoCaching
|
||||
if "%1" == "no-cache" set CACHING=disabled
|
||||
if "%1" == "no-CACHE" set CACHING=disabled
|
||||
if "%1" == "NO-CACHE" set CACHING=disabled
|
||||
if not "%CACHING%" == "disabled" goto SmallEnv
|
||||
goto NextArgument
|
||||
:DependencyOption
|
||||
if "%1" == "no-dep" goto NextArgument
|
||||
if "%1" == "no-DEP" goto NextArgument
|
||||
if "%1" == "NO-DEP" goto NextArgument
|
||||
if "%1" == "dep" goto DependecyTraking
|
||||
if "%1" == "DEP" goto DependecyTraking
|
||||
goto LibiconvPrefixOption
|
||||
:DependecyTraking
|
||||
if "%1" == "dep" set DEPENDENCY_TRACKING=enabled
|
||||
if "%1" == "DEP" set DEPENDENCY_TRACKING=enabled
|
||||
if not "%DEPENDENCY_TRACKING%" == "enabled" goto SmallEnv
|
||||
goto NextArgument
|
||||
:LibiconvPrefixOption
|
||||
if "%1" == "no-libiconvprefix" goto NextArgument
|
||||
if "%1" == "no-LIBICONVPREFIX" goto NextArgument
|
||||
if "%1" == "NO-LIBICONVPREFIX" goto NextArgument
|
||||
if "%1" == "libiconvprefix" goto WithLibiconvPrefix
|
||||
if "%1" == "LIBICONVPREFIX" goto WithLibiconvPrefix
|
||||
goto LibintlPrefixOption
|
||||
:WithLibiconvPrefix
|
||||
if "%1" == "libiconvprefix" set LIBICONV_PREFIX=enabled
|
||||
if "%1" == "LIBICONVPREFIX" set LIBICONV_PREFIX=enabled
|
||||
if not "%LIBICONV_PREFIX%" == "enabled" goto SmallEnv
|
||||
goto NextArgument
|
||||
:LibintlPrefixOption
|
||||
if "%1" == "no-libiconvprefix" goto NextArgument
|
||||
if "%1" == "no-LIBICONVPREFIX" goto NextArgument
|
||||
if "%1" == "NO-LIBICONVPREFIX" goto NextArgument
|
||||
if "%1" == "libintlprefix" goto _WithLibintlPrefix
|
||||
if "%1" == "LIBINTLPREFIX" goto _WithLibintlPrefix
|
||||
goto HTMLOption
|
||||
:_WithLibintlPrefix
|
||||
if "%1" == "libintlprefix" set LIBINTL_PREFIX=enabled
|
||||
if "%1" == "LIBINTLPREFIX" set LIBINTL_PREFIX=enabled
|
||||
if not "%LIBINTL_PREFIX%" == "enabled" goto SmallEnv
|
||||
:HTMLOption
|
||||
if "%1" == "withhtml" goto NextArgument
|
||||
if "%1" == "withHTML" goto NextArgument
|
||||
if "%1" == "WITHHTML" goto NextArgument
|
||||
if "%1" == "withouthtml" goto _WithoutHTML
|
||||
if "%1" == "withoutHTML" goto _WithoutHTML
|
||||
if "%1" == "WITHOUTHTML" goto _WithoutHTML
|
||||
goto SrcDirOption
|
||||
:_WithoutHTML
|
||||
if "%1" == "withouthtml" set HTML=disabled
|
||||
if "%1" == "withoutHTML" set HTML=disabled
|
||||
if "%1" == "WITHOUTHTML" set HTML=disabled
|
||||
if not "%HTML%" == "disabled" goto SmallEnv
|
||||
goto NextArgument
|
||||
:SrcDirOption
|
||||
echo %1 | grep -q "/"
|
||||
if errorlevel 1 goto CollectArgument
|
||||
set XSRC=%1
|
||||
if not "%XSRC%" == "%1" goto SmallEnv
|
||||
goto NextArgument
|
||||
:CollectArgument
|
||||
set _ARGS=%ARGS% %1
|
||||
if not "%_ARGS%" == "%ARGS% %1" if not "%_ARGS%" == "%ARGS%%1" goto SmallEnv
|
||||
echo %_ARGS% | grep -q "[^ ]"
|
||||
if not errorlevel 0 set ARGS=%_ARGS%
|
||||
set _ARGS=
|
||||
:NextArgument
|
||||
shift
|
||||
if not "%1" == "" goto ArgLoop
|
||||
|
||||
Rem Create an arguments file for the configure script.
|
||||
echo --srcdir=%XSRC% > arguments
|
||||
if "%CACHING%" == "enabled" echo --cache-file=%XSRC%/djgpp/config.cache >> arguments
|
||||
if "%DEPENDENCY_TRACKING%" == "enabled" echo --enable-dependency-tracking >> arguments
|
||||
if "%DEPENDENCY_TRACKING%" == "disabled" echo --disable-dependency-tracking >> arguments
|
||||
if "%LIBICONV_PREFIX%" == "enabled" echo --with-libiconv-prefix >> arguments
|
||||
if "%LIBICONV_PREFIX%" == "disabled" echo --without-libiconv-prefix >> arguments
|
||||
if "%LIBINTL_PREFIX%" == "enabled" echo --with-libintl-prefix >> arguments
|
||||
if "%LIBINTL_PREFIX%" == "disabled" echo --without-libintl-prefix >> arguments
|
||||
if "%HTML%" == "enabled" echo --enable-html >> arguments
|
||||
if "%HTML%" == "disabled" echo --disable-html >> arguments
|
||||
if not "%ARGS%" == "" echo %ARGS% >> arguments
|
||||
set ARGS=
|
||||
set CACHING=
|
||||
set DEPENDENCY_TRACKING=
|
||||
set LIBICONV_PREFIX=
|
||||
set LIBINTL_PREFIX=
|
||||
set HTML=
|
||||
|
||||
Rem Find out where the sources are
|
||||
if "%XSRC%" == "." goto InPlace
|
||||
|
||||
:NotInPlace
|
||||
redir -e /dev/null update %XSRC%/configure.orig ./configure
|
||||
test -f ./configure
|
||||
if errorlevel 1 update %XSRC%/configure ./configure
|
||||
test -d ./libcharset
|
||||
if errorlevel 1 md libcharset
|
||||
redir -e /dev/null update %XSRC%/libcharset/configure.orig ./libcharset/configure
|
||||
test -f ./libcharset/configure
|
||||
if errorlevel 1 update %XSRC%/libcharset/configure ./libcharset/configure
|
||||
|
||||
:InPlace
|
||||
Rem Update configuration files
|
||||
echo Updating configuration scripts...
|
||||
test -f ./configure.orig
|
||||
if errorlevel 1 update ./configure ./configure.orig
|
||||
sed -f %XSRC%/djgpp/config.sed ./configure.orig > configure
|
||||
if errorlevel 1 goto SedError
|
||||
test -f ./libcharset/configure.orig
|
||||
if errorlevel 1 update ./libcharset/configure ./libcharset/configure.orig
|
||||
sed -f %XSRC%/djgpp/config.sed ./libcharset/configure.orig > configure.tmp
|
||||
if errorlevel 1 goto SedError
|
||||
Rem The following is needed because the toplevel configure script calls the
|
||||
Rem %XSRC%/libcharset/configure script instead of ./libcharset/configure.
|
||||
test -f %XSRC%/libcharset/configure.orig
|
||||
if errorlevel 1 update %XSRC%/libcharset/configure %XSRC%/libcharset/configure.orig
|
||||
update configure.tmp %XSRC%/libcharset/configure
|
||||
rm ./configure.tmp
|
||||
|
||||
Rem Make sure they have a config.site file
|
||||
set CONFIG_SITE=%XSRC%/djgpp/config.site
|
||||
if not "%CONFIG_SITE%" == "%XSRC%/djgpp/config.site" goto SmallEnv
|
||||
|
||||
Rem Make sure crucial file names are not munged by unpacking
|
||||
test -f %XSRC%/config.h.in
|
||||
if not errorlevel 1 redir -e /dev/null mv -f %XSRC%/config.h.in %XSRC%/config.h-in
|
||||
test -f %XSRC%/config.h-in
|
||||
if errorlevel 1 redir -e /dev/null mv -f %XSRC%/config.h %XSRC%/config.h-in
|
||||
test -f %XSRC%/config.h-in
|
||||
if errorlevel 1 redir -e /dev/null mv -f %XSRC%/configh.in %XSRC%/config.h-in
|
||||
test -f %XSRC%/config.h-in
|
||||
if errorlevel 1 redir -e /dev/null mv -f %XSRC%/config_h.in %XSRC%/config.h-in
|
||||
test -f %XSRC%/include/iconv.h.in
|
||||
if not errorlevel 1 redir -e /dev/null mv -f %XSRC%/include/iconv.h.in %XSRC%/include/iconv.h-in
|
||||
test -f %XSRC%/include/iconv.h-in
|
||||
if errorlevel 1 redir -e /dev/null mv -f %XSRC%/include/iconv.h %XSRC%/include/iconv.h-in
|
||||
test -f %XSRC%/include/iconv.h-in
|
||||
if errorlevel 1 redir -e /dev/null mv -f %XSRC%/include/iconvh.in %XSRC%/include/iconv.h-in
|
||||
test -f %XSRC%/include/iconv.h-in
|
||||
if errorlevel 1 redir -e /dev/null mv -f %XSRC%/include/iconv_h.in %XSRC%/include/iconv.h-in
|
||||
test -f %XSRC%/libcharset/config.h.in
|
||||
if not errorlevel 1 redir -e /dev/null mv -f %XSRC%/libcharset/config.h.in %XSRC%/libcharset/config.h-in
|
||||
test -f %XSRC%/libcharset/config.h-in
|
||||
if errorlevel 1 redir -e /dev/null mv -f %XSRC%/libcharset/config.h %XSRC%/libcharset/config.h-in
|
||||
test -f %XSRC%/libcharset/config.h-in
|
||||
if errorlevel 1 redir -e /dev/null mv -f %XSRC%/libcharset/configh.in %XSRC%/libcharset/config.h-in
|
||||
test -f %XSRC%/libcharset/config.h-in
|
||||
if errorlevel 1 redir -e /dev/null mv -f %XSRC%/libcharset/config_h.in %XSRC%/libcharset/config.h-in
|
||||
test -f %XSRC%/libcharset/include/libcharset.h.in
|
||||
if not errorlevel 1 redir -e /dev/null mv -f %XSRC%/libcharset/include/libcharset.h.in %XSRC%/libcharset/include/libcharset.h-in
|
||||
test -f %XSRC%/libcharset/include/libcharset.h-in
|
||||
if errorlevel 1 redir -e /dev/null mv -f %XSRC%/libcharset/include/libcharset.h %XSRC%/libcharset/include/libcharset.h-in
|
||||
test -f %XSRC%/libcharset/include/libcharset.h-in
|
||||
if errorlevel 1 redir -e /dev/null mv -f %XSRC%/libcharset/include/libcharseth.in %XSRC%/libcharset/include/libcharset.h-in
|
||||
test -f %XSRC%/libcharset/include/libcharset.h-in
|
||||
if errorlevel 1 redir -e /dev/null mv -f %XSRC%/libcharset/include/libcharset_h.in %XSRC%/libcharset/include/libcharset.h-in
|
||||
test -f %XSRC%/libcharset/include/localcharset.h.in
|
||||
if not errorlevel 1 redir -e /dev/null mv -f %XSRC%/libcharset/include/localcharset.h.in %XSRC%/libcharset/include/localcharset.h-in
|
||||
test -f %XSRC%/libcharset/include/localcharset.h-in
|
||||
if errorlevel 1 redir -e /dev/null mv -f %XSRC%/libcharset/include/localcharset.h %XSRC%/libcharset/include/localcharset.h-in
|
||||
test -f %XSRC%/libcharset/include/localcharset.h-in
|
||||
if errorlevel 1 redir -e /dev/null mv -f %XSRC%/libcharset/include/localcharseth.in %XSRC%/libcharset/include/localcharset.h-in
|
||||
test -f %XSRC%/libcharset/include/localcharset.h-in
|
||||
if errorlevel 1 redir -e /dev/null mv -f %XSRC%/libcharset/include/localcharset_h.in %XSRC%/libcharset/include/localcharset.h-in
|
||||
|
||||
Rem DJGPP needs ICONV_CONST set to const.
|
||||
sed "s/^#undef ICONV_CONST/#define ICONV_CONST const/" %XSRC%/config.h-in > config.tmp
|
||||
mv -f config.tmp %XSRC%/config.h-in
|
||||
|
||||
Rem All fixes needed to get the package configured, compiled and tested.
|
||||
Rem 1: Change the stateless-check script so it knowns about the
|
||||
Rem new filenames.
|
||||
Rem 2: Ditto for Makefile.in
|
||||
Rem 3: Ditto for source files.
|
||||
|
||||
test -f %XSRC%/stamp-djgppfixes
|
||||
if not errorlevel 1 goto TestsuitFixed
|
||||
Rem Fix the Makefile.ins.
|
||||
test -f %XSRC%/lib/Makefile.orig
|
||||
if errorlevel 1 update %XSRC%/lib/Makefile.in %XSRC%/lib/Makefile.orig
|
||||
sed -f %XSRC%/djgpp/makefile.sed %XSRC%/lib/Makefile.in > Makefile.tmp
|
||||
if errorlevel 1 goto SedError
|
||||
update Makefile.tmp %XSRC%/lib/Makefile.in
|
||||
rm Makefile.tmp
|
||||
test -f %XSRC%/tests/Makefile.orig
|
||||
if errorlevel 1 update %XSRC%/tests/Makefile.in %XSRC%/tests/Makefile.orig
|
||||
sed -f %XSRC%/djgpp/makefile.sed %XSRC%/tests/Makefile.in > Makefile.tmp
|
||||
if errorlevel 1 goto SedError
|
||||
update Makefile.tmp %XSRC%/tests/Makefile.in
|
||||
rm Makefile.tmp
|
||||
|
||||
Rem Fix the source files.
|
||||
test -f %XSRC%/lib/aliases/aliases2.orig
|
||||
if errorlevel 1 update %XSRC%/lib/aliases/aliases2.h %XSRC%/lib/aliases/aliases2.orig
|
||||
sed -f %XSRC%/djgpp/sources.sed %XSRC%/lib/aliases/aliases2.h > aliases2.tmp
|
||||
if errorlevel 1 goto SedError
|
||||
update aliases2.tmp %XSRC%/lib/aliases/aliases2.h
|
||||
rm aliases2.tmp
|
||||
test -f %XSRC%/lib/iconv.orig
|
||||
if errorlevel 1 update %XSRC%/lib/iconv.c %XSRC%/lib/iconv.orig
|
||||
sed -f %XSRC%/djgpp/sources.sed %XSRC%/lib/iconv.c > iconv.tmp
|
||||
if errorlevel 1 goto SedError
|
||||
update iconv.tmp %XSRC%/lib/iconv.c
|
||||
rm iconv.tmp
|
||||
test -f %XSRC%/lib/converters.orig
|
||||
if errorlevel 1 update %XSRC%/lib/converters.h %XSRC%/lib/converters.orig
|
||||
sed -f %XSRC%/djgpp/sources.sed %XSRC%/lib/converters.h > converters.tmp
|
||||
if errorlevel 1 goto SedError
|
||||
update converters.tmp %XSRC%/lib/converters.h
|
||||
rm converters.tmp
|
||||
test -f %XSRC%/lib/cns/11643.orig
|
||||
if errorlevel 1 update %XSRC%/lib/cns/11643.h %XSRC%/lib/cns/11643.orig
|
||||
sed -f %XSRC%/djgpp/sources.sed %XSRC%/lib/cns/11643.h > 11643.tmp
|
||||
if errorlevel 1 goto SedError
|
||||
update 11643.tmp %XSRC%/lib/cns/11643.h
|
||||
rm 11643.tmp
|
||||
test -f %XSRC%/lib/cns/11643_4.orig
|
||||
if errorlevel 1 update %XSRC%/lib/cns/11643_4.h %XSRC%/lib/cns/11643_4.orig
|
||||
sed -f %XSRC%/djgpp/sources.sed %XSRC%/lib/cns/11643_4.h > 11643_4.tmp
|
||||
if errorlevel 1 goto SedError
|
||||
update 11643_4.tmp %XSRC%/lib/cns/11643_4.h
|
||||
rm 11643_4.tmp
|
||||
test -f %XSRC%/lib/iso/ir165.orig
|
||||
if errorlevel 1 update %XSRC%/lib/iso/ir165.h %XSRC%/lib/iso/ir165.orig
|
||||
sed -f %XSRC%/djgpp/sources.sed %XSRC%/lib/iso/ir165.h > ir165.tmp
|
||||
if errorlevel 1 goto SedError
|
||||
update ir165.tmp %XSRC%/lib/iso/ir165.h
|
||||
rm ir165.tmp
|
||||
|
||||
Rem Fix the test scripts.
|
||||
if "%XSRC%" == "." goto NoDirChange
|
||||
cd | sed "s|:.*$|:|" > cd_BuildDir.bat
|
||||
cd | sed "s|^.:|cd |" >> cd_BuildDir.bat
|
||||
mv -f cd_BuildDir.bat %XSRC%/cd_BuildDir.bat
|
||||
echo %XSRC% | sed -e "s|^/dev/||" -e "s|/|:|" -e "s|:.*$|:|g" > cd_SrcDir.bat
|
||||
echo %XSRC% | sed -e "s|^/dev/||" -e "s|/|:/|" -e "s|^.*:|cd |" -e "s|^\.\.|cd &|" -e "s|/|\\|g" >> cd_SrcDir.bat
|
||||
call cd_SrcDir.bat
|
||||
call djgpp\edtest.bat
|
||||
call cd_BuildDir.bat
|
||||
rm -f cd_SrcDir.bat cd_BuildDir.bat %XSRC%/cd_BuildDir.bat
|
||||
goto TestsuitFixed
|
||||
:NoDirChange
|
||||
call djgpp\edtest.bat
|
||||
:TestsuitFixed
|
||||
touch %XSRC%/stamp-djgppfixes
|
||||
|
||||
Rem This is required because DOS/Windows are case-insensitive
|
||||
Rem to file names, and "make install" will do nothing if Make
|
||||
Rem finds a file called `install'.
|
||||
if exist INSTALL mv -f INSTALL INSTALL.txt
|
||||
|
||||
Rem Set SHELL to a sane default or some configure tests stop working
|
||||
Rem if the package is configured across partitions.
|
||||
if not "%SHELL%" == "" goto HomeName
|
||||
set SHELL=/bin/sh
|
||||
if not "%SHELL%" == "/bin/sh" goto SmallEnv
|
||||
echo No SHELL found in the environment, using default value
|
||||
|
||||
:HomeName
|
||||
Rem Set HOME to a sane default so configure stops complaining.
|
||||
if not "%HOME%" == "" goto HostName
|
||||
set HOME=%XSRC%/djgpp
|
||||
if not "%HOME%" == "%XSRC%/djgpp" goto SmallEnv
|
||||
echo No HOME found in the environment, using default value
|
||||
|
||||
:HostName
|
||||
Rem Set HOSTNAME so it shows in config.status
|
||||
if not "%HOSTNAME%" == "" goto hostdone
|
||||
if "%windir%" == "" goto msdos
|
||||
set OS=MS-Windows
|
||||
if not "%OS%" == "MS-Windows" goto SmallEnv
|
||||
goto haveos
|
||||
:msdos
|
||||
set OS=MS-DOS
|
||||
if not "%OS%" == "MS-DOS" goto SmallEnv
|
||||
:haveos
|
||||
if not "%USERNAME%" == "" goto haveuname
|
||||
if not "%USER%" == "" goto haveuser
|
||||
echo No USERNAME and no USER found in the environment, using default values
|
||||
set HOSTNAME=Unknown PC
|
||||
if not "%HOSTNAME%" == "Unknown PC" goto SmallEnv
|
||||
goto userdone
|
||||
:haveuser
|
||||
set HOSTNAME=%USER%'s PC
|
||||
if not "%HOSTNAME%" == "%USER%'s PC" goto SmallEnv
|
||||
goto userdone
|
||||
:haveuname
|
||||
set HOSTNAME=%USERNAME%'s PC
|
||||
if not "%HOSTNAME%" == "%USERNAME%'s PC" goto SmallEnv
|
||||
:userdone
|
||||
set _HOSTNAME=%HOSTNAME%, %OS%
|
||||
if not "%_HOSTNAME%" == "%HOSTNAME%, %OS%" goto SmallEnv
|
||||
set HOSTNAME=%_HOSTNAME%
|
||||
:hostdone
|
||||
set _HOSTNAME=
|
||||
set OS=
|
||||
|
||||
Rem install-sh is required by the configure script but clashes with the
|
||||
Rem various Makefile install-foo targets, so we MUST have it before the
|
||||
Rem script runs and rename it afterwards
|
||||
test -f %XSRC%/install-sh
|
||||
if not errorlevel 1 goto NoRen0
|
||||
test -f %XSRC%/install-sh.sh
|
||||
if not errorlevel 1 mv -f %XSRC%/install-sh.sh %XSRC%/install-sh
|
||||
:NoRen0
|
||||
|
||||
if "%NLS%" == "disabled" goto WithoutNLS
|
||||
|
||||
:WithNLS
|
||||
test -d %XSRC%/po
|
||||
if errorlevel 1 goto WithoutNLS
|
||||
|
||||
Rem Check for the needed libraries and binaries.
|
||||
test -x /dev/env/DJDIR/bin/msgfmt.exe
|
||||
if not errorlevel 0 goto MissingNLSTools
|
||||
test -x /dev/env/DJDIR/bin/xgettext.exe
|
||||
if not errorlevel 0 goto MissingNLSTools
|
||||
test -f /dev/env/DJDIR/include/libcharset.h
|
||||
if not errorlevel 0 goto MissingNLSTools
|
||||
test -f /dev/env/DJDIR/lib/libcharset.a
|
||||
if not errorlevel 0 goto MissingNLSTools
|
||||
test -f /dev/env/DJDIR/include/iconv.h
|
||||
if not errorlevel 0 goto MissingNLSTools
|
||||
test -f /dev/env/DJDIR/lib/libiconv.a
|
||||
if not errorlevel 0 goto MissingNLSTools
|
||||
test -f /dev/env/DJDIR/include/libintl.h
|
||||
if not errorlevel 0 goto MissingNLSTools
|
||||
test -f /dev/env/DJDIR/lib/libintl.a
|
||||
if not errorlevel 0 goto MissingNLSTools
|
||||
|
||||
Rem Recreate the files in the %XSRC%/po subdir with our ported tools.
|
||||
redir -e /dev/null rm %XSRC%/po/*.gmo
|
||||
redir -e /dev/null rm %XSRC%/po/libiconv.pot
|
||||
redir -e /dev/null rm %XSRC%/po/cat-id-tbl.c
|
||||
redir -e /dev/null rm %XSRC%/po/stamp-cat-id
|
||||
|
||||
Rem Update the arguments file for the configure script.
|
||||
Rem We prefer without-included-gettext because libintl.a from gettext package
|
||||
Rem is the only one that is garanteed to have been ported to DJGPP.
|
||||
echo --enable-nls --without-included-gettext >> arguments
|
||||
goto ConfigurePackage
|
||||
|
||||
:MissingNLSTools
|
||||
echo Needed libs/tools for NLS not found. Configuring without NLS.
|
||||
:WithoutNLS
|
||||
Rem Update the arguments file for the configure script.
|
||||
echo --disable-nls >> arguments
|
||||
|
||||
:ConfigurePackage
|
||||
echo Running the ./configure script...
|
||||
sh ./configure @arguments
|
||||
if errorlevel 1 goto CfgError
|
||||
rm arguments
|
||||
echo Done.
|
||||
goto End
|
||||
|
||||
:SedError
|
||||
echo ./configure script editing failed!
|
||||
goto End
|
||||
|
||||
:CfgError
|
||||
echo ./configure script exited abnormally!
|
||||
goto End
|
||||
|
||||
:SmallEnv
|
||||
echo Your environment size is too small. Enlarge it and run me again.
|
||||
echo Configuration NOT done!
|
||||
|
||||
:End
|
||||
test -f %XSRC%/install-sh.sh
|
||||
if not errorlevel 1 goto NoRen1
|
||||
test -f %XSRC%/install-sh
|
||||
if not errorlevel 1 mv -f %XSRC%/install-sh %XSRC%/install-sh.sh
|
||||
:NoRen1
|
||||
set CONFIG_SITE=
|
||||
set HOSTNAME=
|
||||
set XSRC=
|
154
libiconv/djgpp/config.sed
Normal file
154
libiconv/djgpp/config.sed
Normal file
@ -0,0 +1,154 @@
|
||||
# Additional editing of Makefiles
|
||||
/(echo[ ]*':t/ a\
|
||||
# DJGPP specific Makefile changes.\
|
||||
/^aliaspath * *=/s,:,";",g;t t\
|
||||
/TEXINPUTS=/s,:,";",g;t t\
|
||||
/PATH=/s,:,";",g;t t\
|
||||
s,\\.deps,_deps,g;t t\
|
||||
s,\\.libs,_libs,g;t t\
|
||||
s,\\.new\\.,_new.,g;t t\
|
||||
s,\\.old\\.,_old.,g;t t\
|
||||
s,\\.tab\\.,_tab.,g;t t\
|
||||
/^lispdir * *=/ c\\\
|
||||
lispdir = \$(prefix)/gnu/emacs/site-lisp\
|
||||
/^docdir * *=/ c\\\
|
||||
docdir = \$(prefix)/gnudocs/libiconv.110\
|
||||
/(datadir)\\/doc/d\
|
||||
s,config\\.h\\.in,config.h-in,g;t t\
|
||||
s,\\.\\([1-9]\\)\\.html,_\\1.html,g;t t\
|
||||
s,/doc,/gnudocs,g;t t\
|
||||
s,iconv\\.h\\.in,iconv.h-in,g;t t\
|
||||
s,libcharset\\.h\\.in,libcharset.h-in,g;t t\
|
||||
s,localcharset\\.h\\.in,localcharset.h-in,g;t t\
|
||||
s,Makefile\\.in\\.in,Makefile.in-in,g;t t\
|
||||
s,Makefile\\.am\\.in,Makefile.am-in,g;t t\
|
||||
/^install-info-am:/,/^$/ s,file-\\[0-9\\]\\[0-9\\],& \\$\\$file[0-9] \\$\\$file[0-9][0-9],\
|
||||
/^\\.y\\.c:/,/^$/ {\
|
||||
/\\\$(YACC)/ {\
|
||||
s,[ ]*&&.*$,,\
|
||||
a\\\
|
||||
-mv -f y_tab.c \$*.c\\\
|
||||
-@test -f y.tab.c && mv -f y.tab.c \$*.c\\\
|
||||
-@test -f y.tab.h && mv -f y.tab.h y_tab.h\
|
||||
}\
|
||||
}
|
||||
|
||||
# Rename config.h.in into config.h-in
|
||||
/^[ ]*ac_config_headers=/,/^_ACEOF/ {
|
||||
s|config\.h|&:config.h-in|g
|
||||
}
|
||||
/CONFIG_HEADERS=/ s|config\.h\.in|&:config.h-in|2
|
||||
|
||||
|
||||
# Rename iconv.h.in into iconv.h-in
|
||||
/^[ ]*ac_config_files=/,/^EOF/ {
|
||||
s|include/iconv\.h|&:include/iconv.h-in|
|
||||
s|po/Makefile\.in|&:po/Makefile.in-in|
|
||||
}
|
||||
/CONFIG_FILES=/ {
|
||||
s|include/iconv\.h|&:include/iconv\.h-in|2
|
||||
s|po/Makefile\.in|&:po/Makefile.in-in|2
|
||||
}
|
||||
|
||||
# We always use _deps and _libs instead of .deps and .libs, because
|
||||
# the latter is an invalid name on 8+3 MS-DOS filesystem. This makes
|
||||
# the generated Makefiles good for every DJGPP installation, not only
|
||||
# the one where the package was configured (which could happen to be
|
||||
# a Windows box, where leading dots in file names are allowed).
|
||||
s,\.deps,_deps,g
|
||||
s,\.libs,_libs,g
|
||||
/^rmdir[ ]*\.tst/ i\
|
||||
am__leading_dot=_
|
||||
|
||||
# Replace (command) > /dev/null with `command > /dev/null`, since
|
||||
# parenthesized commands always return zero status in the ported Bash,
|
||||
# even if the named command doesn't exist
|
||||
/if ([^|;`]*null/{
|
||||
s,(,`,
|
||||
s,),,
|
||||
/null[ ]*2>&1/ s,2>&1,&`,
|
||||
/null.*null/ s,null.*null,&`,
|
||||
/null.*null/ !{
|
||||
/null[ ]*2>&1/ !s,null,&`,
|
||||
}
|
||||
}
|
||||
|
||||
# DOS-style absolute file names should be supported as well
|
||||
/\*) srcdir=/s,/\*,[\\\\/]* | [A-z]:[\\\\/]*,
|
||||
/\$]\*) INSTALL=/s,\[/\$\]\*,[\\\\/$]* | [A-z]:[\\\\/]*,
|
||||
/\$]\*) ac_rel_source=/s,\[/\$\]\*,[\\\\/$]* | [A-z]:[\\\\/]*,
|
||||
|
||||
# Switch the order of the two Sed commands, since DOS path names
|
||||
# could include a colon
|
||||
/ac_file_inputs=/s,\( -e "s%\^%\$ac_given_srcdir/%"\)\( -e "s%:% $ac_given_srcdir/%g"\),\2\1,
|
||||
|
||||
# Prevent the spliting of conftest.subs.
|
||||
# The sed script: conftest.subs is split into 48 or 90 lines long files.
|
||||
# This will produce sed scripts called conftest.s1, conftest.s2, etc.
|
||||
# that will not work if conftest.subs contains a multi line sed command
|
||||
# at line #90. In this case the first part of the sed command will be the
|
||||
# last line of conftest.s1 and the rest of the command will be the first lines
|
||||
# of conftest.s2. So both script will not work properly.
|
||||
# This matches the configure script produced by Autoconf 2.57
|
||||
/ac_max_sed_lines=[0-9]/ s,=.*$,=`sed -n "$=" $tmp/subs.sed`,
|
||||
|
||||
# The following two items are changes needed for configuring
|
||||
# and compiling across partitions.
|
||||
# 1) The given srcdir value is always translated from the
|
||||
# "x:" syntax into "/dev/x" syntax while we run configure.
|
||||
/^[ ]*-srcdir=\*.*$/ a\
|
||||
ac_optarg=`echo "$ac_optarg" | sed "s,^\\([A-Za-z]\\):,/dev/\\1,"`
|
||||
/set X `ls -Lt \$srcdir/ i\
|
||||
if `echo $srcdir | grep "^/dev/" - > /dev/null`; then\
|
||||
srcdir=`echo "$srcdir" | sed -e "s%^/dev/%%" -e "s%/%:/%"`\
|
||||
fi
|
||||
|
||||
# 2) We need links across partitions,
|
||||
# so we will use "cp -pf" instead of "ln".
|
||||
/# Make a symlink if possible; otherwise try a hard link./,/EOF/ {
|
||||
s,;.*then, 2>/dev/null || cp -pf \$srcdir/\$ac_source \$ac_dest&,
|
||||
}
|
||||
|
||||
# Autoconf 2.52e generated configure scripts
|
||||
# write absolute paths into Makefiles making
|
||||
# them useless for DJGPP installations for which
|
||||
# the package has not been configured for.
|
||||
/MISSING=/,/^$/ {
|
||||
/^fi$/ a\
|
||||
am_missing_run=`echo "$am_missing_run" | sed 's%/dev.*/libiconv-[0-9]\\{1,1\\}[-.0-9]*%${top_srcdir}%'`
|
||||
}
|
||||
/^install_sh=/a\
|
||||
install_sh=`echo "$install_sh" | sed 's%/dev.*/libiconv-[0-9]\\{1,1\\}[-.0-9]*%${top_srcdir}%'`
|
||||
|
||||
# The following makes sure we are not going to remove a directory
|
||||
# which is the cwd on its drive (DOS doesn't allow to remove such
|
||||
# a directory). The trick is to chdir to the root directory on
|
||||
# temp directory's drive before removing $tmp.
|
||||
/^[ ]*trap[ ]*'exit_status=\$\?;[ ]*rm[ ]*-rf/ s%rm -rf%cd $tmp; cd /; &%
|
||||
|
||||
# AC_CONFIG_LINKS fails if the source and destination are on
|
||||
# different file systems and symlinks don't work.
|
||||
/^ ln \$srcdir/s%||%|| cp -pf $srcdir/$ac_source $ac_dest ||%
|
||||
|
||||
# Add DJGPP version information.
|
||||
/^[ ]*VERSION=/ s/\([0-9]\.[0-9]*[-.0-9]*\)/"\1 (DJGPP port 2006-03-21 (r1))"/
|
||||
|
||||
# We need makeinfo to make the html formated docs.
|
||||
/\$am_missing_run[ ]*makeinfo/ s,\$am_missing_run,,
|
||||
|
||||
# The path to the FORTRAN compiler and libraries
|
||||
# shall contain no absolute path reference so it
|
||||
# will be good for all djgpp installations.
|
||||
/^FLIBS="\$ac_cv_flibs"/ i\
|
||||
ac_djgpp_path=`echo "$DJDIR" | sed 's%\\\\\\%/%g' | tr $as_cr_LETTERS $as_cr_letters`\
|
||||
ac_cv_flibs=`echo "$ac_cv_flibs" | sed "s%-L$ac_djgpp_path%-L/dev/env/DJDIR%g"`
|
||||
|
||||
# Let libtool use _libs all the time.
|
||||
/objdir=/s,\.libs,_libs,
|
||||
|
||||
# DJGPP needs ICONV_CONST defined as "const"
|
||||
/if .*am_cv_proto_iconv_arg1/ i\
|
||||
am_cv_proto_iconv_arg1="const"
|
||||
|
||||
# DJGPP installs the man pages into ${prefix}/man and not into ${datadir}/man
|
||||
/^test .*{datadir}\/man/ d
|
59
libiconv/djgpp/config.site
Normal file
59
libiconv/djgpp/config.site
Normal file
@ -0,0 +1,59 @@
|
||||
#! /bin/sh
|
||||
|
||||
# This is the config.site file for configuring GNU packages
|
||||
# which are to be built with DJGPP tools.
|
||||
|
||||
# Include the djgpp subdirectory in PATH, so that getconf is found
|
||||
PATH="$srcdir/djgpp:$PATH"
|
||||
|
||||
# These two variables are required, otherwise looking for
|
||||
# programs along the PATH will not work.
|
||||
PATH_SEPARATOR=:
|
||||
PATH_EXPAND=y
|
||||
|
||||
# This is required in for "test -f foo" to find foo.exe
|
||||
export TEST_FINDS_EXE=y
|
||||
|
||||
# The root of the DJGPP tree serves as the default prefix
|
||||
# for all paths that are hardcoded in the binaries.
|
||||
# When installing the installation prefix must be supplied.
|
||||
test "x$prefix" = xNONE && prefix='/dev/env/DJDIR'
|
||||
|
||||
# This is required for config.status script to be run, since
|
||||
# ./configure runs it by invoking ${CONFIG_SHELL-/bin/sh}
|
||||
CONFIG_SHELL=${CONFIG_SHELL='sh'}
|
||||
|
||||
# These are set here so the generated Makefile's will be good
|
||||
# for every DJGPP installation, not only the one where the
|
||||
# package was configured.
|
||||
# $INSTALL must be an absolute path name, otherwise config.status
|
||||
# will try to prepend ./ and ../ to it when it goes into subdirs.
|
||||
INSTALL=${INSTALL='/dev/env/DJDIR/bin/ginstall -c'}
|
||||
RANLIB=${RANLIB='/dev/env/DJDIR/bin/ranlib'}
|
||||
GMSGFMT=${GMSGFMT='/dev/env/DJDIR/bin/msgfmt'}
|
||||
MSGFMT=${MSGFMT='/dev/env/DJDIR/bin/msgfmt'}
|
||||
XGETTEXT=${XGETTEXT='/dev/env/DJDIR/bin/xgettext'}
|
||||
|
||||
# A sane default for emacs.
|
||||
ac_cv_path_EMACS=${EMACS='/dev/env/DJDIR/gnu/emacs/bin/emacs'}
|
||||
|
||||
# A sane default for grep.
|
||||
ac_cv_path_GREP=${GREP='grep'}
|
||||
ac_cv_path_EGREP=${EGREP='egrep'}
|
||||
ac_cv_path_FGREP=${FGREP='fgrep'}
|
||||
|
||||
# These are set here so the generated libtool will be good
|
||||
# for every DJGPP installation, not only the one where the
|
||||
# package was configured.
|
||||
NM=${NM='/dev/env/DJDIR/bin/nm'}
|
||||
LD=${LD='/dev/env/DJDIR/bin/ld'}
|
||||
STRIP=${STRIP='/dev/env/DJDIR/bin/strip'}
|
||||
lt_cv_path_SED=${SED='/dev/env/DJDIR/bin/sed'}
|
||||
|
||||
# Force the test for 'ln -s' to report no.
|
||||
ac_cv_prog_LN_S='cp -p'
|
||||
cl_cv_prog_LN_S='cp -p'
|
||||
cl_cv_prog_LN='cp -p'
|
||||
|
||||
# DJGPP needs ICONV_CONST set to const
|
||||
am_cv_proto_iconv_arg1="const"
|
35
libiconv/djgpp/edtest.bat
Normal file
35
libiconv/djgpp/edtest.bat
Normal file
@ -0,0 +1,35 @@
|
||||
@echo off
|
||||
if "%XSRC%" == "" set XSRC=.
|
||||
test -f %XSRC%/tests/stateful-check.orig
|
||||
if errorlevel 1 update %XSRC%/tests/stateful-check %XSRC%/tests/stateful-check.orig
|
||||
sed -f %XSRC%/djgpp/stateful-check.sed %XSRC%/tests/stateful-check.orig > stateful-check
|
||||
if errorlevel 1 goto SedError
|
||||
update ./stateful-check %XSRC%/tests/stateful-check
|
||||
rm -f ./stateful-check
|
||||
|
||||
test -f %XSRC%/tests/stateless-check.orig
|
||||
if errorlevel 1 update %XSRC%/tests/stateless-check %XSRC%/tests/stateless-check.orig
|
||||
sed -f %XSRC%/djgpp/stateless-check.sed %XSRC%/tests/stateless-check.orig > stateless-check
|
||||
if errorlevel 1 goto SedError
|
||||
update ./stateless-check %XSRC%/tests/stateless-check
|
||||
rm -f ./stateless-check
|
||||
|
||||
test -f %XSRC%/tests/failuretranslit-check.orig
|
||||
if errorlevel 1 update %XSRC%/tests/failuretranslit-check %XSRC%/tests/failuretranslit-check.orig
|
||||
sed -f %XSRC%/djgpp/translit-check.sed %XSRC%/tests/failuretranslit-check.orig > failuretranslit-check
|
||||
if errorlevel 1 goto SedError
|
||||
update ./failuretranslit-check %XSRC%/tests/failuretranslit-check
|
||||
rm -f ./failuretranslit-check
|
||||
|
||||
test -f %XSRC%/tests/translit-check.orig
|
||||
if errorlevel 1 update %XSRC%/tests/translit-check %XSRC%/tests/translit-check.orig
|
||||
sed -f %XSRC%/djgpp/translit-check.sed %XSRC%/tests/translit-check.orig > translit-check
|
||||
if errorlevel 1 goto SedError
|
||||
update ./translit-check %XSRC%/tests/translit-check
|
||||
rm -f ./translit-check
|
||||
goto End
|
||||
|
||||
:SedError
|
||||
echo test script editing failed!
|
||||
|
||||
:End
|
184
libiconv/djgpp/fnchange.in
Normal file
184
libiconv/djgpp/fnchange.in
Normal file
@ -0,0 +1,184 @@
|
||||
@V@/config.h.in @V@/config.h-in
|
||||
@V@/config.h.msvc @V@/config.h-msvc
|
||||
@V@/build-aux/install-reloc @V@/build-aux/install.reloc
|
||||
@V@/build-aux/install-sh @V@/build-aux/install.sh
|
||||
@V@/m4/strerror_r.m4 @V@/m4/strerr_r.m4
|
||||
@V@/include/iconv.h.in @V@/include/iconv.h-in
|
||||
@V@/include/iconv.h.msvc-static @V@/include/iconv_h.static-msvc
|
||||
@V@/include/iconv.h.msvc-shared @V@/include/iconv_h.shared-msvc
|
||||
@V@/man/iconv.1.html @V@/man/iconv_1.html
|
||||
@V@/man/iconv.3.html @V@/man/iconv_3.html
|
||||
@V@/man/iconv_close.3.html @V@/man/iconv_close_3.html
|
||||
@V@/man/iconv_open.3.html @V@/man/iconv_open_3.html
|
||||
@V@/libcharset/config.h.in @V@/libcharset/config.h-in
|
||||
@V@/libcharset/config.h.msvc @V@/libcharset/config.h-msvc
|
||||
@V@/libcharset/include/libcharset.h.in @V@/libcharset/include/libcharset.h-in
|
||||
@V@/libcharset/include/libcharset.h.msvc-shared @V@/libcharset/include/libcharset.h-msvc-shared
|
||||
@V@/libcharset/include/localcharset.h.in @V@/libcharset/include/localcharset.h-in
|
||||
@V@/libcharset/include/localcharset.h.msvc-shared @V@/libcharset/include/localcharset.h-msvc-shared
|
||||
@V@/libcharset/tools/aix-3.2.5 @V@/libcharset/tools/aix-3.2-5
|
||||
@V@/libcharset/tools/aix-4.1.5 @V@/libcharset/tools/aix-4.1-5
|
||||
@V@/libcharset/tools/aix-4.2.0 @V@/libcharset/tools/aix-4.2-0
|
||||
@V@/libcharset/tools/aix-4.3.2 @V@/libcharset/tools/aix-4.3-2
|
||||
@V@/libcharset/tools/glibc-2.1.3 @V@/libcharset/tools/glibc-2.1-3
|
||||
@V@/libcharset/tools/glibc-2.1.90 @V@/libcharset/tools/glibc-2.1-90
|
||||
@V@/libcharset/tools/locale_charmap @V@/libcharset/tools/locale_charmap
|
||||
@V@/libcharset/tools/locale_charset.c @V@/libcharset/tools/charset_locale.c
|
||||
@V@/libcharset/tools/locale_codeset.c @V@/libcharset/tools/codeset_locale.c
|
||||
@V@/libcharset/tools/solaris-2.5.1 @V@/libcharset/tools/solaris-2.5-1
|
||||
@V@/libcharset/tools/sunos-4.1.4 @V@/libcharset/tools/sunos-4.1-4
|
||||
@V@/libcharset/tools/all-charsets-X11 @V@/libcharset/tools/all-charsets.X11
|
||||
@V@/libcharset/tools/glibc-2.2-XF86-3.3.6 @V@/libcharset/tools/glibc22XF86-3.3-6
|
||||
@V@/libcharset/tools/glibc-2.2-XF86-4.0.1f @V@/libcharset/tools/glibc22XF86-4.0-1f
|
||||
@V@/libcharset/tools/locale_x11encoding.c @V@/libcharset/tools/x11encoding_locale.c
|
||||
@V@/lib/aliases.gperf @V@/lib/aliases/aliases.gperf
|
||||
@V@/lib/aliases.h @V@/lib/aliases/aliases.h
|
||||
@V@/lib/aliases2.h @V@/lib/aliases/aliases2.h
|
||||
@V@/lib/aliases_aix.h @V@/lib/aliases/aix.h
|
||||
@V@/lib/aliases_dos.h @V@/lib/aliases/dos.h
|
||||
@V@/lib/aliases_extra.h @V@/lib/aliases/extra.h
|
||||
@V@/lib/aliases_osf1.h @V@/lib/aliases/osf1.h
|
||||
@V@/lib/cns11643.h @V@/lib/cns/11643.h
|
||||
@V@/lib/cns11643_1.h @V@/lib/cns/11643_1.h
|
||||
@V@/lib/cns11643_2.h @V@/lib/cns/11643_2.h
|
||||
@V@/lib/cns11643_3.h @V@/lib/cns/11643_3.h
|
||||
@V@/lib/cns11643_4.h @V@/lib/cns/11643_4.h
|
||||
@V@/lib/cns11643_4a.h @V@/lib/cns/11643_4a.h
|
||||
@V@/lib/cns11643_4b.h @V@/lib/cns/11643_4b.h
|
||||
@V@/lib/cns11643_5.h @V@/lib/cns/11643_5.h
|
||||
@V@/lib/cns11643_6.h @V@/lib/cns/11643_6.h
|
||||
@V@/lib/cns11643_7.h @V@/lib/cns/11643_7.h
|
||||
@V@/lib/cns11643_15.h @V@/lib/cns/11643_15.h
|
||||
@V@/lib/cns11643_inv.h @V@/lib/cns/11643_inv.h
|
||||
@V@/lib/config.h.in @V@/lib/config.h-in
|
||||
@V@/lib/config.h.msvc @V@/lib/config.h-msvc
|
||||
@V@/lib/canonical.h @V@/lib/canonical/canonical.h
|
||||
@V@/lib/canonical.h @V@/lib/canonical/canonical.h
|
||||
@V@/lib/canonical.h @V@/lib/canonical/canonical.h
|
||||
@V@/lib/canonical.h @V@/lib/canonical/canonical.h
|
||||
@V@/lib/canonical_aix.h @V@/lib/canonical/aix.h
|
||||
@V@/lib/canonical_dos.h @V@/lib/canonical/dos.h
|
||||
@V@/lib/canonical_extra.h @V@/lib/canonical/extra.h
|
||||
@V@/lib/canonical_osf1.h @V@/lib/canonical/osf1.h
|
||||
@V@/lib/canonical_local.h @V@/lib/canonical/local.h
|
||||
@V@/lib/encodings.def @V@/lib/encodings/encodings.def
|
||||
@V@/lib/encodings_aix.def @V@/lib/encodings/aix.def
|
||||
@V@/lib/encodings_dos.def @V@/lib/encodings/dos.def
|
||||
@V@/lib/encodings_extra.def @V@/lib/encodings/extra.def
|
||||
@V@/lib/encodings_local.def @V@/lib/encodings/local.def
|
||||
@V@/lib/encodings_osf1.def @V@/lib/encodings/osf1.def
|
||||
@V@/lib/genaliases2.c @V@/lib/2genaliases.c
|
||||
@V@/lib/georgian_academy.h @V@/lib/georgian/academy.h
|
||||
@V@/lib/georgian_ps.h @V@/lib/georgian/ps.h
|
||||
@V@/lib/iso2022_cn.h @V@/lib/iso/2022_cn.h
|
||||
@V@/lib/iso2022_cnext.h @V@/lib/iso/2022_cnext.h
|
||||
@V@/lib/iso2022_jp.h @V@/lib/iso/2022_jp.h
|
||||
@V@/lib/iso2022_jp1.h @V@/lib/iso/2022_jp1.h
|
||||
@V@/lib/iso2022_jp2.h @V@/lib/iso/2022_jp2.h
|
||||
@V@/lib/iso2022_jp3.h @V@/lib/iso/2022_jp3.h
|
||||
@V@/lib/iso2022_kr.h @V@/lib/iso/2022_kr.h
|
||||
@V@/lib/iso646_cn.h @V@/lib/iso/646_cn.h
|
||||
@V@/lib/iso646_jp.h @V@/lib/iso/646_jp.h
|
||||
@V@/lib/iso8859_1.h @V@/lib/iso/8859_1.h
|
||||
@V@/lib/iso8859_10.h @V@/lib/iso/8859_10.h
|
||||
@V@/lib/iso8859_11.h @V@/lib/iso/8859_11.h
|
||||
@V@/lib/iso8859_13.h @V@/lib/iso/8859_13.h
|
||||
@V@/lib/iso8859_14.h @V@/lib/iso/8859_14.h
|
||||
@V@/lib/iso8859_15.h @V@/lib/iso/8859_15.h
|
||||
@V@/lib/iso8859_16.h @V@/lib/iso/8859_16.h
|
||||
@V@/lib/iso8859_2.h @V@/lib/iso/8859_2.h
|
||||
@V@/lib/iso8859_3.h @V@/lib/iso/8859_3.h
|
||||
@V@/lib/iso8859_4.h @V@/lib/iso/8859_4.h
|
||||
@V@/lib/iso8859_5.h @V@/lib/iso/8859_5.h
|
||||
@V@/lib/iso8859_6.h @V@/lib/iso/8859_6.h
|
||||
@V@/lib/iso8859_7.h @V@/lib/iso/8859_7.h
|
||||
@V@/lib/iso8859_8.h @V@/lib/iso/8859_8.h
|
||||
@V@/lib/iso8859_9.h @V@/lib/iso/8859_9.h
|
||||
@V@/lib/isoir165.h @V@/lib/iso/ir165.h
|
||||
@V@/lib/isoir165ext.h @V@/lib/iso/ir165ext.h
|
||||
@V@/lib/mac_arabic.h @V@/lib/mac/arabic.h
|
||||
@V@/lib/mac_centraleurope.h @V@/lib/mac/centraleurope.h
|
||||
@V@/lib/mac_croatian.h @V@/lib/mac/croatian.h
|
||||
@V@/lib/mac_cyrillic.h @V@/lib/mac/cyrillic.h
|
||||
@V@/lib/mac_greek.h @V@/lib/mac/greek.h
|
||||
@V@/lib/mac_hebrew.h @V@/lib/mac/hebrew.h
|
||||
@V@/lib/mac_iceland.h @V@/lib/mac/iceland.h
|
||||
@V@/lib/mac_roman.h @V@/lib/mac/roman.h
|
||||
@V@/lib/mac_romania.h @V@/lib/mac/romania.h
|
||||
@V@/lib/mac_thai.h @V@/lib/mac/thai.h
|
||||
@V@/lib/mac_turkish.h @V@/lib/mac/turkish.h
|
||||
@V@/lib/mac_ukraine.h @V@/lib/mac/ukraine.h
|
||||
@V@/po/Makefile.in.in @V@/po/Makefile.in-in
|
||||
@V@/po/Makefile.msvc.sh @V@/po/Makefile-msvc.sh
|
||||
@V@/tests/ARMSCII-8.IRREVERSIBLE.TXT @V@/tests/ARMSCII-8.IRREVERSIBLE-TXT
|
||||
@V@/tests/CP932.IRREVERSIBLE.TXT @V@/tests/CP932.IRREVERSIBLE-TXT
|
||||
@V@/tests/CP950.IRREVERSIBLE.TXT @V@/tests/CP950.IRREVERSIBLE-TXT
|
||||
@V@/tests/CP1161.IRREVERSIBLE.TXT @V@/tests/CP1161.IRREVERSIBLE-TXT
|
||||
@V@/tests/CP1163.IRREVERSIBLE.TXT @V@/tests/CP1163.IRREVERSIBLE-TXT
|
||||
@V@/tests/DEC-HANYU.IRREVERSIBLE.TXT @V@/tests/DEC-HANYU.IRREVERSIBLE-TXT
|
||||
@V@/tests/EUC-JP.IRREVERSIBLE.TXT @V@/tests/EUC-JP.IRREVERSIBLE-TXT
|
||||
@V@/tests/EUC-TW.IRREVERSIBLE.TXT @V@/tests/EUC-TW.IRREVERSIBLE-TXT
|
||||
@V@/tests/Georgian-PS.TXT @V@/tests/Georgian/PS.TXT
|
||||
@V@/tests/Georgian-Academy.TXT @V@/tests/Georgian/Academy.TXT
|
||||
@V@/tests/ISO-2022-CN-EXT-snippet @V@/tests/ISO/2022CN-EXT-snippet
|
||||
@V@/tests/ISO-2022-CN-EXT-snippet.UTF-8 @V@/tests/ISO/2022CN-EXT-snippet.UTF-8
|
||||
@V@/tests/ISO-2022-CN-snippet @V@/tests/ISO/2022CN-snippet
|
||||
@V@/tests/ISO-2022-CN-snippet.UTF-8 @V@/tests/ISO/2022CN-snippet.UTF-8
|
||||
@V@/tests/ISO-2022-JP-1-snippet @V@/tests/ISO/2022JP-1-snippet
|
||||
@V@/tests/ISO-2022-JP-1-snippet.UTF-8 @V@/tests/ISO/2022JP-1-snippet.UTF-8
|
||||
@V@/tests/ISO-2022-JP-2-snippet @V@/tests/ISO/2022JP-2-snippet
|
||||
@V@/tests/ISO-2022-JP-2-snippet.UTF-8 @V@/tests/ISO/2022JP-2-snippet.UTF-8
|
||||
@V@/tests/ISO-2022-JP-3-snippet @V@/tests/ISO/2022JP-3-snippet
|
||||
@V@/tests/ISO-2022-JP-3-snippet.UTF-8 @V@/tests/ISO/2022JP-3-snippet.UTF-8
|
||||
@V@/tests/ISO-2022-JP-snippet @V@/tests/ISO/2022JP-snippet
|
||||
@V@/tests/ISO-2022-JP-snippet.UTF-8 @V@/tests/ISO/2022JP-snippet.UTF-8
|
||||
@V@/tests/ISO-2022-KR-snippet @V@/tests/ISO/2022KR-snippet
|
||||
@V@/tests/ISO-2022-KR-snippet.UTF-8 @V@/tests/ISO/2022KR-snippet.UTF-8
|
||||
@V@/tests/ISO-8859-1.TXT @V@/tests/ISO/8859-1.TXT
|
||||
@V@/tests/ISO-8859-10.TXT @V@/tests/ISO/8859-10.TXT
|
||||
@V@/tests/ISO-8859-11.TXT @V@/tests/ISO/8859-11.TXT
|
||||
@V@/tests/ISO-8859-13.TXT @V@/tests/ISO/8859-13.TXT
|
||||
@V@/tests/ISO-8859-14.TXT @V@/tests/ISO/8859-14.TXT
|
||||
@V@/tests/ISO-8859-15.TXT @V@/tests/ISO/8859-15.TXT
|
||||
@V@/tests/ISO-8859-16.TXT @V@/tests/ISO/8859-16.TXT
|
||||
@V@/tests/ISO-8859-2.TXT @V@/tests/ISO/8859-2.TXT
|
||||
@V@/tests/ISO-8859-3.TXT @V@/tests/ISO/8859-3.TXT
|
||||
@V@/tests/ISO-8859-4.TXT @V@/tests/ISO/8859-4.TXT
|
||||
@V@/tests/ISO-8859-5.TXT @V@/tests/ISO/8859-5.TXT
|
||||
@V@/tests/ISO-8859-6.TXT @V@/tests/ISO/8859-6.TXT
|
||||
@V@/tests/ISO-8859-7.TXT @V@/tests/ISO/8859-7.TXT
|
||||
@V@/tests/ISO-8859-8.TXT @V@/tests/ISO/8859-8.TXT
|
||||
@V@/tests/ISO-8859-9.TXT @V@/tests/ISO/8859-9.TXT
|
||||
@V@/tests/ISO-IR-165.IRREVERSIBLE.TXT @V@/tests/ISO/IR-165.IRREVERSIBLE-TXT
|
||||
@V@/tests/ISO-IR-165.TXT @V@/tests/ISO/IR-165.TXT
|
||||
@V@/tests/MacArabic.TXT @V@/tests/Mac/Arabic.TXT
|
||||
@V@/tests/MacCentralEurope.TXT @V@/tests/Mac/CentralEurope.TXT
|
||||
@V@/tests/MacCroatian.TXT @V@/tests/Mac/Croatian.TXT
|
||||
@V@/tests/MacCyrillic.TXT @V@/tests/Mac/Cyrillic.TXT
|
||||
@V@/tests/MacGreek.TXT @V@/tests/Mac/Greek.TXT
|
||||
@V@/tests/MacHebrew.TXT @V@/tests/Mac/Hebrew.TXT
|
||||
@V@/tests/MacIceland.TXT @V@/tests/Mac/Iceland.TXT
|
||||
@V@/tests/MacRoman.TXT @V@/tests/Mac/Roman.TXT
|
||||
@V@/tests/MacRomania.TXT @V@/tests/Mac/Romania.TXT
|
||||
@V@/tests/MacThai.TXT @V@/tests/Mac/Thai.TXT
|
||||
@V@/tests/MacTurkish.TXT @V@/tests/Mac/Turkish.TXT
|
||||
@V@/tests/MacUkraine.TXT @V@/tests/Mac/Ukraine.TXT
|
||||
@V@/tests/check-stateful @V@/tests/stateful-check
|
||||
@V@/tests/check-stateful.bat @V@/tests/stateful-check.bat
|
||||
@V@/tests/check-stateful.cmd @V@/tests/stateful-check.cmd
|
||||
@V@/tests/check-stateless @V@/tests/stateless-check
|
||||
@V@/tests/check-stateless.bat @V@/tests/stateless-check.bat
|
||||
@V@/tests/check-stateless.cmd @V@/tests/stateless-check.cmd
|
||||
@V@/tests/check-translit @V@/tests/translit-check
|
||||
@V@/tests/check-translit.bat @V@/tests/translit-check.bat
|
||||
@V@/tests/check-translit.cmd @V@/tests/translit-check.cmd
|
||||
@V@/tests/check-translitfailure @V@/tests/failuretranslit-check
|
||||
@V@/tests/BIG5-HKSCS.IRREVERSIBLE.TXT @V@/tests/BIG5-HKSCS.IRREVERSIBLE-TXT
|
||||
@V@/tests/CP1258.IRREVERSIBLE.TXT @V@/tests/CP1258.IRREVERSIBLE-TXT
|
||||
@V@/tests/TCVN.IRREVERSIBLE.TXT @V@/tests/TCVN.IRREVERSIBLE-TXT
|
||||
@V@/tests/CP1255.IRREVERSIBLE.TXT @V@/tests/CP1255.IRREVERSIBLE-TXT
|
||||
@V@/tests/TranslitFail1.ISO-8859-1 @V@/tests/_Translit/Fail1.ISO-8859-1
|
||||
@V@/tests/Translit1.ISO-8859-1 @V@/tests/_Translit/1.ISO-8859-1
|
||||
@V@/tests/Translit1.ASCII @V@/tests/_Translit/1.ASCII
|
||||
@V@/tests/SHIFT_JIS.TXT @V@/tests/SHIFT/JIS.TXT
|
||||
@V@/tests/SHIFT_JISX0213.TXT @V@/tests/SHIFT/JISX0213.TXT
|
220
libiconv/djgpp/fnchange.lst
Normal file
220
libiconv/djgpp/fnchange.lst
Normal file
@ -0,0 +1,220 @@
|
||||
libiconv-1.11/include/iconv.h.msvc-static libiconv-1.11/include/iconv_h.static-msvc
|
||||
libiconv-1.11/include/iconv.h.msvc-shared libiconv-1.11/include/iconv_h.shared-msvc
|
||||
libiconv-1.11/tests/Georgian-PS.TXT libiconv-1.11/tests/Georgian/PS.TXT
|
||||
libiconv-1.11/tests/ARMSCII-8.IRREVERSIBLE.TXT libiconv-1.11/tests/ARMSCII-8.IRREVERSIBLE-TXT
|
||||
libiconv-1.11/tests/CP932.IRREVERSIBLE.TXT libiconv-1.11/tests/CP932.IRREVERSIBLE-TXT
|
||||
libiconv-1.11/tests/CP950.IRREVERSIBLE.TXT libiconv-1.11/tests/CP950.IRREVERSIBLE-TXT
|
||||
libiconv-1.11/tests/EUC-TW.IRREVERSIBLE.TXT libiconv-1.11/tests/EUC-TW.IRREVERSIBLE-TXT
|
||||
libiconv-1.11/tests/ISO-2022-CN-EXT-snippet libiconv-1.11/tests/ISO/2022CN-EXT-snippet
|
||||
libiconv-1.11/tests/Georgian-Academy.TXT libiconv-1.11/tests/Georgian/Academy.TXT
|
||||
libiconv-1.11/tests/ISO-2022-CN-EXT-snippet.UTF-8 libiconv-1.11/tests/ISO/2022CN-EXT-snippet.UTF-8
|
||||
libiconv-1.11/tests/ISO-2022-CN-snippet libiconv-1.11/tests/ISO/2022CN-snippet
|
||||
libiconv-1.11/tests/ISO-2022-CN-snippet.UTF-8 libiconv-1.11/tests/ISO/2022CN-snippet.UTF-8
|
||||
libiconv-1.11/tests/ISO-2022-JP-1-snippet libiconv-1.11/tests/ISO/2022JP-1-snippet
|
||||
libiconv-1.11/tests/ISO-2022-JP-1-snippet.UTF-8 libiconv-1.11/tests/ISO/2022JP-1-snippet.UTF-8
|
||||
libiconv-1.11/tests/ISO-2022-JP-2-snippet libiconv-1.11/tests/ISO/2022JP-2-snippet
|
||||
libiconv-1.11/tests/ISO-2022-JP-2-snippet.UTF-8 libiconv-1.11/tests/ISO/2022JP-2-snippet.UTF-8
|
||||
libiconv-1.11/tests/ISO-2022-JP-snippet libiconv-1.11/tests/ISO/2022JP-snippet
|
||||
libiconv-1.11/tests/ISO-2022-JP-snippet.UTF-8 libiconv-1.11/tests/ISO/2022JP-snippet.UTF-8
|
||||
libiconv-1.11/tests/ISO-2022-KR-snippet libiconv-1.11/tests/ISO/2022KR-snippet
|
||||
libiconv-1.11/tests/ISO-2022-KR-snippet.UTF-8 libiconv-1.11/tests/ISO/2022KR-snippet.UTF-8
|
||||
libiconv-1.11/tests/ISO-8859-1.TXT libiconv-1.11/tests/ISO/8859-1.TXT
|
||||
libiconv-1.11/tests/ISO-8859-10.TXT libiconv-1.11/tests/ISO/8859-10.TXT
|
||||
libiconv-1.11/tests/ISO-8859-13.TXT libiconv-1.11/tests/ISO/8859-13.TXT
|
||||
libiconv-1.11/tests/ISO-8859-14.TXT libiconv-1.11/tests/ISO/8859-14.TXT
|
||||
libiconv-1.11/tests/ISO-8859-15.TXT libiconv-1.11/tests/ISO/8859-15.TXT
|
||||
libiconv-1.11/tests/ISO-8859-16.TXT libiconv-1.11/tests/ISO/8859-16.TXT
|
||||
libiconv-1.11/tests/ISO-8859-2.TXT libiconv-1.11/tests/ISO/8859-2.TXT
|
||||
libiconv-1.11/tests/ISO-8859-3.TXT libiconv-1.11/tests/ISO/8859-3.TXT
|
||||
libiconv-1.11/tests/ISO-8859-4.TXT libiconv-1.11/tests/ISO/8859-4.TXT
|
||||
libiconv-1.11/tests/ISO-8859-5.TXT libiconv-1.11/tests/ISO/8859-5.TXT
|
||||
libiconv-1.11/tests/ISO-8859-6.TXT libiconv-1.11/tests/ISO/8859-6.TXT
|
||||
libiconv-1.11/tests/ISO-8859-7.TXT libiconv-1.11/tests/ISO/8859-7.TXT
|
||||
libiconv-1.11/tests/ISO-8859-8.TXT libiconv-1.11/tests/ISO/8859-8.TXT
|
||||
libiconv-1.11/tests/ISO-8859-9.TXT libiconv-1.11/tests/ISO/8859-9.TXT
|
||||
libiconv-1.11/tests/ISO-IR-165.IRREVERSIBLE.TXT libiconv-1.11/tests/ISO/IR-165.IRREVERSIBLE-TXT
|
||||
libiconv-1.11/tests/ISO-IR-165.TXT libiconv-1.11/tests/ISO/IR-165.TXT
|
||||
libiconv-1.11/tests/ISO646-CN.TXT libiconv-1.11/tests/ISO646-CN.TXT
|
||||
libiconv-1.11/tests/ISO646-JP.TXT libiconv-1.11/tests/ISO646-JP.TXT
|
||||
libiconv-1.11/tests/MacArabic.TXT libiconv-1.11/tests/Mac/Arabic.TXT
|
||||
libiconv-1.11/tests/MacCentralEurope.TXT libiconv-1.11/tests/Mac/CentralEurope.TXT
|
||||
libiconv-1.11/tests/MacCroatian.TXT libiconv-1.11/tests/Mac/Croatian.TXT
|
||||
libiconv-1.11/tests/MacCyrillic.TXT libiconv-1.11/tests/Mac/Cyrillic.TXT
|
||||
libiconv-1.11/tests/MacGreek.TXT libiconv-1.11/tests/Mac/Greek.TXT
|
||||
libiconv-1.11/tests/MacHebrew.TXT libiconv-1.11/tests/Mac/Hebrew.TXT
|
||||
libiconv-1.11/tests/MacIceland.TXT libiconv-1.11/tests/Mac/Iceland.TXT
|
||||
libiconv-1.11/tests/MacRoman.TXT libiconv-1.11/tests/Mac/Roman.TXT
|
||||
libiconv-1.11/tests/MacRomania.TXT libiconv-1.11/tests/Mac/Romania.TXT
|
||||
libiconv-1.11/tests/MacThai.TXT libiconv-1.11/tests/Mac/Thai.TXT
|
||||
libiconv-1.11/tests/MacTurkish.TXT libiconv-1.11/tests/Mac/Turkish.TXT
|
||||
libiconv-1.11/tests/MacUkraine.TXT libiconv-1.11/tests/Mac/Ukraine.TXT
|
||||
libiconv-1.11/tests/Makefile.in libiconv-1.11/tests/Makefile.in
|
||||
libiconv-1.11/tests/MuleLao-1.TXT libiconv-1.11/tests/MuleLao-1.TXT
|
||||
libiconv-1.11/tests/NEXTSTEP.TXT libiconv-1.11/tests/NEXTSTEP.TXT
|
||||
libiconv-1.11/tests/Quotes.ASCII libiconv-1.11/tests/Quotes.ASCII
|
||||
libiconv-1.11/tests/Quotes.ISO-8859-1 libiconv-1.11/tests/Quotes.ISO-8859-1
|
||||
libiconv-1.11/tests/Quotes.UTF-8 libiconv-1.11/tests/Quotes.UTF-8
|
||||
libiconv-1.11/tests/SHIFT-JIS.TXT libiconv-1.11/tests/SHIFT-JIS.TXT
|
||||
libiconv-1.11/tests/TCVN.TXT libiconv-1.11/tests/TCVN.TXT
|
||||
libiconv-1.11/tests/TIS-620.TXT libiconv-1.11/tests/TIS-620.TXT
|
||||
libiconv-1.11/tests/UTF-7-snippet libiconv-1.11/tests/UTF-7-snippet
|
||||
libiconv-1.11/tests/UTF-7-snippet.UTF-8 libiconv-1.11/tests/UTF-7-snippet.UTF-8
|
||||
libiconv-1.11/tests/VISCII.TXT libiconv-1.11/tests/VISCII.TXT
|
||||
libiconv-1.11/tests/check-stateful libiconv-1.11/tests/stateful-check
|
||||
libiconv-1.11/tests/check-stateless libiconv-1.11/tests/stateless-check
|
||||
libiconv-1.11/tests/check-translit libiconv-1.11/tests/translit-check
|
||||
libiconv-1.11/tests/check-translit.bat libiconv-1.11/tests/translit-check.bat
|
||||
libiconv-1.11/tests/check-stateless.bat libiconv-1.11/tests/stateless-check.bat
|
||||
libiconv-1.11/tests/check-stateful.bat libiconv-1.11/tests/stateful-check.bat
|
||||
libiconv-1.11/tests/check-stateful.cmd libiconv-1.11/tests/stateful-check.cmd
|
||||
libiconv-1.11/tests/check-stateless.cmd libiconv-1.11/tests/stateless-check.cmd
|
||||
libiconv-1.11/tests/check-translit.cmd libiconv-1.11/tests/translit-check.cmd
|
||||
libiconv-1.11/tests/BIG5-HKSCS.IRREVERSIBLE.TXT libiconv-1.11/tests/BIG5-HKSCS.IRREVERSIBLE-TXT
|
||||
libiconv-1.11/libcharset/tools/README libiconv-1.11/libcharset/tools/README
|
||||
libiconv-1.11/libcharset/tools/aix-3.2.5 libiconv-1.11/libcharset/tools/aix-3.2.5
|
||||
libiconv-1.11/libcharset/tools/aix-4.1.5 libiconv-1.11/libcharset/tools/aix-4.1.5
|
||||
libiconv-1.11/libcharset/tools/aix-4.2.0 libiconv-1.11/libcharset/tools/aix-4.2.0
|
||||
libiconv-1.11/libcharset/tools/aix-4.3.2 libiconv-1.11/libcharset/tools/aix-4.3.2
|
||||
libiconv-1.11/libcharset/tools/all-charsets libiconv-1.11/libcharset/tools/all-charsets
|
||||
libiconv-1.11/libcharset/tools/all-locales libiconv-1.11/libcharset/tools/all-locales
|
||||
libiconv-1.11/libcharset/tools/freebsd-3.3 libiconv-1.11/libcharset/tools/freebsd-3.3
|
||||
libiconv-1.11/libcharset/tools/glibc-2.1.3 libiconv-1.11/libcharset/tools/glibc-2.1.3
|
||||
libiconv-1.11/libcharset/tools/glibc-2.1.90 libiconv-1.11/libcharset/tools/glibc-2.1.90
|
||||
libiconv-1.11/libcharset/tools/hpux-10.01 libiconv-1.11/libcharset/tools/hpux-10.01
|
||||
libiconv-1.11/libcharset/tools/hpux-10.20 libiconv-1.11/libcharset/tools/hpux-10.20
|
||||
libiconv-1.11/libcharset/tools/hpux-11.00 libiconv-1.11/libcharset/tools/hpux-11.00
|
||||
libiconv-1.11/libcharset/tools/irix-6.5 libiconv-1.11/libcharset/tools/irix-6.5
|
||||
libiconv-1.11/libcharset/tools/locale_charmap libiconv-1.11/libcharset/tools/locale_charmap
|
||||
libiconv-1.11/libcharset/tools/locale_charset.c libiconv-1.11/libcharset/tools/locale_charset.c
|
||||
libiconv-1.11/libcharset/tools/locale_codeset.c libiconv-1.11/libcharset/tools/localecodeset.c
|
||||
libiconv-1.11/libcharset/tools/osf1-4.0a libiconv-1.11/libcharset/tools/osf1-4.0a
|
||||
libiconv-1.11/libcharset/tools/osf1-4.0d libiconv-1.11/libcharset/tools/osf1-4.0d
|
||||
libiconv-1.11/libcharset/tools/osf1-5.1 libiconv-1.11/libcharset/tools/osf1-5.1
|
||||
libiconv-1.11/libcharset/tools/solaris-2.4 libiconv-1.11/libcharset/tools/solaris-2.4
|
||||
libiconv-1.11/libcharset/tools/solaris-2.5.1 libiconv-1.11/libcharset/tools/solaris-2.5.1
|
||||
libiconv-1.11/libcharset/tools/solaris-2.6 libiconv-1.11/libcharset/tools/solaris-2.6
|
||||
libiconv-1.11/libcharset/tools/solaris-2.6-cjk libiconv-1.11/libcharset/tools/solaris-2.6-cjk
|
||||
libiconv-1.11/libcharset/tools/solaris-2.7 libiconv-1.11/libcharset/tools/solaris-2.7
|
||||
libiconv-1.11/libcharset/tools/sunos-4.1.4 libiconv-1.11/libcharset/tools/sunos-4.1.4
|
||||
libiconv-1.11/libcharset/tools/win32 libiconv-1.11/libcharset/tools/win32
|
||||
libiconv-1.11/libcharset/tools/glibc-2.2 libiconv-1.11/libcharset/tools/glibc-2.2
|
||||
libiconv-1.11/libcharset/tools/all-charsets-X11 libiconv-1.11/libcharset/tools/all-charsets.X11
|
||||
libiconv-1.11/libcharset/tools/glibc-2.2-XF86-3.3.6 libiconv-1.11/libcharset/tools/glibc-2.2-XF86-3.3.6
|
||||
libiconv-1.11/libcharset/tools/glibc-2.2-XF86-4.0.1f libiconv-1.11/libcharset/tools/glibc-2.2XF86-4.0.1f
|
||||
libiconv-1.11/libcharset/tools/locale_x11encoding.c libiconv-1.11/libcharset/tools/locale_x11encoding.c
|
||||
libiconv-1.11/libcharset/tools/beos-5 libiconv-1.11/libcharset/tools/beos-5
|
||||
libiconv-1.11/libcharset/m4/ChangeLog libiconv-1.11/libcharset/m4/ChangeLog
|
||||
libiconv-1.11/libcharset/m4/codeset.m4 libiconv-1.11/libcharset/m4/codeset.m4
|
||||
libiconv-1.11/libcharset/m4/glibc21.m4 libiconv-1.11/libcharset/m4/glibc21.m4
|
||||
libiconv-1.11/libcharset/m4/libtool.m4 libiconv-1.11/libcharset/m4/libtool.m4
|
||||
libiconv-1.11/libcharset/lib/config.charset libiconv-1.11/libcharset/lib/config.charset
|
||||
libiconv-1.11/libcharset/lib/localcharset.c libiconv-1.11/libcharset/lib/localcharset.c
|
||||
libiconv-1.11/libcharset/lib/ref-add.sin libiconv-1.11/libcharset/lib/ref-add.sin
|
||||
libiconv-1.11/libcharset/lib/ref-del.sin libiconv-1.11/libcharset/lib/ref-del.sin
|
||||
libiconv-1.11/libcharset/lib/ChangeLog libiconv-1.11/libcharset/lib/ChangeLog
|
||||
libiconv-1.11/libcharset/lib/Makefile.in libiconv-1.11/libcharset/lib/Makefile.in
|
||||
libiconv-1.11/libcharset/lib/Makefile.msvc libiconv-1.11/libcharset/lib/Makefile.msvc
|
||||
libiconv-1.11/libcharset/AUTHORS libiconv-1.11/libcharset/AUTHORS
|
||||
libiconv-1.11/libcharset/COPYING.LIB libiconv-1.11/libcharset/COPYING.LIB
|
||||
libiconv-1.11/libcharset/INSTALL.generic libiconv-1.11/libcharset/INSTALL.generic
|
||||
libiconv-1.11/libcharset/README libiconv-1.11/libcharset/README
|
||||
libiconv-1.11/libcharset/Makefile.devel libiconv-1.11/libcharset/Makefile.devel
|
||||
libiconv-1.11/libcharset/Makefile.in libiconv-1.11/libcharset/Makefile.in
|
||||
libiconv-1.11/libcharset/configure.ac libiconv-1.11/libcharset/configure.ac
|
||||
libiconv-1.11/libcharset/configure libiconv-1.11/libcharset/configure
|
||||
libiconv-1.11/libcharset/INTEGRATE libiconv-1.11/libcharset/INTEGRATE
|
||||
libiconv-1.11/libcharset/include/localcharset.h.in libiconv-1.11/libcharset/include/localcharset.h.in
|
||||
libiconv-1.11/libcharset/include/localcharset.h.msvc-shared libiconv-1.11/libcharset/include/localcharset_h.shared-msvc
|
||||
libiconv-1.11/libcharset/autoconf/config.guess libiconv-1.11/libcharset/autoconf/config.guess
|
||||
libiconv-1.11/libcharset/autoconf/config.sub libiconv-1.11/libcharset/autoconf/config.sub
|
||||
libiconv-1.11/libcharset/autoconf/ltmain.sh libiconv-1.11/libcharset/autoconf/ltmain.sh
|
||||
libiconv-1.11/libcharset/autoconf/install-sh libiconv-1.11/libcharset/autoconf/install-sh
|
||||
libiconv-1.11/libcharset/autoconf/aclocal.m4 libiconv-1.11/libcharset/autoconf/aclocal.m4
|
||||
libiconv-1.11/libcharset/autoconf/mkinstalldirs libiconv-1.11/libcharset/autoconf/mkinstalldirs
|
||||
libiconv-1.11/libcharset/config.h.in libiconv-1.11/libcharset/config.h.in
|
||||
libiconv-1.11/libcharset/windows/dllexport.h libiconv-1.11/libcharset/windows/dllexport.h
|
||||
libiconv-1.11/libcharset/ChangeLog libiconv-1.11/libcharset/ChangeLog
|
||||
libiconv-1.11/libcharset/Makefile.msvc libiconv-1.11/libcharset/Makefile.msvc
|
||||
libiconv-1.11/libcharset/README.win32 libiconv-1.11/libcharset/README.win32
|
||||
libiconv-1.11/libcharset/config.h.msvc libiconv-1.11/libcharset/config.h.msvc
|
||||
libiconv-1.11/lib/aliases.gperf libiconv-1.11/lib/aliases/aliases.gperf
|
||||
libiconv-1.11/lib/aliases.h libiconv-1.11/lib/aliases/aliases.h
|
||||
libiconv-1.11/lib/aliases_aix.h libiconv-1.11/lib/aliases/aix.h
|
||||
libiconv-1.11/lib/aliases_dos.h libiconv-1.11/lib/aliases/dos.h
|
||||
libiconv-1.11/lib/aliases_osf1.h libiconv-1.11/lib/aliases/osf1.h
|
||||
libiconv-1.11/lib/cns11643.h libiconv-1.11/lib/cns/11643.h
|
||||
libiconv-1.11/lib/cns11643_1.h libiconv-1.11/lib/cns/11643_1.h
|
||||
libiconv-1.11/lib/cns11643_2.h libiconv-1.11/lib/cns/11643_2.h
|
||||
libiconv-1.11/lib/cns11643_3.h libiconv-1.11/lib/cns/11643_3.h
|
||||
libiconv-1.11/lib/cns11643_inv.h libiconv-1.11/lib/cns/11643_inv.h
|
||||
libiconv-1.11/lib/encodings.def libiconv-1.11/lib/encodings/encodings.def
|
||||
libiconv-1.11/lib/encodings_aix.def libiconv-1.11/lib/encodings/aix.def
|
||||
libiconv-1.11/lib/encodings_dos.def libiconv-1.11/lib/encodings/dos.def
|
||||
libiconv-1.11/lib/encodings_osf1.def libiconv-1.11/lib/encodings/osf1.def
|
||||
libiconv-1.11/lib/encodings_local.def libiconv-1.11/lib/encodings/local.def
|
||||
libiconv-1.11/lib/genaliases2.c libiconv-1.11/lib/2genaliases.c
|
||||
libiconv-1.11/lib/georgian_academy.h libiconv-1.11/lib/georgian/academy.h
|
||||
libiconv-1.11/lib/georgian_ps.h libiconv-1.11/lib/georgian/ps.h
|
||||
libiconv-1.11/lib/iso2022_cn.h libiconv-1.11/lib/iso/2022_cn.h
|
||||
libiconv-1.11/lib/iso2022_cnext.h libiconv-1.11/lib/iso/2022_cnext.h
|
||||
libiconv-1.11/lib/iso2022_jp.h libiconv-1.11/lib/iso/2022_jp.h
|
||||
libiconv-1.11/lib/iso2022_jp1.h libiconv-1.11/lib/iso/2022_jp1.h
|
||||
libiconv-1.11/lib/iso2022_jp2.h libiconv-1.11/lib/iso/2022_jp2.h
|
||||
libiconv-1.11/lib/iso2022_kr.h libiconv-1.11/lib/iso/2022_kr.h
|
||||
libiconv-1.11/lib/iso646_cn.h libiconv-1.11/lib/iso/646_cn.h
|
||||
libiconv-1.11/lib/iso646_jp.h libiconv-1.11/lib/iso/646_jp.h
|
||||
libiconv-1.11/lib/iso8859_1.h libiconv-1.11/lib/iso/8859_1.h
|
||||
libiconv-1.11/lib/iso8859_10.h libiconv-1.11/lib/iso/8859_10.h
|
||||
libiconv-1.11/lib/iso8859_13.h libiconv-1.11/lib/iso/8859_13.h
|
||||
libiconv-1.11/lib/iso8859_14.h libiconv-1.11/lib/iso/8859_14.h
|
||||
libiconv-1.11/lib/iso8859_15.h libiconv-1.11/lib/iso/8859_15.h
|
||||
libiconv-1.11/lib/iso8859_16.h libiconv-1.11/lib/iso/8859_16.h
|
||||
libiconv-1.11/lib/iso8859_2.h libiconv-1.11/lib/iso/8859_2.h
|
||||
libiconv-1.11/lib/iso8859_3.h libiconv-1.11/lib/iso/8859_3.h
|
||||
libiconv-1.11/lib/iso8859_4.h libiconv-1.11/lib/iso/8859_4.h
|
||||
libiconv-1.11/lib/iso8859_5.h libiconv-1.11/lib/iso/8859_5.h
|
||||
libiconv-1.11/lib/iso8859_6.h libiconv-1.11/lib/iso/8859_6.h
|
||||
libiconv-1.11/lib/iso8859_7.h libiconv-1.11/lib/iso/8859_7.h
|
||||
libiconv-1.11/lib/iso8859_8.h libiconv-1.11/lib/iso/8859_8.h
|
||||
libiconv-1.11/lib/iso8859_9.h libiconv-1.11/lib/iso/8859_9.h
|
||||
libiconv-1.11/lib/isoir165.h libiconv-1.11/lib/iso/ir165.h
|
||||
libiconv-1.11/lib/isoir165ext.h libiconv-1.11/lib/iso/ir165ext.h
|
||||
libiconv-1.11/lib/mac_arabic.h libiconv-1.11/lib/mac/arabic.h
|
||||
libiconv-1.11/lib/mac_centraleurope.h libiconv-1.11/lib/mac/centraleurope.h
|
||||
libiconv-1.11/lib/mac_croatian.h libiconv-1.11/lib/mac/croatian.h
|
||||
libiconv-1.11/lib/mac_cyrillic.h libiconv-1.11/lib/mac/cyrillic.h
|
||||
libiconv-1.11/lib/mac_greek.h libiconv-1.11/lib/mac/greek.h
|
||||
libiconv-1.11/lib/mac_hebrew.h libiconv-1.11/lib/mac/hebrew.h
|
||||
libiconv-1.11/lib/mac_iceland.h libiconv-1.11/lib/mac/iceland.h
|
||||
libiconv-1.11/lib/mac_roman.h libiconv-1.11/lib/mac/roman.h
|
||||
libiconv-1.11/lib/mac_romania.h libiconv-1.11/lib/mac/romania.h
|
||||
libiconv-1.11/lib/mac_thai.h libiconv-1.11/lib/mac/thai.h
|
||||
libiconv-1.11/lib/mac_turkish.h libiconv-1.11/lib/mac/turkish.h
|
||||
libiconv-1.11/lib/mac_ukraine.h libiconv-1.11/lib/mac/ukraine.h
|
||||
libiconv-1.11/lib/mulelao.h libiconv-1.11/lib/mulelao.h
|
||||
libiconv-1.11/lib/nextstep.h libiconv-1.11/lib/nextstep.h
|
||||
libiconv-1.11/lib/sjis.h libiconv-1.11/lib/sjis.h
|
||||
libiconv-1.11/lib/tcvn.h libiconv-1.11/lib/tcvn.h
|
||||
libiconv-1.11/lib/tis620.h libiconv-1.11/lib/tis620.h
|
||||
libiconv-1.11/lib/translit.def libiconv-1.11/lib/translit.def
|
||||
libiconv-1.11/lib/translit.h libiconv-1.11/lib/translit.h
|
||||
libiconv-1.11/lib/ucs2.h libiconv-1.11/lib/ucs2.h
|
||||
libiconv-1.11/lib/ucs2be.h libiconv-1.11/lib/ucs2be.h
|
||||
libiconv-1.11/lib/ucs2internal.h libiconv-1.11/lib/ucs2internal.h
|
||||
libiconv-1.11/lib/ucs2le.h libiconv-1.11/lib/ucs2le.h
|
||||
libiconv-1.11/lib/ucs2swapped.h libiconv-1.11/lib/ucs2swapped.h
|
||||
libiconv-1.11/lib/ucs4.h libiconv-1.11/lib/ucs4.h
|
||||
libiconv-1.11/lib/ucs4be.h libiconv-1.11/lib/ucs4be.h
|
||||
libiconv-1.11/lib/ucs4internal.h libiconv-1.11/lib/ucs4internal.h
|
||||
libiconv-1.11/lib/ucs4le.h libiconv-1.11/lib/ucs4le.h
|
||||
libiconv-1.11/lib/ucs4swapped.h libiconv-1.11/lib/ucs4swapped.h
|
||||
libiconv-1.11/lib/uhc_1.h libiconv-1.11/lib/uhc_1.h
|
||||
libiconv-1.11/lib/uhc_2.h libiconv-1.11/lib/uhc_2.h
|
||||
libiconv-1.11/lib/utf16.h libiconv-1.11/lib/utf16.h
|
||||
libiconv-1.11/lib/utf16be.h libiconv-1.11/lib/utf16be.h
|
||||
libiconv-1.11/lib/utf16le.h libiconv-1.11/lib/utf16le.h
|
||||
libiconv-1.11/lib/utf7.h libiconv-1.11/lib/utf7.h
|
||||
libiconv-1.11/lib/utf8.h libiconv-1.11/lib/utf8.h
|
||||
libiconv-1.11/lib/viscii.h libiconv-1.11/lib/viscii.h
|
||||
libiconv-1.11/lib/encodings_dos.def libiconv-1.11/lib/encodings/dos.def
|
||||
libiconv-1.11/lib/aliases_dos.h libiconv-1.11/lib/aliases/dos.h
|
21
libiconv/djgpp/makefile.sed
Normal file
21
libiconv/djgpp/makefile.sed
Normal file
@ -0,0 +1,21 @@
|
||||
# Fixes for lib/Makefile.in
|
||||
s|encodings\.def|encodings/&|g
|
||||
s|encodings_aix\.def|encodings/aix.def|g
|
||||
s|encodings_dos\.def|encodings/dos\.def|g
|
||||
s|encodings_extra\.def|encodings/extra\.def|g
|
||||
s|encodings_osf1\.def|encodings/osf1\.def|g
|
||||
s|encodings_local\.def|encodings/local\.def|g
|
||||
s|aliases\.h|aliases/&|g
|
||||
s|aliases2\.h|aliases/aliases2.h|g
|
||||
s|aliases_aix\.h|aliases/aix.h|g
|
||||
s|aliases_dos\.h|aliases/dos\.h|g
|
||||
s|aliases_extra\.h|aliases/extra\.h|g
|
||||
s|aliases_osf1\.h|aliases/osf1\.h|g
|
||||
s|aliases_local\.h|aliases/local\.h|g
|
||||
|
||||
|
||||
# Fixes for tests/Makefile.in
|
||||
s|\$(srcdir)/check-translitfailure|$(SHELL) $(srcdir)/failuretranslit-check|
|
||||
s|\$(srcdir)/check-stateless|$(SHELL) $(srcdir)/stateless-check|
|
||||
s|\$(srcdir)/check-stateful|$(SHELL) $(srcdir)/stateful-check|
|
||||
s|\$(srcdir)/check-translit|$(SHELL) $(srcdir)/translit-check|
|
31
libiconv/djgpp/sources.sed
Normal file
31
libiconv/djgpp/sources.sed
Normal file
@ -0,0 +1,31 @@
|
||||
# Fixes for lib/iconv.c.
|
||||
# All encodings files recide in encdings dir now.
|
||||
/^#[ ]*include/ s|"canonical\.h|"canonical/canonical.h|
|
||||
/^#[ ]*include/ s|"canonical_aix\.h|"canonical/aix.h|
|
||||
/^#[ ]*include/ s|"canonical_dos\.h|"canonical/dos.h|
|
||||
/^#[ ]*include/ s|"canonical_osf1\.h|"canonical/osf1.h|
|
||||
/^#[ ]*include/ s|"canonical_local\.h|"canonical/local.h|
|
||||
/^#[ ]*include/ s|"canonical_extra\.h|"canonical/extra.h|
|
||||
/^#[ ]*include/ s|"encodings\.def|"encodings/encodings.def|
|
||||
/^#[ ]*include/ s|"encodings_aix\.def|"encodings/aix.def|
|
||||
/^#[ ]*include/ s|"encodings_dos\.def|"encodings/dos.def|
|
||||
/^#[ ]*include/ s|"encodings_osf1\.def|"encodings/osf1.def|
|
||||
/^#[ ]*include/ s|"encodings_local\.def|"encodings/local.def|
|
||||
/^#[ ]*include/ s|"encodings_extra\.def|"encodings/extra.def|
|
||||
/^#[ ]*include/ s|"aliases\.h|"aliases/aliases.h|
|
||||
/^#[ ]*include/ s|"aliases2\.h|"aliases/aliases2.h|
|
||||
|
||||
# Fixes for lib/iconv.c and lib/aliases/aliases2.h
|
||||
# All encodings files recide in encdings dir now.
|
||||
/^#[ ]*include/ s|"aliases_aix\.h|"aliases/aix.h|
|
||||
/^#[ ]*include/ s|"aliases_dos\.h|"aliases/dos.h|
|
||||
/^#[ ]*include/ s|"aliases_osf1\.h|"aliases/osf1.h|
|
||||
/^#[ ]*include/ s|"aliases_local\.h|"aliases/local.h|
|
||||
/^#[ ]*include/ s|"aliases_extra\.h|"aliases/extra.h|
|
||||
|
||||
# Fixes for lib/converters.h, cns11643??.h and iso?????.h files.
|
||||
# All cns, iso, georgian and mac files recide in their respective dirs now.
|
||||
/^#[ ]*include/ s|"cns|&/|
|
||||
/^#[ ]*include/ s|"iso|&/|
|
||||
/^#[ ]*include/ s|"georgian_|"georgian/|
|
||||
/^#[ ]*include/ s|"mac_|"mac/|
|
11
libiconv/djgpp/stateful-check.sed
Normal file
11
libiconv/djgpp/stateful-check.sed
Normal file
@ -0,0 +1,11 @@
|
||||
# Sed script for tests/stateful-check editing.
|
||||
|
||||
/set -e/ a\
|
||||
# For systems with severe filename restrictions allow for\
|
||||
# an alternate filename.\
|
||||
UNAME=${UNAME-`uname 2>/dev/null`}\
|
||||
case X$UNAME in\
|
||||
*-DOS) filename=`echo "$charset" | sed "s|ISO-|ISO/|;s|2022-|2022|"` ;;\
|
||||
*) filename="$charset" ;;\
|
||||
esac
|
||||
s/\$charset"-snippet/$filename"-snippet/g
|
20
libiconv/djgpp/stateless-check.sed
Normal file
20
libiconv/djgpp/stateless-check.sed
Normal file
@ -0,0 +1,20 @@
|
||||
# Sed script for tests/stateless-check editing.
|
||||
/set -e/ a\
|
||||
# For systems with severe filename restrictions\
|
||||
# allow for an alternate filename.\
|
||||
UNAME=${UNAME-`uname 2>/dev/null`}\
|
||||
case X$UNAME in\
|
||||
*-DOS) filename=`echo "$charset" | sed "s|ISO-|ISO/|; \\\
|
||||
s|Mac|Mac/|; \\\
|
||||
s|Georgian-|Georgian/|"`\
|
||||
tmp_filename=`echo "$filename" | sed "s|/|/tmp-|"`\
|
||||
tmp_orig_filename=`echo "$filename" | sed "s|/|/tmp-orig-|"` ;;\
|
||||
*) filename="$charset"\
|
||||
tmp_filename="$charset"\
|
||||
tmp_orig_filename="$charset" ;;\
|
||||
esac
|
||||
s|/"\$charset"|/"$filename"|g
|
||||
s|tmp-"\$charset"|"${srcdir}"/"$tmp_filename"|g
|
||||
s|tmp-orig"\$charset"|"${srcdir}"/"$tmp_orig_filename"|g
|
||||
s|\.INVERSE\.|.INVERSE-|g
|
||||
s|\.IRREVERSIBLE\.|.IRREVERSIBLE-|g
|
11
libiconv/djgpp/translit-check.sed
Normal file
11
libiconv/djgpp/translit-check.sed
Normal file
@ -0,0 +1,11 @@
|
||||
# Sed script for tests/translit-check editing.
|
||||
|
||||
/\.\./ i\
|
||||
# For systems with severe filename restrictions allow for\
|
||||
# an alternate filename.\
|
||||
UNAME=${UNAME-`uname 2>/dev/null`}\
|
||||
case X$UNAME in\
|
||||
*-DOS) file=`echo "$file" | sed "s|TranslitFail1|_Translit/Fail1|; \\\
|
||||
s|Translit1|_Translit/1|"`;;\
|
||||
*) file="$file" ;;\
|
||||
esac
|
64
libiconv/extras/ChangeLog
Normal file
64
libiconv/extras/ChangeLog
Normal file
@ -0,0 +1,64 @@
|
||||
2003-05-10 Bruno Haible <bruno@clisp.org>
|
||||
|
||||
* iconv_string.c (iconv_string): Don't return -1 just because the
|
||||
string is longer than 4 KB.
|
||||
|
||||
2002-02-13 Bruno Haible <bruno@clisp.org>
|
||||
|
||||
* iconv.m4: Remove file. Obsoleted by m4/iconv.m4.
|
||||
|
||||
2000-06-16 Bruno Haible <haible@clisp.cons.org>
|
||||
|
||||
* iconv.m4: Change prefix to AM.
|
||||
|
||||
2001-05-23 Bruno Haible <haible@clisp.cons.org>
|
||||
|
||||
* iconv.m4 (jm_ICONV): Accept --with-libiconv-prefix option.
|
||||
|
||||
2001-03-23 Bruno Haible <haible@clisp.cons.org>
|
||||
|
||||
* iconv.m4 (jm_ICONV): Tweak printing of prototype.
|
||||
|
||||
2001-03-20 Bruno Haible <haible@clisp.cons.org>
|
||||
|
||||
* iconv.m4 (jm_ICONV): Recommend GNU libiconv.
|
||||
|
||||
2001-01-03 Bruno Haible <haible@clisp.cons.org>
|
||||
|
||||
* iconv.m4 (jm_ICONV): Also check whether the iconv declaration
|
||||
has const.
|
||||
|
||||
2000-02-02 Bruno Haible <haible@clisp.cons.org>
|
||||
|
||||
* iconv.m4: New file.
|
||||
|
||||
2001-01-29 Bruno Haible <haible@clisp.cons.org>
|
||||
|
||||
* locale_charset.c: Remove file. Obsoleted by libcharset.
|
||||
|
||||
2000-10-22 Bruno Haible <haible@clisp.cons.org>
|
||||
|
||||
* locale_charset.c (get_locale_charset): Accept french and spanish
|
||||
names in both ISO-8859-1 and UTF-8.
|
||||
|
||||
2000-08-24 Jim Blackson <blackson@ontrack-japan.com>
|
||||
|
||||
* iconv_string.c (iconv_string): Fix return value for autodetect.
|
||||
|
||||
2000-01-24 Bruno Haible <haible@clisp.cons.org>
|
||||
|
||||
* iconv_string.c (iconv_string): Stop recognizing JOHAB.
|
||||
Fix typo for EUC-JP.
|
||||
|
||||
1999-12-18 Bruno Haible <haible@clisp.cons.org>
|
||||
|
||||
* locale_charset.c (get_locale_charset): Recognize more language codes:
|
||||
"af" (afrikaans), "ca" (catalan), "eu" (basque), "fo" (faeroese),
|
||||
"ga" (irish), "gd" (scottish), "gl" (galician), "sq" (albanian),
|
||||
"eo" (esperanto), "mt" (maltese), "be" (byelorussian),
|
||||
"et" (estonian), "lt" (lithuanian), "lv" (latvian), "uk" (ukrainian).
|
||||
Recognize more aliases: "english", "slovenian", "macedonian",
|
||||
"serbian", "arabic".
|
||||
Change default: KOI8-R for "ru" (russian) instead of ISO-8859-5,
|
||||
ISO-8859-5 for "sr" instead of ISO-8859-2.
|
||||
|
154
libiconv/extras/iconv_string.c
Normal file
154
libiconv/extras/iconv_string.c
Normal file
@ -0,0 +1,154 @@
|
||||
/* Copyright (C) 1999-2001, 2003 Bruno Haible.
|
||||
This file is not part of the GNU LIBICONV Library.
|
||||
This file is put into the public domain. */
|
||||
|
||||
#include "iconv_string.h"
|
||||
#include <iconv.h>
|
||||
#include <errno.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
|
||||
#define tmpbufsize 4096
|
||||
|
||||
int iconv_string (const char* tocode, const char* fromcode,
|
||||
const char* start, const char* end,
|
||||
char** resultp, size_t* lengthp)
|
||||
{
|
||||
iconv_t cd = iconv_open(tocode,fromcode);
|
||||
size_t length;
|
||||
char* result;
|
||||
if (cd == (iconv_t)(-1)) {
|
||||
if (errno != EINVAL)
|
||||
return -1;
|
||||
/* Unsupported fromcode or tocode. Check whether the caller requested
|
||||
autodetection. */
|
||||
if (!strcmp(fromcode,"autodetect_utf8")) {
|
||||
int ret;
|
||||
/* Try UTF-8 first. There are very few ISO-8859-1 inputs that would
|
||||
be valid UTF-8, but many UTF-8 inputs are valid ISO-8859-1. */
|
||||
ret = iconv_string(tocode,"UTF-8",start,end,resultp,lengthp);
|
||||
if (!(ret < 0 && errno == EILSEQ))
|
||||
return ret;
|
||||
ret = iconv_string(tocode,"ISO-8859-1",start,end,resultp,lengthp);
|
||||
return ret;
|
||||
}
|
||||
if (!strcmp(fromcode,"autodetect_jp")) {
|
||||
int ret;
|
||||
/* Try 7-bit encoding first. If the input contains bytes >= 0x80,
|
||||
it will fail. */
|
||||
ret = iconv_string(tocode,"ISO-2022-JP-2",start,end,resultp,lengthp);
|
||||
if (!(ret < 0 && errno == EILSEQ))
|
||||
return ret;
|
||||
/* Try EUC-JP next. Short SHIFT_JIS inputs may come out wrong. This
|
||||
is unavoidable. People will condemn SHIFT_JIS.
|
||||
If we tried SHIFT_JIS first, then some short EUC-JP inputs would
|
||||
come out wrong, and people would condemn EUC-JP and Unix, which
|
||||
would not be good. */
|
||||
ret = iconv_string(tocode,"EUC-JP",start,end,resultp,lengthp);
|
||||
if (!(ret < 0 && errno == EILSEQ))
|
||||
return ret;
|
||||
/* Finally try SHIFT_JIS. */
|
||||
ret = iconv_string(tocode,"SHIFT_JIS",start,end,resultp,lengthp);
|
||||
return ret;
|
||||
}
|
||||
if (!strcmp(fromcode,"autodetect_kr")) {
|
||||
int ret;
|
||||
/* Try 7-bit encoding first. If the input contains bytes >= 0x80,
|
||||
it will fail. */
|
||||
ret = iconv_string(tocode,"ISO-2022-KR",start,end,resultp,lengthp);
|
||||
if (!(ret < 0 && errno == EILSEQ))
|
||||
return ret;
|
||||
/* Finally try EUC-KR. */
|
||||
ret = iconv_string(tocode,"EUC-KR",start,end,resultp,lengthp);
|
||||
return ret;
|
||||
}
|
||||
errno = EINVAL;
|
||||
return -1;
|
||||
}
|
||||
/* Determine the length we need. */
|
||||
{
|
||||
size_t count = 0;
|
||||
char tmpbuf[tmpbufsize];
|
||||
const char* inptr = start;
|
||||
size_t insize = end-start;
|
||||
while (insize > 0) {
|
||||
char* outptr = tmpbuf;
|
||||
size_t outsize = tmpbufsize;
|
||||
size_t res = iconv(cd,&inptr,&insize,&outptr,&outsize);
|
||||
if (res == (size_t)(-1) && errno != E2BIG) {
|
||||
if (errno == EINVAL)
|
||||
break;
|
||||
else {
|
||||
int saved_errno = errno;
|
||||
iconv_close(cd);
|
||||
errno = saved_errno;
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
count += outptr-tmpbuf;
|
||||
}
|
||||
{
|
||||
char* outptr = tmpbuf;
|
||||
size_t outsize = tmpbufsize;
|
||||
size_t res = iconv(cd,NULL,NULL,&outptr,&outsize);
|
||||
if (res == (size_t)(-1)) {
|
||||
int saved_errno = errno;
|
||||
iconv_close(cd);
|
||||
errno = saved_errno;
|
||||
return -1;
|
||||
}
|
||||
count += outptr-tmpbuf;
|
||||
}
|
||||
length = count;
|
||||
}
|
||||
if (lengthp != NULL)
|
||||
*lengthp = length;
|
||||
if (resultp == NULL) {
|
||||
iconv_close(cd);
|
||||
return 0;
|
||||
}
|
||||
result = (*resultp == NULL ? malloc(length) : realloc(*resultp,length));
|
||||
*resultp = result;
|
||||
if (length == 0) {
|
||||
iconv_close(cd);
|
||||
return 0;
|
||||
}
|
||||
if (result == NULL) {
|
||||
iconv_close(cd);
|
||||
errno = ENOMEM;
|
||||
return -1;
|
||||
}
|
||||
iconv(cd,NULL,NULL,NULL,NULL); /* return to the initial state */
|
||||
/* Do the conversion for real. */
|
||||
{
|
||||
const char* inptr = start;
|
||||
size_t insize = end-start;
|
||||
char* outptr = result;
|
||||
size_t outsize = length;
|
||||
while (insize > 0) {
|
||||
size_t res = iconv(cd,&inptr,&insize,&outptr,&outsize);
|
||||
if (res == (size_t)(-1)) {
|
||||
if (errno == EINVAL)
|
||||
break;
|
||||
else {
|
||||
int saved_errno = errno;
|
||||
iconv_close(cd);
|
||||
errno = saved_errno;
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
}
|
||||
{
|
||||
size_t res = iconv(cd,NULL,NULL,&outptr,&outsize);
|
||||
if (res == (size_t)(-1)) {
|
||||
int saved_errno = errno;
|
||||
iconv_close(cd);
|
||||
errno = saved_errno;
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
if (outsize != 0) abort();
|
||||
}
|
||||
iconv_close(cd);
|
||||
return 0;
|
||||
}
|
47
libiconv/extras/iconv_string.h
Normal file
47
libiconv/extras/iconv_string.h
Normal file
@ -0,0 +1,47 @@
|
||||
/* Copyright (C) 1999-2001 Bruno Haible.
|
||||
This file is not part of the GNU LIBICONV Library.
|
||||
This file is put into the public domain. */
|
||||
|
||||
/*
|
||||
* This C function converts an entire string from one encoding to another,
|
||||
* using iconv. Easier to use than iconv() itself, and supports autodetect
|
||||
* encodings on input.
|
||||
*
|
||||
* int iconv_string (const char* tocode, const char* fromcode,
|
||||
* const char* start, const char* end,
|
||||
* char** resultp, size_t* lengthp)
|
||||
*
|
||||
* Converts a memory region given in encoding FROMCODE to a new memory
|
||||
* region in encoding TOCODE. FROMCODE and TOCODE are as for iconv_open(3),
|
||||
* except that FROMCODE may be one of the values
|
||||
* "autodetect_utf8" supports ISO-8859-1 and UTF-8
|
||||
* "autodetect_jp" supports EUC-JP, ISO-2022-JP-2 and SHIFT_JIS
|
||||
* "autodetect_kr" supports EUC-KR and ISO-2022-KR
|
||||
* The input is in the memory region between start (inclusive) and end
|
||||
* (exclusive). If resultp is not NULL, the output string is stored in
|
||||
* *resultp; malloc/realloc is used to allocate the result.
|
||||
*
|
||||
* This function does not treat zero characters specially.
|
||||
*
|
||||
* Return value: 0 if successful, otherwise -1 and errno set. Particular
|
||||
* errno values: EILSEQ and ENOMEM.
|
||||
*
|
||||
* Example:
|
||||
* const char* s = ...;
|
||||
* char* result = NULL;
|
||||
* if (iconv_string("UCS-4-INTERNAL", "autodetect_utf8",
|
||||
* s, s+strlen(s)+1, &result, NULL) < 0)
|
||||
* perror("iconv_string");
|
||||
*
|
||||
*/
|
||||
#include <stddef.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
extern int iconv_string (const char* tocode, const char* fromcode, const char* start, const char* end, char** resultp, size_t* lengthp);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
6
libiconv/include/export.h
Normal file
6
libiconv/include/export.h
Normal file
@ -0,0 +1,6 @@
|
||||
|
||||
#if @HAVE_VISIBILITY@ && BUILDING_LIBICONV
|
||||
#define __LIBICONV_DLL_EXPORTED __attribute__((__visibility__("default")))
|
||||
#else
|
||||
#define __LIBICONV_DLL_EXPORTED
|
||||
#endif
|
193
libiconv/include/iconv.h
Normal file
193
libiconv/include/iconv.h
Normal file
@ -0,0 +1,193 @@
|
||||
/* Copyright (C) 1999-2003, 2005-2006 Free Software Foundation, Inc.
|
||||
This file is part of the GNU LIBICONV Library.
|
||||
|
||||
The GNU LIBICONV Library is free software; you can redistribute it
|
||||
and/or modify it under the terms of the GNU Library General Public
|
||||
License as published by the Free Software Foundation; either version 2
|
||||
of the License, or (at your option) any later version.
|
||||
|
||||
The GNU LIBICONV Library is distributed in the hope that it will be
|
||||
useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
Library General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Library General Public
|
||||
License along with the GNU LIBICONV Library; see the file COPYING.LIB.
|
||||
If not, write to the Free Software Foundation, Inc., 51 Franklin Street,
|
||||
Fifth Floor, Boston, MA 02110-1301, USA. */
|
||||
|
||||
/* When installed, this file is called "iconv.h". */
|
||||
|
||||
#ifndef _LIBICONV_H
|
||||
#define _LIBICONV_H
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
#include <_types.h>
|
||||
#include <sys/_types/_size_t.h>
|
||||
|
||||
#define _LIBICONV_VERSION 0x010B /* version number: (major<<8) + minor */
|
||||
|
||||
#if BUILDING_LIBICONV
|
||||
#define __LIBICONV_DLL_EXPORTED __attribute__((__visibility__("default")))
|
||||
#else
|
||||
#define __LIBICONV_DLL_EXPORTED
|
||||
#endif
|
||||
extern __LIBICONV_DLL_EXPORTED int _libiconv_version; /* Likewise */
|
||||
|
||||
/* We would like to #include any system header file which could define
|
||||
iconv_t, 1. in order to eliminate the risk that the user gets compilation
|
||||
errors because some other system header file includes /usr/include/iconv.h
|
||||
which defines iconv_t or declares iconv after this file, 2. when compiling
|
||||
for LIBICONV_PLUG, we need the proper iconv_t type in order to produce
|
||||
binary compatible code.
|
||||
But gcc's #include_next is not portable. Thus, once libiconv's iconv.h
|
||||
has been installed in /usr/local/include, there is no way any more to
|
||||
include the original /usr/include/iconv.h. We simply have to get away
|
||||
without it.
|
||||
Ad 1. The risk that a system header file does
|
||||
#include "iconv.h" or #include_next "iconv.h"
|
||||
is small. They all do #include <iconv.h>.
|
||||
Ad 2. The iconv_t type is a pointer type in all cases I have seen. (It
|
||||
has to be a scalar type because (iconv_t)(-1) is a possible return value
|
||||
from iconv_open().) */
|
||||
|
||||
/* Define iconv_t ourselves. */
|
||||
#ifndef _ICONV_T
|
||||
#define _ICONV_T
|
||||
typedef void* iconv_t;
|
||||
#endif
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
|
||||
/* Allocates descriptor for code conversion from encoding `fromcode' to
|
||||
encoding `tocode'. */
|
||||
extern __LIBICONV_DLL_EXPORTED iconv_t iconv_open (const char* __tocode, const char* __fromcode);
|
||||
|
||||
/* Converts, using conversion descriptor `cd', at most `*inbytesleft' bytes
|
||||
starting at `*inbuf', writing at most `*outbytesleft' bytes starting at
|
||||
`*outbuf'.
|
||||
Decrements `*inbytesleft' and increments `*inbuf' by the same amount.
|
||||
Decrements `*outbytesleft' and increments `*outbuf' by the same amount. */
|
||||
extern __LIBICONV_DLL_EXPORTED size_t iconv (iconv_t __cd, char* * __restrict __inbuf, size_t * __restrict __inbytesleft, char* * __restrict __outbuf, size_t * __restrict __outbytesleft);
|
||||
|
||||
/* Frees resources allocated for conversion descriptor `cd'. */
|
||||
extern __LIBICONV_DLL_EXPORTED int iconv_close (iconv_t _cd);
|
||||
|
||||
#if !defined(_POSIX_C_SOURCE) || defined(_DARWIN_C_SOURCE)
|
||||
|
||||
/* Nonstandard extensions. */
|
||||
|
||||
#include <sys/_types/_wchar_t.h>
|
||||
|
||||
/* Control of attributes. */
|
||||
extern __LIBICONV_DLL_EXPORTED int iconvctl (iconv_t cd, int request, void* argument);
|
||||
|
||||
/* Hook performed after every successful conversion of a Unicode character. */
|
||||
typedef void (*iconv_unicode_char_hook) (unsigned int uc, void* data);
|
||||
/* Hook performed after every successful conversion of a wide character. */
|
||||
typedef void (*iconv_wide_char_hook) (wchar_t wc, void* data);
|
||||
/* Set of hooks. */
|
||||
struct iconv_hooks {
|
||||
iconv_unicode_char_hook uc_hook;
|
||||
iconv_wide_char_hook wc_hook;
|
||||
void* data;
|
||||
};
|
||||
|
||||
/* Fallback function. Invoked when a small number of bytes could not be
|
||||
converted to a Unicode character. This function should process all
|
||||
bytes from inbuf and may produce replacement Unicode characters by calling
|
||||
the write_replacement callback repeatedly. */
|
||||
typedef void (*iconv_unicode_mb_to_uc_fallback)
|
||||
(const char* inbuf, size_t inbufsize,
|
||||
void (*write_replacement) (const unsigned int *buf, size_t buflen,
|
||||
void* callback_arg),
|
||||
void* callback_arg,
|
||||
void* data);
|
||||
/* Fallback function. Invoked when a Unicode character could not be converted
|
||||
to the target encoding. This function should process the character and
|
||||
may produce replacement bytes (in the target encoding) by calling the
|
||||
write_replacement callback repeatedly. */
|
||||
typedef void (*iconv_unicode_uc_to_mb_fallback)
|
||||
(unsigned int code,
|
||||
void (*write_replacement) (const char *buf, size_t buflen,
|
||||
void* callback_arg),
|
||||
void* callback_arg,
|
||||
void* data);
|
||||
#if 1
|
||||
/* Fallback function. Invoked when a number of bytes could not be converted to
|
||||
a wide character. This function should process all bytes from inbuf and may
|
||||
produce replacement wide characters by calling the write_replacement
|
||||
callback repeatedly. */
|
||||
typedef void (*iconv_wchar_mb_to_wc_fallback)
|
||||
(const char* inbuf, size_t inbufsize,
|
||||
void (*write_replacement) (const wchar_t *buf, size_t buflen,
|
||||
void* callback_arg),
|
||||
void* callback_arg,
|
||||
void* data);
|
||||
/* Fallback function. Invoked when a wide character could not be converted to
|
||||
the target encoding. This function should process the character and may
|
||||
produce replacement bytes (in the target encoding) by calling the
|
||||
write_replacement callback repeatedly. */
|
||||
typedef void (*iconv_wchar_wc_to_mb_fallback)
|
||||
(wchar_t code,
|
||||
void (*write_replacement) (const char *buf, size_t buflen,
|
||||
void* callback_arg),
|
||||
void* callback_arg,
|
||||
void* data);
|
||||
#else
|
||||
/* If the wchar_t type does not exist, these two fallback functions are never
|
||||
invoked. Their argument list therefore does not matter. */
|
||||
typedef void (*iconv_wchar_mb_to_wc_fallback) ();
|
||||
typedef void (*iconv_wchar_wc_to_mb_fallback) ();
|
||||
#endif
|
||||
/* Set of fallbacks. */
|
||||
struct iconv_fallbacks {
|
||||
iconv_unicode_mb_to_uc_fallback mb_to_uc_fallback;
|
||||
iconv_unicode_uc_to_mb_fallback uc_to_mb_fallback;
|
||||
iconv_wchar_mb_to_wc_fallback mb_to_wc_fallback;
|
||||
iconv_wchar_wc_to_mb_fallback wc_to_mb_fallback;
|
||||
void* data;
|
||||
};
|
||||
|
||||
/* Requests for iconvctl. */
|
||||
#define ICONV_TRIVIALP 0 /* int *argument */
|
||||
#define ICONV_GET_TRANSLITERATE 1 /* int *argument */
|
||||
#define ICONV_SET_TRANSLITERATE 2 /* const int *argument */
|
||||
#define ICONV_GET_DISCARD_ILSEQ 3 /* int *argument */
|
||||
#define ICONV_SET_DISCARD_ILSEQ 4 /* const int *argument */
|
||||
#define ICONV_SET_HOOKS 5 /* const struct iconv_hooks *argument */
|
||||
#define ICONV_SET_FALLBACKS 6 /* const struct iconv_fallbacks *argument */
|
||||
|
||||
/* Listing of locale independent encodings. */
|
||||
extern __LIBICONV_DLL_EXPORTED void iconvlist (int (*do_one) (unsigned int namescount,
|
||||
const char * const * names,
|
||||
void* data),
|
||||
void* data);
|
||||
|
||||
/* Canonicalize an encoding name.
|
||||
The result is either a canonical encoding name, or name itself. */
|
||||
extern __LIBICONV_DLL_EXPORTED const char * iconv_canonicalize (const char * name);
|
||||
|
||||
/* Support for relocatable packages. */
|
||||
|
||||
/* Sets the original and the current installation prefix of the package.
|
||||
Relocation simply replaces a pathname starting with the original prefix
|
||||
by the corresponding pathname with the current prefix instead. Both
|
||||
prefixes should be directory names without trailing slash (i.e. use ""
|
||||
instead of "/"). */
|
||||
extern __LIBICONV_DLL_EXPORTED void libiconv_set_relocation_prefix (const char *orig_prefix,
|
||||
const char *curr_prefix);
|
||||
|
||||
#endif /* (!_POSIX_C_SOURCE || _DARWIN_C_SOURCE) */
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
#endif /* _LIBICONV_H */
|
201
libiconv/include/iconv.h.build.in
Normal file
201
libiconv/include/iconv.h.build.in
Normal file
@ -0,0 +1,201 @@
|
||||
/* Copyright (C) 1999-2003, 2005-2006 Free Software Foundation, Inc.
|
||||
This file is part of the GNU LIBICONV Library.
|
||||
|
||||
The GNU LIBICONV Library is free software; you can redistribute it
|
||||
and/or modify it under the terms of the GNU Library General Public
|
||||
License as published by the Free Software Foundation; either version 2
|
||||
of the License, or (at your option) any later version.
|
||||
|
||||
The GNU LIBICONV Library is distributed in the hope that it will be
|
||||
useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
Library General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Library General Public
|
||||
License along with the GNU LIBICONV Library; see the file COPYING.LIB.
|
||||
If not, write to the Free Software Foundation, Inc., 51 Franklin Street,
|
||||
Fifth Floor, Boston, MA 02110-1301, USA. */
|
||||
|
||||
/* When installed, this file is called "iconv.h". */
|
||||
|
||||
#ifndef _LIBICONV_H
|
||||
#define _LIBICONV_H
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
#include <_types.h>
|
||||
#ifndef _SIZE_T
|
||||
#define _SIZE_T
|
||||
typedef __darwin_size_t size_t;
|
||||
#endif
|
||||
|
||||
#define _LIBICONV_VERSION 0x010B /* version number: (major<<8) + minor */
|
||||
|
||||
#if @HAVE_VISIBILITY@ && BUILDING_LIBICONV
|
||||
#define LIBICONV_DLL_EXPORTED __attribute__((__visibility__("default")))
|
||||
#else
|
||||
#define LIBICONV_DLL_EXPORTED
|
||||
#endif
|
||||
extern LIBICONV_DLL_EXPORTED @DLL_VARIABLE@ int _libiconv_version; /* Likewise */
|
||||
|
||||
/* We would like to #include any system header file which could define
|
||||
iconv_t, 1. in order to eliminate the risk that the user gets compilation
|
||||
errors because some other system header file includes /usr/include/iconv.h
|
||||
which defines iconv_t or declares iconv after this file, 2. when compiling
|
||||
for LIBICONV_PLUG, we need the proper iconv_t type in order to produce
|
||||
binary compatible code.
|
||||
But gcc's #include_next is not portable. Thus, once libiconv's iconv.h
|
||||
has been installed in /usr/local/include, there is no way any more to
|
||||
include the original /usr/include/iconv.h. We simply have to get away
|
||||
without it.
|
||||
Ad 1. The risk that a system header file does
|
||||
#include "iconv.h" or #include_next "iconv.h"
|
||||
is small. They all do #include <iconv.h>.
|
||||
Ad 2. The iconv_t type is a pointer type in all cases I have seen. (It
|
||||
has to be a scalar type because (iconv_t)(-1) is a possible return value
|
||||
from iconv_open().) */
|
||||
|
||||
/* Define iconv_t ourselves. */
|
||||
#ifndef _ICONV_T
|
||||
#define _ICONV_T
|
||||
typedef void* iconv_t;
|
||||
#endif
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
|
||||
/* Allocates descriptor for code conversion from encoding `fromcode' to
|
||||
encoding `tocode'. */
|
||||
extern LIBICONV_DLL_EXPORTED iconv_t iconv_open (const char* tocode, const char* fromcode);
|
||||
|
||||
/* Converts, using conversion descriptor `cd', at most `*inbytesleft' bytes
|
||||
starting at `*inbuf', writing at most `*outbytesleft' bytes starting at
|
||||
`*outbuf'.
|
||||
Decrements `*inbytesleft' and increments `*inbuf' by the same amount.
|
||||
Decrements `*outbytesleft' and increments `*outbuf' by the same amount. */
|
||||
extern LIBICONV_DLL_EXPORTED size_t iconv (iconv_t cd, char* * __restrict inbuf, size_t * __restrict inbytesleft, char* * __restrict outbuf, size_t * __restrict outbytesleft);
|
||||
|
||||
/* Frees resources allocated for conversion descriptor `cd'. */
|
||||
extern LIBICONV_DLL_EXPORTED int iconv_close (iconv_t cd);
|
||||
|
||||
#if !defined(_POSIX_C_SOURCE) || defined(_DARWIN_C_SOURCE)
|
||||
|
||||
/* Nonstandard extensions. */
|
||||
|
||||
#ifndef __cplusplus
|
||||
#ifndef _WCHAR_T
|
||||
#define _WCHAR_T
|
||||
typedef __darwin_wchar_t wchar_t;
|
||||
#endif /* _WCHAR_T */
|
||||
#endif /* __cplusplus */
|
||||
|
||||
/* Control of attributes. */
|
||||
extern LIBICONV_DLL_EXPORTED int iconvctl (iconv_t cd, int request, void* argument);
|
||||
|
||||
/* Hook performed after every successful conversion of a Unicode character. */
|
||||
typedef void (*iconv_unicode_char_hook) (unsigned int uc, void* data);
|
||||
/* Hook performed after every successful conversion of a wide character. */
|
||||
typedef void (*iconv_wide_char_hook) (wchar_t wc, void* data);
|
||||
/* Set of hooks. */
|
||||
struct iconv_hooks {
|
||||
iconv_unicode_char_hook uc_hook;
|
||||
iconv_wide_char_hook wc_hook;
|
||||
void* data;
|
||||
};
|
||||
|
||||
/* Fallback function. Invoked when a small number of bytes could not be
|
||||
converted to a Unicode character. This function should process all
|
||||
bytes from inbuf and may produce replacement Unicode characters by calling
|
||||
the write_replacement callback repeatedly. */
|
||||
typedef void (*iconv_unicode_mb_to_uc_fallback)
|
||||
(const char* inbuf, size_t inbufsize,
|
||||
void (*write_replacement) (const unsigned int *buf, size_t buflen,
|
||||
void* callback_arg),
|
||||
void* callback_arg,
|
||||
void* data);
|
||||
/* Fallback function. Invoked when a Unicode character could not be converted
|
||||
to the target encoding. This function should process the character and
|
||||
may produce replacement bytes (in the target encoding) by calling the
|
||||
write_replacement callback repeatedly. */
|
||||
typedef void (*iconv_unicode_uc_to_mb_fallback)
|
||||
(unsigned int code,
|
||||
void (*write_replacement) (const char *buf, size_t buflen,
|
||||
void* callback_arg),
|
||||
void* callback_arg,
|
||||
void* data);
|
||||
#if @HAVE_WCHAR_T@
|
||||
/* Fallback function. Invoked when a number of bytes could not be converted to
|
||||
a wide character. This function should process all bytes from inbuf and may
|
||||
produce replacement wide characters by calling the write_replacement
|
||||
callback repeatedly. */
|
||||
typedef void (*iconv_wchar_mb_to_wc_fallback)
|
||||
(const char* inbuf, size_t inbufsize,
|
||||
void (*write_replacement) (const wchar_t *buf, size_t buflen,
|
||||
void* callback_arg),
|
||||
void* callback_arg,
|
||||
void* data);
|
||||
/* Fallback function. Invoked when a wide character could not be converted to
|
||||
the target encoding. This function should process the character and may
|
||||
produce replacement bytes (in the target encoding) by calling the
|
||||
write_replacement callback repeatedly. */
|
||||
typedef void (*iconv_wchar_wc_to_mb_fallback)
|
||||
(wchar_t code,
|
||||
void (*write_replacement) (const char *buf, size_t buflen,
|
||||
void* callback_arg),
|
||||
void* callback_arg,
|
||||
void* data);
|
||||
#else
|
||||
/* If the wchar_t type does not exist, these two fallback functions are never
|
||||
invoked. Their argument list therefore does not matter. */
|
||||
typedef void (*iconv_wchar_mb_to_wc_fallback) ();
|
||||
typedef void (*iconv_wchar_wc_to_mb_fallback) ();
|
||||
#endif
|
||||
/* Set of fallbacks. */
|
||||
struct iconv_fallbacks {
|
||||
iconv_unicode_mb_to_uc_fallback mb_to_uc_fallback;
|
||||
iconv_unicode_uc_to_mb_fallback uc_to_mb_fallback;
|
||||
iconv_wchar_mb_to_wc_fallback mb_to_wc_fallback;
|
||||
iconv_wchar_wc_to_mb_fallback wc_to_mb_fallback;
|
||||
void* data;
|
||||
};
|
||||
|
||||
/* Requests for iconvctl. */
|
||||
#define ICONV_TRIVIALP 0 /* int *argument */
|
||||
#define ICONV_GET_TRANSLITERATE 1 /* int *argument */
|
||||
#define ICONV_SET_TRANSLITERATE 2 /* const int *argument */
|
||||
#define ICONV_GET_DISCARD_ILSEQ 3 /* int *argument */
|
||||
#define ICONV_SET_DISCARD_ILSEQ 4 /* const int *argument */
|
||||
#define ICONV_SET_HOOKS 5 /* const struct iconv_hooks *argument */
|
||||
#define ICONV_SET_FALLBACKS 6 /* const struct iconv_fallbacks *argument */
|
||||
|
||||
/* Listing of locale independent encodings. */
|
||||
extern LIBICONV_DLL_EXPORTED void iconvlist (int (*do_one) (unsigned int namescount,
|
||||
const char * const * names,
|
||||
void* data),
|
||||
void* data);
|
||||
|
||||
/* Canonicalize an encoding name.
|
||||
The result is either a canonical encoding name, or name itself. */
|
||||
extern LIBICONV_DLL_EXPORTED const char * iconv_canonicalize (const char * name);
|
||||
|
||||
/* Support for relocatable packages. */
|
||||
|
||||
/* Sets the original and the current installation prefix of the package.
|
||||
Relocation simply replaces a pathname starting with the original prefix
|
||||
by the corresponding pathname with the current prefix instead. Both
|
||||
prefixes should be directory names without trailing slash (i.e. use ""
|
||||
instead of "/"). */
|
||||
extern LIBICONV_DLL_EXPORTED void libiconv_set_relocation_prefix (const char *orig_prefix,
|
||||
const char *curr_prefix);
|
||||
|
||||
#endif /* (!_POSIX_C_SOURCE || _DARWIN_C_SOURCE) */
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
#endif /* _LIBICONV_H */
|
197
libiconv/include/iconv.h.in
Normal file
197
libiconv/include/iconv.h.in
Normal file
@ -0,0 +1,197 @@
|
||||
/* Copyright (C) 1999-2003, 2005-2006 Free Software Foundation, Inc.
|
||||
This file is part of the GNU LIBICONV Library.
|
||||
|
||||
The GNU LIBICONV Library is free software; you can redistribute it
|
||||
and/or modify it under the terms of the GNU Library General Public
|
||||
License as published by the Free Software Foundation; either version 2
|
||||
of the License, or (at your option) any later version.
|
||||
|
||||
The GNU LIBICONV Library is distributed in the hope that it will be
|
||||
useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
Library General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Library General Public
|
||||
License along with the GNU LIBICONV Library; see the file COPYING.LIB.
|
||||
If not, write to the Free Software Foundation, Inc., 51 Franklin Street,
|
||||
Fifth Floor, Boston, MA 02110-1301, USA. */
|
||||
|
||||
/* When installed, this file is called "iconv.h". */
|
||||
|
||||
#ifndef _LIBICONV_H
|
||||
#define _LIBICONV_H
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
#include <_types.h>
|
||||
#ifndef _SIZE_T
|
||||
#define _SIZE_T
|
||||
typedef __darwin_size_t size_t;
|
||||
#endif
|
||||
|
||||
#define _LIBICONV_VERSION 0x010B /* version number: (major<<8) + minor */
|
||||
extern @DLL_VARIABLE@ int _libiconv_version; /* Likewise */
|
||||
|
||||
/* We would like to #include any system header file which could define
|
||||
iconv_t, 1. in order to eliminate the risk that the user gets compilation
|
||||
errors because some other system header file includes /usr/include/iconv.h
|
||||
which defines iconv_t or declares iconv after this file, 2. when compiling
|
||||
for LIBICONV_PLUG, we need the proper iconv_t type in order to produce
|
||||
binary compatible code.
|
||||
But gcc's #include_next is not portable. Thus, once libiconv's iconv.h
|
||||
has been installed in /usr/local/include, there is no way any more to
|
||||
include the original /usr/include/iconv.h. We simply have to get away
|
||||
without it.
|
||||
Ad 1. The risk that a system header file does
|
||||
#include "iconv.h" or #include_next "iconv.h"
|
||||
is small. They all do #include <iconv.h>.
|
||||
Ad 2. The iconv_t type is a pointer type in all cases I have seen. (It
|
||||
has to be a scalar type because (iconv_t)(-1) is a possible return value
|
||||
from iconv_open().) */
|
||||
|
||||
/* Define iconv_t ourselves. */
|
||||
#ifndef _ICONV_T
|
||||
#define _ICONV_T
|
||||
typedef void* iconv_t;
|
||||
#endif
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
|
||||
/* Allocates descriptor for code conversion from encoding `fromcode' to
|
||||
encoding `tocode'. */
|
||||
iconv_t iconv_open (const char* /*tocode*/, const char* /*fromcode*/);
|
||||
|
||||
/* Converts, using conversion descriptor `cd', at most `*inbytesleft' bytes
|
||||
starting at `*inbuf', writing at most `*outbytesleft' bytes starting at
|
||||
`*outbuf'.
|
||||
Decrements `*inbytesleft' and increments `*inbuf' by the same amount.
|
||||
Decrements `*outbytesleft' and increments `*outbuf' by the same amount. */
|
||||
size_t iconv (iconv_t /*cd*/,
|
||||
char ** __restrict /*inbuf*/, size_t * __restrict /*inbytesleft*/,
|
||||
char ** __restrict /*outbuf*/, size_t * __restrict /*outbytesleft*/);
|
||||
|
||||
/* Frees resources allocated for conversion descriptor `cd'. */
|
||||
int iconv_close (iconv_t /*cd*/);
|
||||
|
||||
#if !defined(_POSIX_C_SOURCE) || defined(_DARWIN_C_SOURCE)
|
||||
|
||||
/* Nonstandard extensions. */
|
||||
|
||||
#ifndef __cplusplus
|
||||
#ifndef _WCHAR_T
|
||||
#define _WCHAR_T
|
||||
typedef __darwin_wchar_t wchar_t;
|
||||
#endif /* _WCHAR_T */
|
||||
#endif /* __cplusplus */
|
||||
|
||||
/* Control of attributes. */
|
||||
int iconvctl (iconv_t /*cd*/, int /*request*/, void* /*argument*/);
|
||||
|
||||
/* Hook performed after every successful conversion of a Unicode character. */
|
||||
typedef void (*iconv_unicode_char_hook) (unsigned int uc, void* data);
|
||||
/* Hook performed after every successful conversion of a wide character. */
|
||||
typedef void (*iconv_wide_char_hook) (wchar_t wc, void* data);
|
||||
/* Set of hooks. */
|
||||
struct iconv_hooks {
|
||||
iconv_unicode_char_hook uc_hook;
|
||||
iconv_wide_char_hook wc_hook;
|
||||
void* data;
|
||||
};
|
||||
|
||||
/* Fallback function. Invoked when a small number of bytes could not be
|
||||
converted to a Unicode character. This function should process all
|
||||
bytes from inbuf and may produce replacement Unicode characters by calling
|
||||
the write_replacement callback repeatedly. */
|
||||
typedef void (*iconv_unicode_mb_to_uc_fallback)
|
||||
(const char* inbuf, size_t inbufsize,
|
||||
void (*write_replacement) (const unsigned int *buf, size_t buflen,
|
||||
void* callback_arg),
|
||||
void* callback_arg,
|
||||
void* data);
|
||||
/* Fallback function. Invoked when a Unicode character could not be converted
|
||||
to the target encoding. This function should process the character and
|
||||
may produce replacement bytes (in the target encoding) by calling the
|
||||
write_replacement callback repeatedly. */
|
||||
typedef void (*iconv_unicode_uc_to_mb_fallback)
|
||||
(unsigned int code,
|
||||
void (*write_replacement) (const char *buf, size_t buflen,
|
||||
void* callback_arg),
|
||||
void* callback_arg,
|
||||
void* data);
|
||||
#if @HAVE_WCHAR_T@
|
||||
/* Fallback function. Invoked when a number of bytes could not be converted to
|
||||
a wide character. This function should process all bytes from inbuf and may
|
||||
produce replacement wide characters by calling the write_replacement
|
||||
callback repeatedly. */
|
||||
typedef void (*iconv_wchar_mb_to_wc_fallback)
|
||||
(const char* inbuf, size_t inbufsize,
|
||||
void (*write_replacement) (const wchar_t *buf, size_t buflen,
|
||||
void* callback_arg),
|
||||
void* callback_arg,
|
||||
void* data);
|
||||
/* Fallback function. Invoked when a wide character could not be converted to
|
||||
the target encoding. This function should process the character and may
|
||||
produce replacement bytes (in the target encoding) by calling the
|
||||
write_replacement callback repeatedly. */
|
||||
typedef void (*iconv_wchar_wc_to_mb_fallback)
|
||||
(wchar_t code,
|
||||
void (*write_replacement) (const char *buf, size_t buflen,
|
||||
void* callback_arg),
|
||||
void* callback_arg,
|
||||
void* data);
|
||||
#else
|
||||
/* If the wchar_t type does not exist, these two fallback functions are never
|
||||
invoked. Their argument list therefore does not matter. */
|
||||
typedef void (*iconv_wchar_mb_to_wc_fallback) ();
|
||||
typedef void (*iconv_wchar_wc_to_mb_fallback) ();
|
||||
#endif
|
||||
/* Set of fallbacks. */
|
||||
struct iconv_fallbacks {
|
||||
iconv_unicode_mb_to_uc_fallback mb_to_uc_fallback;
|
||||
iconv_unicode_uc_to_mb_fallback uc_to_mb_fallback;
|
||||
iconv_wchar_mb_to_wc_fallback mb_to_wc_fallback;
|
||||
iconv_wchar_wc_to_mb_fallback wc_to_mb_fallback;
|
||||
void* data;
|
||||
};
|
||||
|
||||
/* Requests for iconvctl. */
|
||||
#define ICONV_TRIVIALP 0 /* int *argument */
|
||||
#define ICONV_GET_TRANSLITERATE 1 /* int *argument */
|
||||
#define ICONV_SET_TRANSLITERATE 2 /* const int *argument */
|
||||
#define ICONV_GET_DISCARD_ILSEQ 3 /* int *argument */
|
||||
#define ICONV_SET_DISCARD_ILSEQ 4 /* const int *argument */
|
||||
#define ICONV_SET_HOOKS 5 /* const struct iconv_hooks *argument */
|
||||
#define ICONV_SET_FALLBACKS 6 /* const struct iconv_fallbacks *argument */
|
||||
|
||||
/* Listing of locale independent encodings. */
|
||||
void iconvlist (int (* /*do_one*/) (unsigned int /*namescount*/,
|
||||
const char * const * /*names*/,
|
||||
void* /*data*/),
|
||||
void* /*data*/);
|
||||
|
||||
/* Canonicalize an encoding name.
|
||||
The result is either a canonical encoding name, or name itself. */
|
||||
extern const char * iconv_canonicalize (const char * name);
|
||||
|
||||
/* Support for relocatable packages. */
|
||||
|
||||
/* Sets the original and the current installation prefix of the package.
|
||||
Relocation simply replaces a pathname starting with the original prefix
|
||||
by the corresponding pathname with the current prefix instead. Both
|
||||
prefixes should be directory names without trailing slash (i.e. use ""
|
||||
instead of "/"). */
|
||||
void libiconv_set_relocation_prefix (const char * /*orig_prefix*/,
|
||||
const char * /*curr_prefix*/);
|
||||
|
||||
#endif /* (!_POSIX_C_SOURCE || _DARWIN_C_SOURCE) */
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
#endif /* _LIBICONV_H */
|
211
libiconv/include/iconv.h.msvc-shared
Normal file
211
libiconv/include/iconv.h.msvc-shared
Normal file
@ -0,0 +1,211 @@
|
||||
/* Copyright (C) 1999-2003, 2005-2006 Free Software Foundation, Inc.
|
||||
This file is part of the GNU LIBICONV Library.
|
||||
|
||||
The GNU LIBICONV Library is free software; you can redistribute it
|
||||
and/or modify it under the terms of the GNU Library General Public
|
||||
License as published by the Free Software Foundation; either version 2
|
||||
of the License, or (at your option) any later version.
|
||||
|
||||
The GNU LIBICONV Library is distributed in the hope that it will be
|
||||
useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
Library General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Library General Public
|
||||
License along with the GNU LIBICONV Library; see the file COPYING.LIB.
|
||||
If not, write to the Free Software Foundation, Inc., 51 Franklin Street,
|
||||
Fifth Floor, Boston, MA 02110-1301, USA. */
|
||||
|
||||
/* When installed, this file is called "iconv.h". */
|
||||
|
||||
#ifndef _LIBICONV_H
|
||||
#define _LIBICONV_H
|
||||
|
||||
#define _LIBICONV_VERSION 0x010B /* version number: (major<<8) + minor */
|
||||
|
||||
#ifdef BUILDING_LIBICONV
|
||||
#define LIBICONV_DLL_EXPORTED __declspec(dllexport)
|
||||
#else
|
||||
#define LIBICONV_DLL_EXPORTED __declspec(dllimport)
|
||||
#endif
|
||||
extern LIBICONV_DLL_EXPORTED int _libiconv_version; /* Likewise */
|
||||
|
||||
/* We would like to #include any system header file which could define
|
||||
iconv_t, 1. in order to eliminate the risk that the user gets compilation
|
||||
errors because some other system header file includes /usr/include/iconv.h
|
||||
which defines iconv_t or declares iconv after this file, 2. when compiling
|
||||
for LIBICONV_PLUG, we need the proper iconv_t type in order to produce
|
||||
binary compatible code.
|
||||
But gcc's #include_next is not portable. Thus, once libiconv's iconv.h
|
||||
has been installed in /usr/local/include, there is no way any more to
|
||||
include the original /usr/include/iconv.h. We simply have to get away
|
||||
without it.
|
||||
Ad 1. The risk that a system header file does
|
||||
#include "iconv.h" or #include_next "iconv.h"
|
||||
is small. They all do #include <iconv.h>.
|
||||
Ad 2. The iconv_t type is a pointer type in all cases I have seen. (It
|
||||
has to be a scalar type because (iconv_t)(-1) is a possible return value
|
||||
from iconv_open().) */
|
||||
|
||||
/* Define iconv_t ourselves. */
|
||||
#undef iconv_t
|
||||
#define iconv_t libiconv_t
|
||||
typedef void* iconv_t;
|
||||
|
||||
/* Get size_t declaration.
|
||||
Get wchar_t declaration if it exists. */
|
||||
#include <stddef.h>
|
||||
|
||||
/* Get errno declaration and values. */
|
||||
#include <errno.h>
|
||||
/* Some systems, like SunOS 4, don't have EILSEQ. Some systems, like BSD/OS,
|
||||
have EILSEQ in a different header. On these systems, define EILSEQ
|
||||
ourselves. */
|
||||
#ifndef EILSEQ
|
||||
#define EILSEQ @EILSEQ@
|
||||
#endif
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
|
||||
/* Allocates descriptor for code conversion from encoding `fromcode' to
|
||||
encoding `tocode'. */
|
||||
#ifndef LIBICONV_PLUG
|
||||
#define iconv_open libiconv_open
|
||||
#endif
|
||||
extern LIBICONV_DLL_EXPORTED iconv_t iconv_open (const char* tocode, const char* fromcode);
|
||||
|
||||
/* Converts, using conversion descriptor `cd', at most `*inbytesleft' bytes
|
||||
starting at `*inbuf', writing at most `*outbytesleft' bytes starting at
|
||||
`*outbuf'.
|
||||
Decrements `*inbytesleft' and increments `*inbuf' by the same amount.
|
||||
Decrements `*outbytesleft' and increments `*outbuf' by the same amount. */
|
||||
#ifndef LIBICONV_PLUG
|
||||
#define iconv libiconv
|
||||
#endif
|
||||
extern LIBICONV_DLL_EXPORTED size_t iconv (iconv_t cd, const char* * inbuf, size_t *inbytesleft, char* * outbuf, size_t *outbytesleft);
|
||||
|
||||
/* Frees resources allocated for conversion descriptor `cd'. */
|
||||
#ifndef LIBICONV_PLUG
|
||||
#define iconv_close libiconv_close
|
||||
#endif
|
||||
extern LIBICONV_DLL_EXPORTED int iconv_close (iconv_t cd);
|
||||
|
||||
|
||||
#ifndef LIBICONV_PLUG
|
||||
|
||||
/* Nonstandard extensions. */
|
||||
|
||||
/* Control of attributes. */
|
||||
#define iconvctl libiconvctl
|
||||
extern LIBICONV_DLL_EXPORTED int iconvctl (iconv_t cd, int request, void* argument);
|
||||
|
||||
/* Hook performed after every successful conversion of a Unicode character. */
|
||||
typedef void (*iconv_unicode_char_hook) (unsigned int uc, void* data);
|
||||
/* Hook performed after every successful conversion of a wide character. */
|
||||
typedef void (*iconv_wide_char_hook) (wchar_t wc, void* data);
|
||||
/* Set of hooks. */
|
||||
struct iconv_hooks {
|
||||
iconv_unicode_char_hook uc_hook;
|
||||
iconv_wide_char_hook wc_hook;
|
||||
void* data;
|
||||
};
|
||||
|
||||
/* Fallback function. Invoked when a small number of bytes could not be
|
||||
converted to a Unicode character. This function should process all
|
||||
bytes from inbuf and may produce replacement Unicode characters by calling
|
||||
the write_replacement callback repeatedly. */
|
||||
typedef void (*iconv_unicode_mb_to_uc_fallback)
|
||||
(const char* inbuf, size_t inbufsize,
|
||||
void (*write_replacement) (const unsigned int *buf, size_t buflen,
|
||||
void* callback_arg),
|
||||
void* callback_arg,
|
||||
void* data);
|
||||
/* Fallback function. Invoked when a Unicode character could not be converted
|
||||
to the target encoding. This function should process the character and
|
||||
may produce replacement bytes (in the target encoding) by calling the
|
||||
write_replacement callback repeatedly. */
|
||||
typedef void (*iconv_unicode_uc_to_mb_fallback)
|
||||
(unsigned int code,
|
||||
void (*write_replacement) (const char *buf, size_t buflen,
|
||||
void* callback_arg),
|
||||
void* callback_arg,
|
||||
void* data);
|
||||
#if 1
|
||||
/* Fallback function. Invoked when a number of bytes could not be converted to
|
||||
a wide character. This function should process all bytes from inbuf and may
|
||||
produce replacement wide characters by calling the write_replacement
|
||||
callback repeatedly. */
|
||||
typedef void (*iconv_wchar_mb_to_wc_fallback)
|
||||
(const char* inbuf, size_t inbufsize,
|
||||
void (*write_replacement) (const wchar_t *buf, size_t buflen,
|
||||
void* callback_arg),
|
||||
void* callback_arg,
|
||||
void* data);
|
||||
/* Fallback function. Invoked when a wide character could not be converted to
|
||||
the target encoding. This function should process the character and may
|
||||
produce replacement bytes (in the target encoding) by calling the
|
||||
write_replacement callback repeatedly. */
|
||||
typedef void (*iconv_wchar_wc_to_mb_fallback)
|
||||
(wchar_t code,
|
||||
void (*write_replacement) (const char *buf, size_t buflen,
|
||||
void* callback_arg),
|
||||
void* callback_arg,
|
||||
void* data);
|
||||
#else
|
||||
/* If the wchar_t type does not exist, these two fallback functions are never
|
||||
invoked. Their argument list therefore does not matter. */
|
||||
typedef void (*iconv_wchar_mb_to_wc_fallback) ();
|
||||
typedef void (*iconv_wchar_wc_to_mb_fallback) ();
|
||||
#endif
|
||||
/* Set of fallbacks. */
|
||||
struct iconv_fallbacks {
|
||||
iconv_unicode_mb_to_uc_fallback mb_to_uc_fallback;
|
||||
iconv_unicode_uc_to_mb_fallback uc_to_mb_fallback;
|
||||
iconv_wchar_mb_to_wc_fallback mb_to_wc_fallback;
|
||||
iconv_wchar_wc_to_mb_fallback wc_to_mb_fallback;
|
||||
void* data;
|
||||
};
|
||||
|
||||
/* Requests for iconvctl. */
|
||||
#define ICONV_TRIVIALP 0 /* int *argument */
|
||||
#define ICONV_GET_TRANSLITERATE 1 /* int *argument */
|
||||
#define ICONV_SET_TRANSLITERATE 2 /* const int *argument */
|
||||
#define ICONV_GET_DISCARD_ILSEQ 3 /* int *argument */
|
||||
#define ICONV_SET_DISCARD_ILSEQ 4 /* const int *argument */
|
||||
#define ICONV_SET_HOOKS 5 /* const struct iconv_hooks *argument */
|
||||
#define ICONV_SET_FALLBACKS 6 /* const struct iconv_fallbacks *argument */
|
||||
|
||||
/* Listing of locale independent encodings. */
|
||||
#define iconvlist libiconvlist
|
||||
extern LIBICONV_DLL_EXPORTED void iconvlist (int (*do_one) (unsigned int namescount,
|
||||
const char * const * names,
|
||||
void* data),
|
||||
void* data);
|
||||
|
||||
/* Canonicalize an encoding name.
|
||||
The result is either a canonical encoding name, or name itself. */
|
||||
extern LIBICONV_DLL_EXPORTED const char * iconv_canonicalize (const char * name);
|
||||
|
||||
/* Support for relocatable packages. */
|
||||
|
||||
/* Sets the original and the current installation prefix of the package.
|
||||
Relocation simply replaces a pathname starting with the original prefix
|
||||
by the corresponding pathname with the current prefix instead. Both
|
||||
prefixes should be directory names without trailing slash (i.e. use ""
|
||||
instead of "/"). */
|
||||
extern LIBICONV_DLL_EXPORTED void libiconv_set_relocation_prefix (const char *orig_prefix,
|
||||
const char *curr_prefix);
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
#endif /* _LIBICONV_H */
|
205
libiconv/include/iconv.h.msvc-static
Normal file
205
libiconv/include/iconv.h.msvc-static
Normal file
@ -0,0 +1,205 @@
|
||||
/* Copyright (C) 1999-2003, 2005-2006 Free Software Foundation, Inc.
|
||||
This file is part of the GNU LIBICONV Library.
|
||||
|
||||
The GNU LIBICONV Library is free software; you can redistribute it
|
||||
and/or modify it under the terms of the GNU Library General Public
|
||||
License as published by the Free Software Foundation; either version 2
|
||||
of the License, or (at your option) any later version.
|
||||
|
||||
The GNU LIBICONV Library is distributed in the hope that it will be
|
||||
useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
Library General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Library General Public
|
||||
License along with the GNU LIBICONV Library; see the file COPYING.LIB.
|
||||
If not, write to the Free Software Foundation, Inc., 51 Franklin Street,
|
||||
Fifth Floor, Boston, MA 02110-1301, USA. */
|
||||
|
||||
/* When installed, this file is called "iconv.h". */
|
||||
|
||||
#ifndef _LIBICONV_H
|
||||
#define _LIBICONV_H
|
||||
|
||||
#define _LIBICONV_VERSION 0x010B /* version number: (major<<8) + minor */
|
||||
extern int _libiconv_version; /* Likewise */
|
||||
|
||||
/* We would like to #include any system header file which could define
|
||||
iconv_t, 1. in order to eliminate the risk that the user gets compilation
|
||||
errors because some other system header file includes /usr/include/iconv.h
|
||||
which defines iconv_t or declares iconv after this file, 2. when compiling
|
||||
for LIBICONV_PLUG, we need the proper iconv_t type in order to produce
|
||||
binary compatible code.
|
||||
But gcc's #include_next is not portable. Thus, once libiconv's iconv.h
|
||||
has been installed in /usr/local/include, there is no way any more to
|
||||
include the original /usr/include/iconv.h. We simply have to get away
|
||||
without it.
|
||||
Ad 1. The risk that a system header file does
|
||||
#include "iconv.h" or #include_next "iconv.h"
|
||||
is small. They all do #include <iconv.h>.
|
||||
Ad 2. The iconv_t type is a pointer type in all cases I have seen. (It
|
||||
has to be a scalar type because (iconv_t)(-1) is a possible return value
|
||||
from iconv_open().) */
|
||||
|
||||
/* Define iconv_t ourselves. */
|
||||
#undef iconv_t
|
||||
#define iconv_t libiconv_t
|
||||
typedef void* iconv_t;
|
||||
|
||||
/* Get size_t declaration.
|
||||
Get wchar_t declaration if it exists. */
|
||||
#include <stddef.h>
|
||||
|
||||
/* Get errno declaration and values. */
|
||||
#include <errno.h>
|
||||
/* Some systems, like SunOS 4, don't have EILSEQ. Some systems, like BSD/OS,
|
||||
have EILSEQ in a different header. On these systems, define EILSEQ
|
||||
ourselves. */
|
||||
#ifndef EILSEQ
|
||||
#define EILSEQ @EILSEQ@
|
||||
#endif
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
|
||||
/* Allocates descriptor for code conversion from encoding `fromcode' to
|
||||
encoding `tocode'. */
|
||||
#ifndef LIBICONV_PLUG
|
||||
#define iconv_open libiconv_open
|
||||
#endif
|
||||
extern iconv_t iconv_open (const char* tocode, const char* fromcode);
|
||||
|
||||
/* Converts, using conversion descriptor `cd', at most `*inbytesleft' bytes
|
||||
starting at `*inbuf', writing at most `*outbytesleft' bytes starting at
|
||||
`*outbuf'.
|
||||
Decrements `*inbytesleft' and increments `*inbuf' by the same amount.
|
||||
Decrements `*outbytesleft' and increments `*outbuf' by the same amount. */
|
||||
#ifndef LIBICONV_PLUG
|
||||
#define iconv libiconv
|
||||
#endif
|
||||
extern size_t iconv (iconv_t cd, const char* * inbuf, size_t *inbytesleft, char* * outbuf, size_t *outbytesleft);
|
||||
|
||||
/* Frees resources allocated for conversion descriptor `cd'. */
|
||||
#ifndef LIBICONV_PLUG
|
||||
#define iconv_close libiconv_close
|
||||
#endif
|
||||
extern int iconv_close (iconv_t cd);
|
||||
|
||||
|
||||
#ifndef LIBICONV_PLUG
|
||||
|
||||
/* Nonstandard extensions. */
|
||||
|
||||
/* Control of attributes. */
|
||||
#define iconvctl libiconvctl
|
||||
extern int iconvctl (iconv_t cd, int request, void* argument);
|
||||
|
||||
/* Hook performed after every successful conversion of a Unicode character. */
|
||||
typedef void (*iconv_unicode_char_hook) (unsigned int uc, void* data);
|
||||
/* Hook performed after every successful conversion of a wide character. */
|
||||
typedef void (*iconv_wide_char_hook) (wchar_t wc, void* data);
|
||||
/* Set of hooks. */
|
||||
struct iconv_hooks {
|
||||
iconv_unicode_char_hook uc_hook;
|
||||
iconv_wide_char_hook wc_hook;
|
||||
void* data;
|
||||
};
|
||||
|
||||
/* Fallback function. Invoked when a small number of bytes could not be
|
||||
converted to a Unicode character. This function should process all
|
||||
bytes from inbuf and may produce replacement Unicode characters by calling
|
||||
the write_replacement callback repeatedly. */
|
||||
typedef void (*iconv_unicode_mb_to_uc_fallback)
|
||||
(const char* inbuf, size_t inbufsize,
|
||||
void (*write_replacement) (const unsigned int *buf, size_t buflen,
|
||||
void* callback_arg),
|
||||
void* callback_arg,
|
||||
void* data);
|
||||
/* Fallback function. Invoked when a Unicode character could not be converted
|
||||
to the target encoding. This function should process the character and
|
||||
may produce replacement bytes (in the target encoding) by calling the
|
||||
write_replacement callback repeatedly. */
|
||||
typedef void (*iconv_unicode_uc_to_mb_fallback)
|
||||
(unsigned int code,
|
||||
void (*write_replacement) (const char *buf, size_t buflen,
|
||||
void* callback_arg),
|
||||
void* callback_arg,
|
||||
void* data);
|
||||
#if 1
|
||||
/* Fallback function. Invoked when a number of bytes could not be converted to
|
||||
a wide character. This function should process all bytes from inbuf and may
|
||||
produce replacement wide characters by calling the write_replacement
|
||||
callback repeatedly. */
|
||||
typedef void (*iconv_wchar_mb_to_wc_fallback)
|
||||
(const char* inbuf, size_t inbufsize,
|
||||
void (*write_replacement) (const wchar_t *buf, size_t buflen,
|
||||
void* callback_arg),
|
||||
void* callback_arg,
|
||||
void* data);
|
||||
/* Fallback function. Invoked when a wide character could not be converted to
|
||||
the target encoding. This function should process the character and may
|
||||
produce replacement bytes (in the target encoding) by calling the
|
||||
write_replacement callback repeatedly. */
|
||||
typedef void (*iconv_wchar_wc_to_mb_fallback)
|
||||
(wchar_t code,
|
||||
void (*write_replacement) (const char *buf, size_t buflen,
|
||||
void* callback_arg),
|
||||
void* callback_arg,
|
||||
void* data);
|
||||
#else
|
||||
/* If the wchar_t type does not exist, these two fallback functions are never
|
||||
invoked. Their argument list therefore does not matter. */
|
||||
typedef void (*iconv_wchar_mb_to_wc_fallback) ();
|
||||
typedef void (*iconv_wchar_wc_to_mb_fallback) ();
|
||||
#endif
|
||||
/* Set of fallbacks. */
|
||||
struct iconv_fallbacks {
|
||||
iconv_unicode_mb_to_uc_fallback mb_to_uc_fallback;
|
||||
iconv_unicode_uc_to_mb_fallback uc_to_mb_fallback;
|
||||
iconv_wchar_mb_to_wc_fallback mb_to_wc_fallback;
|
||||
iconv_wchar_wc_to_mb_fallback wc_to_mb_fallback;
|
||||
void* data;
|
||||
};
|
||||
|
||||
/* Requests for iconvctl. */
|
||||
#define ICONV_TRIVIALP 0 /* int *argument */
|
||||
#define ICONV_GET_TRANSLITERATE 1 /* int *argument */
|
||||
#define ICONV_SET_TRANSLITERATE 2 /* const int *argument */
|
||||
#define ICONV_GET_DISCARD_ILSEQ 3 /* int *argument */
|
||||
#define ICONV_SET_DISCARD_ILSEQ 4 /* const int *argument */
|
||||
#define ICONV_SET_HOOKS 5 /* const struct iconv_hooks *argument */
|
||||
#define ICONV_SET_FALLBACKS 6 /* const struct iconv_fallbacks *argument */
|
||||
|
||||
/* Listing of locale independent encodings. */
|
||||
#define iconvlist libiconvlist
|
||||
extern void iconvlist (int (*do_one) (unsigned int namescount,
|
||||
const char * const * names,
|
||||
void* data),
|
||||
void* data);
|
||||
|
||||
/* Canonicalize an encoding name.
|
||||
The result is either a canonical encoding name, or name itself. */
|
||||
extern const char * iconv_canonicalize (const char * name);
|
||||
|
||||
/* Support for relocatable packages. */
|
||||
|
||||
/* Sets the original and the current installation prefix of the package.
|
||||
Relocation simply replaces a pathname starting with the original prefix
|
||||
by the corresponding pathname with the current prefix instead. Both
|
||||
prefixes should be directory names without trailing slash (i.e. use ""
|
||||
instead of "/"). */
|
||||
extern void libiconv_set_relocation_prefix (const char *orig_prefix,
|
||||
const char *curr_prefix);
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
#endif /* _LIBICONV_H */
|
205
libiconv/include/iconv.h_vms
Normal file
205
libiconv/include/iconv.h_vms
Normal file
@ -0,0 +1,205 @@
|
||||
/* Copyright (C) 1999-2003, 2005-2006 Free Software Foundation, Inc.
|
||||
This file is part of the GNU LIBICONV Library.
|
||||
|
||||
The GNU LIBICONV Library is free software; you can redistribute it
|
||||
and/or modify it under the terms of the GNU Library General Public
|
||||
License as published by the Free Software Foundation; either version 2
|
||||
of the License, or (at your option) any later version.
|
||||
|
||||
The GNU LIBICONV Library is distributed in the hope that it will be
|
||||
useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
Library General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Library General Public
|
||||
License along with the GNU LIBICONV Library; see the file COPYING.LIB.
|
||||
If not, write to the Free Software Foundation, Inc., 51 Franklin Street,
|
||||
Fifth Floor, Boston, MA 02110-1301, USA. */
|
||||
|
||||
/* When installed, this file is called "iconv.h". */
|
||||
|
||||
#ifndef _LIBICONV_H
|
||||
#define _LIBICONV_H
|
||||
|
||||
#define _LIBICONV_VERSION 0x010B /* version number: (major<<8) + minor */
|
||||
extern int _libiconv_version; /* Likewise */
|
||||
|
||||
/* We would like to #include any system header file which could define
|
||||
iconv_t, 1. in order to eliminate the risk that the user gets compilation
|
||||
errors because some other system header file includes /usr/include/iconv.h
|
||||
which defines iconv_t or declares iconv after this file, 2. when compiling
|
||||
for LIBICONV_PLUG, we need the proper iconv_t type in order to produce
|
||||
binary compatible code.
|
||||
But gcc's #include_next is not portable. Thus, once libiconv's iconv.h
|
||||
has been installed in /usr/local/include, there is no way any more to
|
||||
include the original /usr/include/iconv.h. We simply have to get away
|
||||
without it.
|
||||
Ad 1. The risk that a system header file does
|
||||
#include "iconv.h" or #include_next "iconv.h"
|
||||
is small. They all do #include <iconv.h>.
|
||||
Ad 2. The iconv_t type is a pointer type in all cases I have seen. (It
|
||||
has to be a scalar type because (iconv_t)(-1) is a possible return value
|
||||
from iconv_open().) */
|
||||
|
||||
/* Define iconv_t ourselves. */
|
||||
#undef iconv_t
|
||||
#define iconv_t libiconv_t
|
||||
typedef void* iconv_t;
|
||||
|
||||
/* Get size_t declaration.
|
||||
Get wchar_t declaration if it exists. */
|
||||
#include <stddef.h>
|
||||
|
||||
/* Get errno declaration and values. */
|
||||
#include <errno.h>
|
||||
/* Some systems, like SunOS 4, don't have EILSEQ. Some systems, like BSD/OS,
|
||||
have EILSEQ in a different header. On these systems, define EILSEQ
|
||||
ourselves. */
|
||||
#ifndef EILSEQ
|
||||
#define EILSEQ @EILSEQ@
|
||||
#endif
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
|
||||
/* Allocates descriptor for code conversion from encoding `fromcode' to
|
||||
encoding `tocode'. */
|
||||
#ifndef LIBICONV_PLUG
|
||||
#define iconv_open libiconv_open
|
||||
#endif
|
||||
extern iconv_t iconv_open (const char* tocode, const char* fromcode);
|
||||
|
||||
/* Converts, using conversion descriptor `cd', at most `*inbytesleft' bytes
|
||||
starting at `*inbuf', writing at most `*outbytesleft' bytes starting at
|
||||
`*outbuf'.
|
||||
Decrements `*inbytesleft' and increments `*inbuf' by the same amount.
|
||||
Decrements `*outbytesleft' and increments `*outbuf' by the same amount. */
|
||||
#ifndef LIBICONV_PLUG
|
||||
#define iconv libiconv
|
||||
#endif
|
||||
extern size_t iconv (iconv_t cd, char* * inbuf, size_t *inbytesleft, char* * outbuf, size_t *outbytesleft);
|
||||
|
||||
/* Frees resources allocated for conversion descriptor `cd'. */
|
||||
#ifndef LIBICONV_PLUG
|
||||
#define iconv_close libiconv_close
|
||||
#endif
|
||||
extern int iconv_close (iconv_t cd);
|
||||
|
||||
|
||||
#ifndef LIBICONV_PLUG
|
||||
|
||||
/* Nonstandard extensions. */
|
||||
|
||||
/* Control of attributes. */
|
||||
#define iconvctl libiconvctl
|
||||
extern int iconvctl (iconv_t cd, int request, void* argument);
|
||||
|
||||
/* Hook performed after every successful conversion of a Unicode character. */
|
||||
typedef void (*iconv_unicode_char_hook) (unsigned int uc, void* data);
|
||||
/* Hook performed after every successful conversion of a wide character. */
|
||||
typedef void (*iconv_wide_char_hook) (wchar_t wc, void* data);
|
||||
/* Set of hooks. */
|
||||
struct iconv_hooks {
|
||||
iconv_unicode_char_hook uc_hook;
|
||||
iconv_wide_char_hook wc_hook;
|
||||
void* data;
|
||||
};
|
||||
|
||||
/* Fallback function. Invoked when a small number of bytes could not be
|
||||
converted to a Unicode character. This function should process all
|
||||
bytes from inbuf and may produce replacement Unicode characters by calling
|
||||
the write_replacement callback repeatedly. */
|
||||
typedef void (*iconv_unicode_mb_to_uc_fallback)
|
||||
(const char* inbuf, size_t inbufsize,
|
||||
void (*write_replacement) (const unsigned int *buf, size_t buflen,
|
||||
void* callback_arg),
|
||||
void* callback_arg,
|
||||
void* data);
|
||||
/* Fallback function. Invoked when a Unicode character could not be converted
|
||||
to the target encoding. This function should process the character and
|
||||
may produce replacement bytes (in the target encoding) by calling the
|
||||
write_replacement callback repeatedly. */
|
||||
typedef void (*iconv_unicode_uc_to_mb_fallback)
|
||||
(unsigned int code,
|
||||
void (*write_replacement) (const char *buf, size_t buflen,
|
||||
void* callback_arg),
|
||||
void* callback_arg,
|
||||
void* data);
|
||||
#if 1
|
||||
/* Fallback function. Invoked when a number of bytes could not be converted to
|
||||
a wide character. This function should process all bytes from inbuf and may
|
||||
produce replacement wide characters by calling the write_replacement
|
||||
callback repeatedly. */
|
||||
typedef void (*iconv_wchar_mb_to_wc_fallback)
|
||||
(const char* inbuf, size_t inbufsize,
|
||||
void (*write_replacement) (const wchar_t *buf, size_t buflen,
|
||||
void* callback_arg),
|
||||
void* callback_arg,
|
||||
void* data);
|
||||
/* Fallback function. Invoked when a wide character could not be converted to
|
||||
the target encoding. This function should process the character and may
|
||||
produce replacement bytes (in the target encoding) by calling the
|
||||
write_replacement callback repeatedly. */
|
||||
typedef void (*iconv_wchar_wc_to_mb_fallback)
|
||||
(wchar_t code,
|
||||
void (*write_replacement) (const char *buf, size_t buflen,
|
||||
void* callback_arg),
|
||||
void* callback_arg,
|
||||
void* data);
|
||||
#else
|
||||
/* If the wchar_t type does not exist, these two fallback functions are never
|
||||
invoked. Their argument list therefore does not matter. */
|
||||
typedef void (*iconv_wchar_mb_to_wc_fallback) ();
|
||||
typedef void (*iconv_wchar_wc_to_mb_fallback) ();
|
||||
#endif
|
||||
/* Set of fallbacks. */
|
||||
struct iconv_fallbacks {
|
||||
iconv_unicode_mb_to_uc_fallback mb_to_uc_fallback;
|
||||
iconv_unicode_uc_to_mb_fallback uc_to_mb_fallback;
|
||||
iconv_wchar_mb_to_wc_fallback mb_to_wc_fallback;
|
||||
iconv_wchar_wc_to_mb_fallback wc_to_mb_fallback;
|
||||
void* data;
|
||||
};
|
||||
|
||||
/* Requests for iconvctl. */
|
||||
#define ICONV_TRIVIALP 0 /* int *argument */
|
||||
#define ICONV_GET_TRANSLITERATE 1 /* int *argument */
|
||||
#define ICONV_SET_TRANSLITERATE 2 /* const int *argument */
|
||||
#define ICONV_GET_DISCARD_ILSEQ 3 /* int *argument */
|
||||
#define ICONV_SET_DISCARD_ILSEQ 4 /* const int *argument */
|
||||
#define ICONV_SET_HOOKS 5 /* const struct iconv_hooks *argument */
|
||||
#define ICONV_SET_FALLBACKS 6 /* const struct iconv_fallbacks *argument */
|
||||
|
||||
/* Listing of locale independent encodings. */
|
||||
#define iconvlist libiconvlist
|
||||
extern void iconvlist (int (*do_one) (unsigned int namescount,
|
||||
const char * const * names,
|
||||
void* data),
|
||||
void* data);
|
||||
|
||||
/* Canonicalize an encoding name.
|
||||
The result is either a canonical encoding name, or name itself. */
|
||||
extern const char * iconv_canonicalize (const char * name);
|
||||
|
||||
/* Support for relocatable packages. */
|
||||
|
||||
/* Sets the original and the current installation prefix of the package.
|
||||
Relocation simply replaces a pathname starting with the original prefix
|
||||
by the corresponding pathname with the current prefix instead. Both
|
||||
prefixes should be directory names without trailing slash (i.e. use ""
|
||||
instead of "/"). */
|
||||
extern void libiconv_set_relocation_prefix (const char *orig_prefix,
|
||||
const char *curr_prefix);
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
#endif /* _LIBICONV_H */
|
25
libiconv/include/iconv_tiger.h
Normal file
25
libiconv/include/iconv_tiger.h
Normal file
@ -0,0 +1,25 @@
|
||||
#include <iconv.h>
|
||||
|
||||
#if defined(__APPLE__)
|
||||
#include <TargetConditionals.h>
|
||||
|
||||
#if TARGET_OS_OSX && (defined(__ppc__) || defined(__i386__))
|
||||
|
||||
#define __LIBICONV_DLL_EXPORTED_OBSOLETE __LIBICONV_DLL_EXPORTED __attribute__((availability(macosx, obsoleted=10.5)))
|
||||
|
||||
/* backward compatibility */
|
||||
|
||||
extern __LIBICONV_DLL_EXPORTED_OBSOLETE iconv_t libiconv_open (const char* __tocode, const char* __fromcode);
|
||||
|
||||
extern __LIBICONV_DLL_EXPORTED_OBSOLETE size_t libiconv (iconv_t _cd, char* * __restrict __inbuf, size_t * __restrict __inbytesleft, char* * __restrict __outbuf, size_t * __restrict __outbytesleft);
|
||||
|
||||
extern __LIBICONV_DLL_EXPORTED_OBSOLETE int libiconv_close (iconv_t __cd);
|
||||
|
||||
extern __LIBICONV_DLL_EXPORTED_OBSOLETE int libiconvctl (iconv_t __cd, int request, void* argument);
|
||||
|
||||
extern __LIBICONV_DLL_EXPORTED_OBSOLETE void libiconvlist (int (*do_one) (unsigned int namescount,
|
||||
const char * const * names,
|
||||
void* data),
|
||||
void* data);
|
||||
#endif
|
||||
#endif
|
145
libiconv/lib/Makefile.in
Normal file
145
libiconv/lib/Makefile.in
Normal file
@ -0,0 +1,145 @@
|
||||
# Makefile for libiconv/lib
|
||||
|
||||
#### Start of system configuration section. ####
|
||||
|
||||
# Directories used by "make":
|
||||
srcdir = @srcdir@
|
||||
|
||||
# Directories used by "make install":
|
||||
prefix = @prefix@
|
||||
local_prefix = /usr/local
|
||||
exec_prefix = @exec_prefix@
|
||||
libdir = @libdir@
|
||||
|
||||
# Programs used by "make":
|
||||
CC = @CC@
|
||||
CFLAGS = @CFLAGS@ @CFLAG_VISIBILITY@
|
||||
CPPFLAGS = @CPPFLAGS@
|
||||
LDFLAGS = @LDFLAGS@ $(LDFLAGS_@WOE32DLL@)
|
||||
LDFLAGS_yes = -Wl,--export-all-symbols
|
||||
LDFLAGS_no =
|
||||
INCLUDES = -I. -I$(srcdir) -I../include -I$(srcdir)/../include -I.. -I$(srcdir)/..
|
||||
# -DBUILDING_LIBICONV: Change expansion of LIBICONV_DLL_EXPORTED macro.
|
||||
# -DBUILDING_DLL: Change expansion of RELOCATABLE_DLL_EXPORTED macro.
|
||||
DEFS = -DLIBDIR=\"$(libdir)\" -DBUILDING_LIBICONV -DBUILDING_DLL \
|
||||
-DENABLE_RELOCATABLE=1 -DIN_LIBRARY -DINSTALLDIR=\"$(libdir)\" -DNO_XMALLOC \
|
||||
-Dset_relocation_prefix=libiconv_set_relocation_prefix \
|
||||
-Drelocate=libiconv_relocate @DEFS@
|
||||
LIBTOOL = @LIBTOOL@
|
||||
LIBTOOL_COMPILE = $(LIBTOOL) --mode=compile
|
||||
LIBTOOL_LINK = $(LIBTOOL) --mode=link
|
||||
LIBTOOL_INSTALL = $(LIBTOOL) --mode=install
|
||||
LIBTOOL_UNINSTALL = $(LIBTOOL) --mode=uninstall
|
||||
CP = cp
|
||||
MV = mv
|
||||
LN = @LN@
|
||||
LN_S = @LN_S@
|
||||
RM = rm -f
|
||||
|
||||
# Programs used by "make install":
|
||||
INSTALL = @INSTALL@
|
||||
INSTALL_PROGRAM = @INSTALL_PROGRAM@
|
||||
INSTALL_DATA = @INSTALL_DATA@
|
||||
mkinstalldirs = $(SHELL) @top_srcdir@/build-aux/mkinstalldirs
|
||||
|
||||
#### End of system configuration section. ####
|
||||
|
||||
SHELL = /bin/sh
|
||||
|
||||
# Before making a release, change this according to the libtool documentation,
|
||||
# section "Library interface versions".
|
||||
LIBICONV_VERSION_INFO = 6:0:4
|
||||
|
||||
# Needed by $(LIBTOOL).
|
||||
top_builddir = ..
|
||||
|
||||
SOURCES = $(srcdir)/iconv.c $(srcdir)/../libcharset/lib/localcharset.c $(srcdir)/relocatable.c
|
||||
|
||||
OBJECTS = iconv.lo localcharset.lo relocatable.lo $(OBJECTS_@WOE32DLL@)
|
||||
OBJECTS_yes = iconv-exports.lo
|
||||
OBJECTS_no =
|
||||
|
||||
all : @PLUGLIB@ libiconv.la
|
||||
|
||||
libiconv.la : $(OBJECTS)
|
||||
$(LIBTOOL_LINK) $(CC) $(LDFLAGS) -o libiconv.la -rpath $(libdir) -version-info $(LIBICONV_VERSION_INFO) -no-undefined $(OBJECTS)
|
||||
|
||||
preloadable_libiconv.so : preloadable_libiconv_@OS@.so
|
||||
$(RM) preloadable_libiconv.so
|
||||
$(LN_S) preloadable_libiconv_@OS@.so preloadable_libiconv.so
|
||||
|
||||
preloadable_libiconv_linux.so : $(SOURCES)
|
||||
if test -n "@GCC@"; then \
|
||||
$(LIBTOOL_LINK) $(CC) $(LDFLAGS) $(INCLUDES) $(CFLAGS) $(CPPFLAGS) $(DEFS) -fPIC -DPIC -DLIBICONV_PLUG $(SOURCES) -shared -o preloadable_libiconv_linux.so; \
|
||||
else \
|
||||
$(LIBTOOL_LINK) $(CC) $(LDFLAGS) $(INCLUDES) $(CFLAGS) $(CPPFLAGS) $(DEFS) -KPIC -DPIC -DLIBICONV_PLUG $(SOURCES) -shared -o preloadable_libiconv_linux.so; \
|
||||
fi
|
||||
|
||||
preloadable_libiconv_solaris.so : $(SOURCES)
|
||||
if test -n "@GCC@"; then \
|
||||
$(LIBTOOL_LINK) $(CC) $(LDFLAGS) $(INCLUDES) $(CFLAGS) $(CPPFLAGS) $(DEFS) -fPIC -DPIC -DLIBICONV_PLUG $(SOURCES) -shared -o preloadable_libiconv_solaris.so; \
|
||||
else \
|
||||
$(LIBTOOL_LINK) $(CC) $(LDFLAGS) $(INCLUDES) $(CFLAGS) $(CPPFLAGS) $(DEFS) -KPIC -DPIC -DLIBICONV_PLUG $(SOURCES) -G -o preloadable_libiconv_solaris.so; \
|
||||
fi
|
||||
|
||||
preloadable_libiconv_osf.so : $(SOURCES)
|
||||
if test -n "@GCC@"; then \
|
||||
$(LIBTOOL_LINK) $(CC) $(LDFLAGS) $(INCLUDES) $(CFLAGS) $(CPPFLAGS) $(DEFS) -fPIC -DPIC -DLIBICONV_PLUG $(SOURCES) -shared -o preloadable_libiconv_osf.so; \
|
||||
else \
|
||||
mkdir objects; \
|
||||
for f in $(SOURCES); do \
|
||||
$(CC) $(INCLUDES) $(CFLAGS) $(CPPFLAGS) $(DEFS) -DPIC -DLIBICONV_PLUG -c $$f -o objects/`basename $$f | sed -e 's,\.c$$,.o,'`; \
|
||||
done; \
|
||||
/bin/ld -shared -expect_unresolved \* -o preloadable_libiconv_osf.so objects/*.o; \
|
||||
rm -rf objects; \
|
||||
fi
|
||||
|
||||
iconv.lo : $(srcdir)/iconv.c $(srcdir)/converters.h $(srcdir)/encodings.def $(srcdir)/encodings_aix.def $(srcdir)/encodings_osf1.def $(srcdir)/encodings_dos.def $(srcdir)/encodings_local.def $(srcdir)/aliases.h $(srcdir)/aliases_aix.h $(srcdir)/aliases_osf1.h $(srcdir)/aliases_dos.h $(srcdir)/flags.h
|
||||
$(LIBTOOL_COMPILE) $(CC) $(INCLUDES) $(CPPFLAGS) $(CFLAGS) $(DEFS) -c $(srcdir)/iconv.c
|
||||
|
||||
localcharset.lo : $(srcdir)/../libcharset/lib/localcharset.c $(srcdir)/relocatable.h
|
||||
$(LIBTOOL_COMPILE) $(CC) $(INCLUDES) $(CPPFLAGS) $(CFLAGS) $(DEFS) -c $(srcdir)/../libcharset/lib/localcharset.c
|
||||
|
||||
relocatable.lo : $(srcdir)/relocatable.c $(srcdir)/relocatable.h
|
||||
$(LIBTOOL_COMPILE) $(CC) $(INCLUDES) $(CPPFLAGS) $(CFLAGS) $(DEFS) -c $(srcdir)/relocatable.c
|
||||
|
||||
iconv-exports.lo : $(srcdir)/../woe32dll/iconv-exports.c
|
||||
$(LIBTOOL_COMPILE) $(CC) $(INCLUDES) $(CPPFLAGS) $(CFLAGS) $(DEFS) -c $(srcdir)/../woe32dll/iconv-exports.c
|
||||
|
||||
# Installs the library and include files only. Typically called with only
|
||||
# $(libdir) and $(includedir) - don't use $(prefix) and $(exec_prefix) here.
|
||||
install-lib : all force
|
||||
if [ ! -d $(libdir) ] ; then $(mkinstalldirs) $(libdir) ; fi
|
||||
$(LIBTOOL_INSTALL) $(INSTALL_DATA) libiconv.la $(libdir)/libiconv.la
|
||||
|
||||
install : all force
|
||||
if [ ! -d $(DESTDIR)$(prefix) ] ; then $(mkinstalldirs) $(DESTDIR)$(prefix) ; fi
|
||||
if [ ! -d $(DESTDIR)$(exec_prefix) ] ; then $(mkinstalldirs) $(DESTDIR)$(exec_prefix) ; fi
|
||||
if [ ! -d $(DESTDIR)$(libdir) ] ; then $(mkinstalldirs) $(DESTDIR)$(libdir) ; fi
|
||||
$(LIBTOOL_INSTALL) $(INSTALL_DATA) libiconv.la $(DESTDIR)$(libdir)/libiconv.la
|
||||
if test -n "@PLUGLIB@"; then $(INSTALL_DATA) @PLUGLIB@ $(DESTDIR)$(libdir)/@PLUGLIB@.new && mv $(DESTDIR)$(libdir)/@PLUGLIB@.new $(DESTDIR)$(libdir)/@PLUGLIB@ ; fi
|
||||
|
||||
installdirs : force
|
||||
if [ ! -d $(DESTDIR)$(prefix) ] ; then $(mkinstalldirs) $(DESTDIR)$(prefix) ; fi
|
||||
if [ ! -d $(DESTDIR)$(exec_prefix) ] ; then $(mkinstalldirs) $(DESTDIR)$(exec_prefix) ; fi
|
||||
if [ ! -d $(DESTDIR)$(libdir) ] ; then $(mkinstalldirs) $(DESTDIR)$(libdir) ; fi
|
||||
|
||||
uninstall : force
|
||||
$(LIBTOOL_UNINSTALL) $(RM) $(DESTDIR)$(libdir)/libiconv.la
|
||||
if test -n "@PLUGLIB@"; then $(RM) $(DESTDIR)$(libdir)/@PLUGLIB@ ; fi
|
||||
|
||||
check : all
|
||||
|
||||
mostlyclean : clean
|
||||
|
||||
clean : force
|
||||
$(RM) *.o *.lo *.a *.la preloadable_libiconv* core *.stackdump so_locations
|
||||
$(RM) -r .libs _libs
|
||||
|
||||
distclean : clean
|
||||
$(RM) Makefile config.h libtool
|
||||
|
||||
maintainer-clean : distclean
|
||||
|
||||
force :
|
||||
|
171
libiconv/lib/Makefile.msvc
Normal file
171
libiconv/lib/Makefile.msvc
Normal file
@ -0,0 +1,171 @@
|
||||
# -*- Makefile -*- for libiconv/lib
|
||||
|
||||
#### Start of system configuration section. ####
|
||||
|
||||
# Flags that can be set on the nmake command line:
|
||||
# DLL=1 for compiling a .dll with a stub .lib (default is a static .lib)
|
||||
# Note that this works only with MFLAGS=-MD.
|
||||
# MFLAGS={-ML|-MT|-MD} for defining the compilation model
|
||||
# MFLAGS=-ML (the default) Single-threaded, statically linked - libc.lib
|
||||
# MFLAGS=-MT Multi-threaded, statically linked - libcmt.lib
|
||||
# MFLAGS=-MD Multi-threaded, dynamically linked - msvcrt.lib
|
||||
# DEBUG=1 for compiling with debugging information
|
||||
# PREFIX=Some\Directory Base directory for installation
|
||||
# IIPREFIX=Some\\Directory Same thing with doubled backslashes
|
||||
!if !defined(DLL)
|
||||
DLL=0
|
||||
!endif
|
||||
!if !defined(DEBUG)
|
||||
DEBUG=0
|
||||
!endif
|
||||
!if !defined(MFLAGS)
|
||||
!if !$(DLL)
|
||||
MFLAGS=
|
||||
!else
|
||||
MFLAGS=-MD
|
||||
!endif
|
||||
!endif
|
||||
!if !defined(PREFIX)
|
||||
PREFIX = c:\usr
|
||||
!endif
|
||||
!if !defined(IIPREFIX)
|
||||
IIPREFIX = c:\\usr
|
||||
!endif
|
||||
|
||||
# Directories used by "make":
|
||||
srcdir = .
|
||||
|
||||
# Directories used by "make install":
|
||||
prefix = $(PREFIX)
|
||||
exec_prefix = $(prefix)
|
||||
bindir = $(exec_prefix)\bin
|
||||
libdir = $(exec_prefix)\lib
|
||||
IIprefix = $(IIPREFIX)
|
||||
IIexec_prefix = $(IIprefix)
|
||||
IIbindir = $(IIexec_prefix)\\bin
|
||||
IIlibdir = $(IIexec_prefix)\\lib
|
||||
|
||||
# Programs used by "make":
|
||||
|
||||
CC = cl
|
||||
|
||||
# Set to -W3 if you want to see maximum amount of warnings, including stupid
|
||||
# ones. Set to -W1 to avoid warnings about signed/unsigned combinations.
|
||||
WARN_CFLAGS = -W1
|
||||
|
||||
!if !$(DLL)
|
||||
PICFLAGS =
|
||||
!else
|
||||
# "-GD" (msvc5) optimizes for DLL.
|
||||
# mscv4 doesn't know about this flag and ignores it.
|
||||
# -DBUILDING_LIBICONV: Change expansion of LIBICONV_DLL_EXPORTED macro.
|
||||
# -DBUILDING_DLL: Change expansion of RELOCATABLE_DLL_EXPORTED macro.
|
||||
PICFLAGS = -GD -DBUILDING_LIBICONV -DBUILDING_DLL -DPIC
|
||||
!endif
|
||||
|
||||
!if $(DEBUG)
|
||||
OPTIMFLAGS = -Od -Z7
|
||||
DEBUGFLAGS = -Z7
|
||||
!else
|
||||
# Some people prefer -O2 -G6 instead of -O1, but -O2 is not reliable in MSVC5.
|
||||
OPTIMFLAGS = -D_NDEBUG -O1
|
||||
DEBUGFLAGS =
|
||||
!endif
|
||||
|
||||
CFLAGS = $(MFLAGS) $(WARN_CFLAGS) $(OPTIMFLAGS) -DHAVE_CONFIG_H -DENABLE_RELOCATABLE=1 -DIN_LIBRARY -DINSTALLPREFIX=\"$(IIprefix)\" -DINSTALLDIR=\"$(IIbindir)\" -DNO_XMALLOC -Dset_relocation_prefix=libiconv_set_relocation_prefix -Drelocate=libiconv_relocate
|
||||
|
||||
INCLUDES = -I. -I..\include
|
||||
|
||||
AR = lib
|
||||
AR_FLAGS = /out:
|
||||
|
||||
LN = copy
|
||||
RM = -del
|
||||
|
||||
# Programs used by "make install":
|
||||
INSTALL = copy
|
||||
INSTALL_PROGRAM = copy
|
||||
INSTALL_DATA = copy
|
||||
|
||||
#### End of system configuration section. ####
|
||||
|
||||
SHELL = /bin/sh
|
||||
|
||||
OBJECTS = iconv.obj localcharset.obj relocatable.obj
|
||||
|
||||
RESOURCES = iconv.res
|
||||
|
||||
all : iconv.lib
|
||||
|
||||
config.h : config.h.msvc
|
||||
-$(RM) config.h
|
||||
$(LN) config.h.msvc config.h
|
||||
|
||||
iconv.obj : $(srcdir)/iconv.c $(srcdir)/encodings.def $(srcdir)/encodings_local.def $(srcdir)/aliases.h config.h
|
||||
$(CC) $(INCLUDES) $(CFLAGS) $(PICFLAGS) -c $(srcdir)/iconv.c
|
||||
|
||||
localcharset.obj : $(srcdir)/../libcharset/lib/localcharset.c $(srcdir)/relocatable.h config.h
|
||||
$(CC) $(INCLUDES) $(CFLAGS) $(PICFLAGS) -c $(srcdir)/../libcharset/lib/localcharset.c
|
||||
|
||||
relocatable.obj : $(srcdir)/relocatable.c $(srcdir)/relocatable.h config.h
|
||||
$(CC) $(INCLUDES) $(CFLAGS) $(PICFLAGS) -c $(srcdir)/relocatable.c
|
||||
|
||||
!if !$(DLL)
|
||||
|
||||
iconv.lib : $(OBJECTS)
|
||||
-$(RM) iconv.lib
|
||||
$(AR) $(AR_FLAGS)iconv.lib $(OBJECTS)
|
||||
|
||||
!else
|
||||
|
||||
# iconv.dll and iconv.lib are created together.
|
||||
iconv.lib : $(OBJECTS) $(RESOURCES)
|
||||
$(CC) $(MFLAGS) $(DEBUGFLAGS) -LD $(OBJECTS) $(RESOURCES) -Feiconv.dll
|
||||
|
||||
iconv.res : $(srcdir)/../windows/iconv.rc
|
||||
rc -Fo iconv.res $(srcdir)/../windows/iconv.rc
|
||||
|
||||
!endif
|
||||
|
||||
install : all force
|
||||
-mkdir $(prefix)
|
||||
-mkdir $(exec_prefix)
|
||||
!if $(DLL)
|
||||
-mkdir $(bindir)
|
||||
$(INSTALL_DATA) iconv.dll $(bindir)\iconv.dll
|
||||
!endif
|
||||
-mkdir $(libdir)
|
||||
$(INSTALL_DATA) iconv.lib $(libdir)\iconv.lib
|
||||
|
||||
installdirs : force
|
||||
-mkdir $(prefix)
|
||||
-mkdir $(exec_prefix)
|
||||
!if $(DLL)
|
||||
-mkdir $(bindir)
|
||||
!endif
|
||||
-mkdir $(libdir)
|
||||
|
||||
uninstall : force
|
||||
!if $(DLL)
|
||||
$(RM) $(bindir)\iconv.dll
|
||||
!endif
|
||||
$(RM) $(libdir)\iconv.lib
|
||||
|
||||
check : all
|
||||
|
||||
mostlyclean : clean
|
||||
|
||||
clean : force
|
||||
$(RM) config.h
|
||||
$(RM) *.obj
|
||||
$(RM) *.lib
|
||||
$(RM) *.exp
|
||||
$(RM) *.dll
|
||||
$(RM) iconv.res
|
||||
|
||||
distclean : clean
|
||||
|
||||
maintainer-clean : distclean
|
||||
|
||||
force :
|
||||
|
77
libiconv/lib/Makefile.os2
Normal file
77
libiconv/lib/Makefile.os2
Normal file
@ -0,0 +1,77 @@
|
||||
# Makefile for libiconv/lib, OS2/EMX specific
|
||||
#
|
||||
# requires EMX/GCC development environment and
|
||||
# GNU fileutils and GNU textutils installed
|
||||
#
|
||||
# define EMXPATH=<your EMX path> on install/uninstall
|
||||
#
|
||||
|
||||
#### Start of system configuration section. ####
|
||||
|
||||
# Directories used by "make install":
|
||||
prefix = @prefix@
|
||||
exec_prefix = $(prefix)
|
||||
libdir = $(exec_prefix)/lib
|
||||
shlibdir = $(exec_prefix)/dll
|
||||
|
||||
# Programs used by "make":
|
||||
CC = gcc
|
||||
CFLAGS = -O2 -Zomf -Zcrtdll -Zmt
|
||||
INCLUDES = -I. -I../include
|
||||
|
||||
#### End of system configuration section. ####
|
||||
|
||||
.SUFFIXES: .obj .o
|
||||
|
||||
SOURCES = iconv.c
|
||||
|
||||
OBJECTS = iconv.obj
|
||||
|
||||
all : iconv.dll iconv.a iconv.lib
|
||||
|
||||
config.h : force
|
||||
sed -e 's/#undef WORDS_LITTLEENDIAN$$/#define WORDS_LITTLEENDIAN 1/' < config.h.in > config.h
|
||||
|
||||
iconv.obj : iconv.c encodings.def encodings_local.def aliases.h config.h
|
||||
$(CC) $(INCLUDES) $(CFLAGS) -c iconv.c
|
||||
|
||||
iconv.dll : $(OBJECTS) ../os2/iconv.def # DLL itself
|
||||
$(CC) -Zdll $(CFLAGS) -o $@ $(OBJECTS) ../os2/iconv.def
|
||||
|
||||
iconv.lib : ../os2/iconv.def # Import Lib. for -Zomf
|
||||
rm -f iconv.lib
|
||||
emximp -o iconv.lib ../os2/iconv.def
|
||||
|
||||
iconv.a : ../os2/iconv.def # Import Lib. for EMX .o format
|
||||
rm -f iconv.a
|
||||
emximp -o iconv.a ../os2/iconv.def
|
||||
|
||||
# Installs the library and include files only. Typically called with only
|
||||
# $(libdir), $(shlibdir) and $(includedir) - don't use $(prefix) and
|
||||
# $(exec_prefix) here.
|
||||
install-lib : all force
|
||||
cp -i iconv.dll $(shlibdir)/iconv.dll
|
||||
cp -i iconv.lib $(libdir)/iconv.lib
|
||||
cp -i iconv.a $(libdir)/iconv.a
|
||||
|
||||
install : all force
|
||||
cp -i iconv.dll $(shlibdir)/iconv.dll
|
||||
cp -i iconv.lib $(libdir)/iconv.lib
|
||||
cp -i iconv.a $(libdir)/iconv.a
|
||||
|
||||
uninstall : force
|
||||
rm -f $(shlibdir)/iconv.dll
|
||||
rm -f $(libdir)/iconv.lib
|
||||
rm -f $(libdir)/iconv.a
|
||||
|
||||
check : all
|
||||
|
||||
clean : force
|
||||
rm -f *.obj *.lib *.a *.dll core
|
||||
|
||||
distclean : clean
|
||||
rm -f config.h
|
||||
|
||||
maintainer-clean : distclean
|
||||
|
||||
force :
|
91
libiconv/lib/Makefile.vms
Normal file
91
libiconv/lib/Makefile.vms
Normal file
@ -0,0 +1,91 @@
|
||||
# -*- Makefile -*- for libiconv/lib on VMS using the MMS utility
|
||||
|
||||
#### Start of system configuration section. ####
|
||||
|
||||
# Directories used by "make install":
|
||||
prefix = SYS$DATA:[
|
||||
exec_prefix = $(prefix)
|
||||
bindir = $(exec_prefix).bin
|
||||
libdir = $(exec_prefix).lib
|
||||
|
||||
# Programs used by "make":
|
||||
|
||||
CC = cc
|
||||
|
||||
# These flags affect binary compatibility. GNU gettext does not need them,
|
||||
# but other packages do, and we need to be binary compatible with them.
|
||||
ABIFLAGS = /name=(as_is,short) /float=ieee
|
||||
|
||||
WARN_CFLAGS = /warning
|
||||
|
||||
OPTIMFLAGS = /optimize
|
||||
|
||||
CFLAGS = $(ABIFLAGS) $(WARN_CFLAGS) $(OPTIMFLAGS)
|
||||
DEFS = "VMS=1","HAVE_CONFIG_H=1","ENABLE_RELOCATABLE=1","IN_LIBRARY=1","INSTALLPREFIX=""$(prefix)]""","INSTALLDIR=""$(bindir)]""","NO_XMALLOC=1","set_relocation_prefix=libiconv_set_relocation_prefix","relocate=libiconv_relocate"
|
||||
|
||||
INCLUDES = /include=([],[-.include])
|
||||
|
||||
AR = library
|
||||
AR_FLAGS = /create
|
||||
|
||||
LN = copy
|
||||
RM = delete
|
||||
|
||||
# Programs used by "make install":
|
||||
INSTALL = copy
|
||||
INSTALL_PROGRAM = copy
|
||||
INSTALL_DATA = copy
|
||||
|
||||
#### End of system configuration section. ####
|
||||
|
||||
OBJECTS = libiconv.obj,localcharset.obj,relocatable.obj
|
||||
|
||||
all : iconv.olb
|
||||
write sys$output "Nothing else to be done for 'all'."
|
||||
|
||||
config.h : config.h_vms
|
||||
$(LN) config.h_vms config.h
|
||||
|
||||
libiconv.obj : iconv.c,encodings.def,encodings_local.def,aliases.h,config.h
|
||||
$(CC) $(INCLUDES) $(CFLAGS) /define=($(DEFS)) /obj=libiconv.obj iconv.c
|
||||
|
||||
localcharset.obj : [-.libcharset.lib]localcharset.c,relocatable.h,config.h
|
||||
$(CC) $(INCLUDES) $(CFLAGS) /define=($(DEFS)) [-.libcharset.lib]localcharset.c
|
||||
|
||||
relocatable.obj : relocatable.c,relocatable.h,config.h
|
||||
$(CC) $(INCLUDES) $(CFLAGS) /define=($(DEFS)) relocatable.c
|
||||
|
||||
iconv.olb : $(OBJECTS)
|
||||
$(AR) $(AR_FLAGS) iconv.olb $(OBJECTS)
|
||||
|
||||
install : all
|
||||
create /directory $(prefix)]
|
||||
create /directory $(exec_prefix)]
|
||||
create /directory $(libdir)]
|
||||
$(INSTALL_DATA) iconv.olb $(libdir)]iconv.olb
|
||||
|
||||
installdirs :
|
||||
create /directory $(prefix)]
|
||||
create /directory $(exec_prefix)]
|
||||
create /directory $(libdir)]
|
||||
|
||||
uninstall :
|
||||
$(RM) $(libdir)]iconv.olb
|
||||
|
||||
check : all
|
||||
write sys$output "Nothing else to be done for 'check'."
|
||||
|
||||
mostlyclean : clean
|
||||
write sys$output "Nothing else to be done for 'mostlyclean'."
|
||||
|
||||
clean :
|
||||
$(RM) config.h;*
|
||||
$(RM) *.obj;*
|
||||
$(RM) *.olb;*
|
||||
|
||||
distclean : clean
|
||||
write sys$output "Nothing else to be done for 'distclean'."
|
||||
|
||||
maintainer-clean : distclean
|
||||
write sys$output "Nothing else to be done for 'maintainer-clean'."
|
||||
|
355
libiconv/lib/aliases.gperf
Normal file
355
libiconv/lib/aliases.gperf
Normal file
@ -0,0 +1,355 @@
|
||||
struct alias { int name; unsigned int encoding_index; };
|
||||
%struct-type
|
||||
%language=ANSI-C
|
||||
%define hash-function-name aliases_hash
|
||||
%define lookup-function-name aliases_lookup
|
||||
%7bit
|
||||
%readonly-tables
|
||||
%global-table
|
||||
%define word-array-name aliases
|
||||
%pic
|
||||
%%
|
||||
US-ASCII, ei_ascii
|
||||
ASCII, ei_ascii
|
||||
ISO646-US, ei_ascii
|
||||
ISO_646.IRV:1991, ei_ascii
|
||||
ISO-IR-6, ei_ascii
|
||||
ANSI_X3.4-1968, ei_ascii
|
||||
ANSI_X3.4-1986, ei_ascii
|
||||
CP367, ei_ascii
|
||||
IBM367, ei_ascii
|
||||
US, ei_ascii
|
||||
CSASCII, ei_ascii
|
||||
UTF-8, ei_utf8
|
||||
UTF8, ei_utf8
|
||||
UTF-8-MAC, ei_utf8mac
|
||||
UTF8-MAC, ei_utf8mac
|
||||
UCS-2, ei_ucs2
|
||||
ISO-10646-UCS-2, ei_ucs2
|
||||
CSUNICODE, ei_ucs2
|
||||
UCS-2BE, ei_ucs2be
|
||||
UNICODEBIG, ei_ucs2be
|
||||
UNICODE-1-1, ei_ucs2be
|
||||
CSUNICODE11, ei_ucs2be
|
||||
UCS-2LE, ei_ucs2le
|
||||
UNICODELITTLE, ei_ucs2le
|
||||
UCS-4, ei_ucs4
|
||||
ISO-10646-UCS-4, ei_ucs4
|
||||
CSUCS4, ei_ucs4
|
||||
UCS-4BE, ei_ucs4be
|
||||
UCS-4LE, ei_ucs4le
|
||||
UTF-16, ei_utf16
|
||||
UTF-16BE, ei_utf16be
|
||||
UTF-16LE, ei_utf16le
|
||||
UTF-32, ei_utf32
|
||||
UTF-32BE, ei_utf32be
|
||||
UTF-32LE, ei_utf32le
|
||||
UTF-7, ei_utf7
|
||||
UNICODE-1-1-UTF-7, ei_utf7
|
||||
CSUNICODE11UTF7, ei_utf7
|
||||
UCS-2-INTERNAL, ei_ucs2internal
|
||||
UCS-2-SWAPPED, ei_ucs2swapped
|
||||
UCS-4-INTERNAL, ei_ucs4internal
|
||||
UCS-4-SWAPPED, ei_ucs4swapped
|
||||
C99, ei_c99
|
||||
JAVA, ei_java
|
||||
ISO-8859-1, ei_iso8859_1
|
||||
ISO_8859-1, ei_iso8859_1
|
||||
ISO_8859-1:1987, ei_iso8859_1
|
||||
ISO-IR-100, ei_iso8859_1
|
||||
CP819, ei_iso8859_1
|
||||
IBM819, ei_iso8859_1
|
||||
LATIN1, ei_iso8859_1
|
||||
L1, ei_iso8859_1
|
||||
CSISOLATIN1, ei_iso8859_1
|
||||
ISO8859-1, ei_iso8859_1
|
||||
ISO-8859-2, ei_iso8859_2
|
||||
ISO_8859-2, ei_iso8859_2
|
||||
ISO_8859-2:1987, ei_iso8859_2
|
||||
ISO-IR-101, ei_iso8859_2
|
||||
LATIN2, ei_iso8859_2
|
||||
L2, ei_iso8859_2
|
||||
CSISOLATIN2, ei_iso8859_2
|
||||
ISO8859-2, ei_iso8859_2
|
||||
ISO-8859-3, ei_iso8859_3
|
||||
ISO_8859-3, ei_iso8859_3
|
||||
ISO_8859-3:1988, ei_iso8859_3
|
||||
ISO-IR-109, ei_iso8859_3
|
||||
LATIN3, ei_iso8859_3
|
||||
L3, ei_iso8859_3
|
||||
CSISOLATIN3, ei_iso8859_3
|
||||
ISO8859-3, ei_iso8859_3
|
||||
ISO-8859-4, ei_iso8859_4
|
||||
ISO_8859-4, ei_iso8859_4
|
||||
ISO_8859-4:1988, ei_iso8859_4
|
||||
ISO-IR-110, ei_iso8859_4
|
||||
LATIN4, ei_iso8859_4
|
||||
L4, ei_iso8859_4
|
||||
CSISOLATIN4, ei_iso8859_4
|
||||
ISO8859-4, ei_iso8859_4
|
||||
ISO-8859-5, ei_iso8859_5
|
||||
ISO_8859-5, ei_iso8859_5
|
||||
ISO_8859-5:1988, ei_iso8859_5
|
||||
ISO-IR-144, ei_iso8859_5
|
||||
CYRILLIC, ei_iso8859_5
|
||||
CSISOLATINCYRILLIC, ei_iso8859_5
|
||||
ISO8859-5, ei_iso8859_5
|
||||
ISO-8859-6, ei_iso8859_6
|
||||
ISO_8859-6, ei_iso8859_6
|
||||
ISO_8859-6:1987, ei_iso8859_6
|
||||
ISO-IR-127, ei_iso8859_6
|
||||
ECMA-114, ei_iso8859_6
|
||||
ASMO-708, ei_iso8859_6
|
||||
ARABIC, ei_iso8859_6
|
||||
CSISOLATINARABIC, ei_iso8859_6
|
||||
ISO8859-6, ei_iso8859_6
|
||||
ISO-8859-7, ei_iso8859_7
|
||||
ISO_8859-7, ei_iso8859_7
|
||||
ISO_8859-7:1987, ei_iso8859_7
|
||||
ISO_8859-7:2003, ei_iso8859_7
|
||||
ISO-IR-126, ei_iso8859_7
|
||||
ECMA-118, ei_iso8859_7
|
||||
ELOT_928, ei_iso8859_7
|
||||
GREEK8, ei_iso8859_7
|
||||
GREEK, ei_iso8859_7
|
||||
CSISOLATINGREEK, ei_iso8859_7
|
||||
ISO8859-7, ei_iso8859_7
|
||||
ISO-8859-8, ei_iso8859_8
|
||||
ISO_8859-8, ei_iso8859_8
|
||||
ISO_8859-8:1988, ei_iso8859_8
|
||||
ISO-IR-138, ei_iso8859_8
|
||||
HEBREW, ei_iso8859_8
|
||||
CSISOLATINHEBREW, ei_iso8859_8
|
||||
ISO8859-8, ei_iso8859_8
|
||||
ISO-8859-9, ei_iso8859_9
|
||||
ISO_8859-9, ei_iso8859_9
|
||||
ISO_8859-9:1989, ei_iso8859_9
|
||||
ISO-IR-148, ei_iso8859_9
|
||||
LATIN5, ei_iso8859_9
|
||||
L5, ei_iso8859_9
|
||||
CSISOLATIN5, ei_iso8859_9
|
||||
ISO8859-9, ei_iso8859_9
|
||||
ISO-8859-10, ei_iso8859_10
|
||||
ISO_8859-10, ei_iso8859_10
|
||||
ISO_8859-10:1992, ei_iso8859_10
|
||||
ISO-IR-157, ei_iso8859_10
|
||||
LATIN6, ei_iso8859_10
|
||||
L6, ei_iso8859_10
|
||||
CSISOLATIN6, ei_iso8859_10
|
||||
ISO8859-10, ei_iso8859_10
|
||||
ISO-8859-11, ei_iso8859_11
|
||||
ISO_8859-11, ei_iso8859_11
|
||||
ISO8859-11, ei_iso8859_11
|
||||
ISO-8859-13, ei_iso8859_13
|
||||
ISO_8859-13, ei_iso8859_13
|
||||
ISO-IR-179, ei_iso8859_13
|
||||
LATIN7, ei_iso8859_13
|
||||
L7, ei_iso8859_13
|
||||
ISO8859-13, ei_iso8859_13
|
||||
ISO-8859-14, ei_iso8859_14
|
||||
ISO_8859-14, ei_iso8859_14
|
||||
ISO_8859-14:1998, ei_iso8859_14
|
||||
ISO-IR-199, ei_iso8859_14
|
||||
LATIN8, ei_iso8859_14
|
||||
L8, ei_iso8859_14
|
||||
ISO-CELTIC, ei_iso8859_14
|
||||
ISO8859-14, ei_iso8859_14
|
||||
ISO-8859-15, ei_iso8859_15
|
||||
ISO_8859-15, ei_iso8859_15
|
||||
ISO_8859-15:1998, ei_iso8859_15
|
||||
ISO-IR-203, ei_iso8859_15
|
||||
LATIN-9, ei_iso8859_15
|
||||
ISO8859-15, ei_iso8859_15
|
||||
ISO-8859-16, ei_iso8859_16
|
||||
ISO_8859-16, ei_iso8859_16
|
||||
ISO_8859-16:2001, ei_iso8859_16
|
||||
ISO-IR-226, ei_iso8859_16
|
||||
LATIN10, ei_iso8859_16
|
||||
L10, ei_iso8859_16
|
||||
ISO8859-16, ei_iso8859_16
|
||||
KOI8-R, ei_koi8_r
|
||||
CSKOI8R, ei_koi8_r
|
||||
KOI8-U, ei_koi8_u
|
||||
KOI8-RU, ei_koi8_ru
|
||||
CP1250, ei_cp1250
|
||||
WINDOWS-1250, ei_cp1250
|
||||
MS-EE, ei_cp1250
|
||||
CP1251, ei_cp1251
|
||||
WINDOWS-1251, ei_cp1251
|
||||
MS-CYRL, ei_cp1251
|
||||
CP1252, ei_cp1252
|
||||
WINDOWS-1252, ei_cp1252
|
||||
MS-ANSI, ei_cp1252
|
||||
CP1253, ei_cp1253
|
||||
WINDOWS-1253, ei_cp1253
|
||||
MS-GREEK, ei_cp1253
|
||||
CP1254, ei_cp1254
|
||||
WINDOWS-1254, ei_cp1254
|
||||
MS-TURK, ei_cp1254
|
||||
CP1255, ei_cp1255
|
||||
WINDOWS-1255, ei_cp1255
|
||||
MS-HEBR, ei_cp1255
|
||||
CP1256, ei_cp1256
|
||||
WINDOWS-1256, ei_cp1256
|
||||
MS-ARAB, ei_cp1256
|
||||
CP1257, ei_cp1257
|
||||
WINDOWS-1257, ei_cp1257
|
||||
WINBALTRIM, ei_cp1257
|
||||
CP1258, ei_cp1258
|
||||
WINDOWS-1258, ei_cp1258
|
||||
CP850, ei_cp850
|
||||
IBM850, ei_cp850
|
||||
850, ei_cp850
|
||||
CSPC850MULTILINGUAL, ei_cp850
|
||||
CP862, ei_cp862
|
||||
IBM862, ei_cp862
|
||||
862, ei_cp862
|
||||
CSPC862LATINHEBREW, ei_cp862
|
||||
CP866, ei_cp866
|
||||
IBM866, ei_cp866
|
||||
866, ei_cp866
|
||||
CSIBM866, ei_cp866
|
||||
MACROMAN, ei_mac_roman
|
||||
MACINTOSH, ei_mac_roman
|
||||
MAC, ei_mac_roman
|
||||
CSMACINTOSH, ei_mac_roman
|
||||
MACCENTRALEUROPE, ei_mac_centraleurope
|
||||
MACICELAND, ei_mac_iceland
|
||||
MACCROATIAN, ei_mac_croatian
|
||||
MACROMANIA, ei_mac_romania
|
||||
MACCYRILLIC, ei_mac_cyrillic
|
||||
MACUKRAINE, ei_mac_ukraine
|
||||
MACGREEK, ei_mac_greek
|
||||
MACTURKISH, ei_mac_turkish
|
||||
MACHEBREW, ei_mac_hebrew
|
||||
MACARABIC, ei_mac_arabic
|
||||
MACTHAI, ei_mac_thai
|
||||
HP-ROMAN8, ei_hp_roman8
|
||||
ROMAN8, ei_hp_roman8
|
||||
R8, ei_hp_roman8
|
||||
CSHPROMAN8, ei_hp_roman8
|
||||
NEXTSTEP, ei_nextstep
|
||||
ARMSCII-8, ei_armscii_8
|
||||
GEORGIAN-ACADEMY, ei_georgian_academy
|
||||
GEORGIAN-PS, ei_georgian_ps
|
||||
KOI8-T, ei_koi8_t
|
||||
PT154, ei_pt154
|
||||
PTCP154, ei_pt154
|
||||
CP154, ei_pt154
|
||||
CYRILLIC-ASIAN, ei_pt154
|
||||
CSPTCP154, ei_pt154
|
||||
MULELAO-1, ei_mulelao
|
||||
CP1133, ei_cp1133
|
||||
IBM-CP1133, ei_cp1133
|
||||
TIS-620, ei_tis620
|
||||
TIS620, ei_tis620
|
||||
TIS620-0, ei_tis620
|
||||
TIS620.2529-1, ei_tis620
|
||||
TIS620.2533-0, ei_tis620
|
||||
TIS620.2533-1, ei_tis620
|
||||
ISO-IR-166, ei_tis620
|
||||
CP874, ei_cp874
|
||||
WINDOWS-874, ei_cp874
|
||||
VISCII, ei_viscii
|
||||
VISCII1.1-1, ei_viscii
|
||||
CSVISCII, ei_viscii
|
||||
TCVN, ei_tcvn
|
||||
TCVN-5712, ei_tcvn
|
||||
TCVN5712-1, ei_tcvn
|
||||
TCVN5712-1:1993, ei_tcvn
|
||||
JIS_C6220-1969-RO, ei_iso646_jp
|
||||
ISO646-JP, ei_iso646_jp
|
||||
ISO-IR-14, ei_iso646_jp
|
||||
JP, ei_iso646_jp
|
||||
CSISO14JISC6220RO, ei_iso646_jp
|
||||
JIS_X0201, ei_jisx0201
|
||||
JISX0201-1976, ei_jisx0201
|
||||
X0201, ei_jisx0201
|
||||
CSHALFWIDTHKATAKANA, ei_jisx0201
|
||||
JIS_X0208, ei_jisx0208
|
||||
JIS_X0208-1983, ei_jisx0208
|
||||
JIS_X0208-1990, ei_jisx0208
|
||||
JIS0208, ei_jisx0208
|
||||
X0208, ei_jisx0208
|
||||
ISO-IR-87, ei_jisx0208
|
||||
JIS_C6226-1983, ei_jisx0208
|
||||
CSISO87JISX0208, ei_jisx0208
|
||||
JIS_X0212, ei_jisx0212
|
||||
JIS_X0212.1990-0, ei_jisx0212
|
||||
JIS_X0212-1990, ei_jisx0212
|
||||
X0212, ei_jisx0212
|
||||
ISO-IR-159, ei_jisx0212
|
||||
CSISO159JISX02121990, ei_jisx0212
|
||||
GB_1988-80, ei_iso646_cn
|
||||
ISO646-CN, ei_iso646_cn
|
||||
ISO-IR-57, ei_iso646_cn
|
||||
CN, ei_iso646_cn
|
||||
CSISO57GB1988, ei_iso646_cn
|
||||
GB_2312-80, ei_gb2312
|
||||
ISO-IR-58, ei_gb2312
|
||||
CSISO58GB231280, ei_gb2312
|
||||
CHINESE, ei_gb2312
|
||||
ISO-IR-165, ei_isoir165
|
||||
CN-GB-ISOIR165, ei_isoir165
|
||||
KSC_5601, ei_ksc5601
|
||||
KS_C_5601-1987, ei_ksc5601
|
||||
KS_C_5601-1989, ei_ksc5601
|
||||
ISO-IR-149, ei_ksc5601
|
||||
CSKSC56011987, ei_ksc5601
|
||||
KOREAN, ei_ksc5601
|
||||
EUC-JP, ei_euc_jp
|
||||
EUCJP, ei_euc_jp
|
||||
EXTENDED_UNIX_CODE_PACKED_FORMAT_FOR_JAPANESE, ei_euc_jp
|
||||
CSEUCPKDFMTJAPANESE, ei_euc_jp
|
||||
SHIFT_JIS, ei_sjis
|
||||
SHIFT-JIS, ei_sjis
|
||||
SJIS, ei_sjis
|
||||
MS_KANJI, ei_sjis
|
||||
CSSHIFTJIS, ei_sjis
|
||||
CP932, ei_cp932
|
||||
ISO-2022-JP, ei_iso2022_jp
|
||||
CSISO2022JP, ei_iso2022_jp
|
||||
ISO-2022-JP-1, ei_iso2022_jp1
|
||||
ISO-2022-JP-2, ei_iso2022_jp2
|
||||
CSISO2022JP2, ei_iso2022_jp2
|
||||
EUC-CN, ei_euc_cn
|
||||
EUCCN, ei_euc_cn
|
||||
GB2312, ei_euc_cn
|
||||
CN-GB, ei_euc_cn
|
||||
CSGB2312, ei_euc_cn
|
||||
GBK, ei_ces_gbk
|
||||
CP936, ei_cp936
|
||||
MS936, ei_cp936
|
||||
WINDOWS-936, ei_cp936
|
||||
GB18030, ei_gb18030
|
||||
ISO-2022-CN, ei_iso2022_cn
|
||||
CSISO2022CN, ei_iso2022_cn
|
||||
ISO-2022-CN-EXT, ei_iso2022_cn_ext
|
||||
HZ, ei_hz
|
||||
HZ-GB-2312, ei_hz
|
||||
EUC-TW, ei_euc_tw
|
||||
EUCTW, ei_euc_tw
|
||||
CSEUCTW, ei_euc_tw
|
||||
BIG5, ei_ces_big5
|
||||
BIG-5, ei_ces_big5
|
||||
BIG-FIVE, ei_ces_big5
|
||||
BIGFIVE, ei_ces_big5
|
||||
CN-BIG5, ei_ces_big5
|
||||
CSBIG5, ei_ces_big5
|
||||
CP950, ei_cp950
|
||||
BIG5-HKSCS:1999, ei_big5hkscs1999
|
||||
BIG5-HKSCS:2001, ei_big5hkscs2001
|
||||
BIG5-HKSCS, ei_big5hkscs2004
|
||||
BIG5HKSCS, ei_big5hkscs2004
|
||||
BIG5-HKSCS:2004, ei_big5hkscs2004
|
||||
EUC-KR, ei_euc_kr
|
||||
EUCKR, ei_euc_kr
|
||||
CSEUCKR, ei_euc_kr
|
||||
CP949, ei_cp949
|
||||
UHC, ei_cp949
|
||||
JOHAB, ei_johab
|
||||
CP1361, ei_johab
|
||||
ISO-2022-KR, ei_iso2022_kr
|
||||
CSISO2022KR, ei_iso2022_kr
|
||||
CHAR, ei_local_char
|
||||
WCHAR_T, ei_local_wchar_t
|
1722
libiconv/lib/aliases.h
Normal file
1722
libiconv/lib/aliases.h
Normal file
File diff suppressed because it is too large
Load Diff
32
libiconv/lib/aliases2.h
Normal file
32
libiconv/lib/aliases2.h
Normal file
@ -0,0 +1,32 @@
|
||||
/*
|
||||
* Copyright (C) 1999-2003 Free Software Foundation, Inc.
|
||||
* This file is part of the GNU LIBICONV Library.
|
||||
*
|
||||
* The GNU LIBICONV Library is free software; you can redistribute it
|
||||
* and/or modify it under the terms of the GNU Library General Public
|
||||
* License as published by the Free Software Foundation; either version 2
|
||||
* of the License, or (at your option) any later version.
|
||||
*
|
||||
* The GNU LIBICONV Library is distributed in the hope that it will be
|
||||
* useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* Library General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Library General Public
|
||||
* License along with the GNU LIBICONV Library; see the file COPYING.LIB.
|
||||
* If not, write to the Free Software Foundation, Inc., 51 Franklin Street,
|
||||
* Fifth Floor, Boston, MA 02110-1301, USA.
|
||||
*/
|
||||
|
||||
#ifdef USE_AIX
|
||||
#include "aliases_aix.h"
|
||||
#endif
|
||||
#ifdef USE_OSF1
|
||||
#include "aliases_osf1.h"
|
||||
#endif
|
||||
#ifdef USE_DOS
|
||||
#include "aliases_dos.h"
|
||||
#endif
|
||||
#ifdef USE_EXTRA
|
||||
#include "aliases_extra.h"
|
||||
#endif
|
18
libiconv/lib/aliases_aix.h
Normal file
18
libiconv/lib/aliases_aix.h
Normal file
@ -0,0 +1,18 @@
|
||||
S(aix_0, "CP856", ei_cp856 )
|
||||
S(aix_1, "CP922", ei_cp922 )
|
||||
S(aix_2, "CP943", ei_cp943 )
|
||||
S(aix_3, "CP1046", ei_cp1046 )
|
||||
S(aix_4, "CP1124", ei_cp1124 )
|
||||
S(aix_5, "CP1129", ei_cp1129 )
|
||||
S(aix_6, "CP1161", ei_cp1161 )
|
||||
S(aix_7, "IBM1161", ei_cp1161 )
|
||||
S(aix_8, "IBM-1161", ei_cp1161 )
|
||||
S(aix_9, "CSIBM1161", ei_cp1161 )
|
||||
S(aix_10, "CP1162", ei_cp1162 )
|
||||
S(aix_11, "IBM1162", ei_cp1162 )
|
||||
S(aix_12, "IBM-1162", ei_cp1162 )
|
||||
S(aix_13, "CSIBM1162", ei_cp1162 )
|
||||
S(aix_14, "CP1163", ei_cp1163 )
|
||||
S(aix_15, "IBM1163", ei_cp1163 )
|
||||
S(aix_16, "IBM-1163", ei_cp1163 )
|
||||
S(aix_17, "CSIBM1163", ei_cp1163 )
|
48
libiconv/lib/aliases_dos.h
Normal file
48
libiconv/lib/aliases_dos.h
Normal file
@ -0,0 +1,48 @@
|
||||
S(dos_0, "CP437", ei_cp437 )
|
||||
S(dos_1, "IBM437", ei_cp437 )
|
||||
S(dos_2, "437", ei_cp437 )
|
||||
S(dos_3, "CSPC8CODEPAGE437", ei_cp437 )
|
||||
S(dos_4, "CP737", ei_cp737 )
|
||||
S(dos_5, "CP775", ei_cp775 )
|
||||
S(dos_6, "IBM775", ei_cp775 )
|
||||
S(dos_7, "CSPC775BALTIC", ei_cp775 )
|
||||
S(dos_8, "CP852", ei_cp852 )
|
||||
S(dos_9, "IBM852", ei_cp852 )
|
||||
S(dos_10, "852", ei_cp852 )
|
||||
S(dos_11, "CSPCP852", ei_cp852 )
|
||||
S(dos_12, "CP853", ei_cp853 )
|
||||
S(dos_13, "CP855", ei_cp855 )
|
||||
S(dos_14, "IBM855", ei_cp855 )
|
||||
S(dos_15, "855", ei_cp855 )
|
||||
S(dos_16, "CSIBM855", ei_cp855 )
|
||||
S(dos_17, "CP857", ei_cp857 )
|
||||
S(dos_18, "IBM857", ei_cp857 )
|
||||
S(dos_19, "857", ei_cp857 )
|
||||
S(dos_20, "CSIBM857", ei_cp857 )
|
||||
S(dos_21, "CP858", ei_cp858 )
|
||||
S(dos_22, "CP860", ei_cp860 )
|
||||
S(dos_23, "IBM860", ei_cp860 )
|
||||
S(dos_24, "860", ei_cp860 )
|
||||
S(dos_25, "CSIBM860", ei_cp860 )
|
||||
S(dos_26, "CP861", ei_cp861 )
|
||||
S(dos_27, "IBM861", ei_cp861 )
|
||||
S(dos_28, "861", ei_cp861 )
|
||||
S(dos_29, "CP-IS", ei_cp861 )
|
||||
S(dos_30, "CSIBM861", ei_cp861 )
|
||||
S(dos_31, "CP863", ei_cp863 )
|
||||
S(dos_32, "IBM863", ei_cp863 )
|
||||
S(dos_33, "863", ei_cp863 )
|
||||
S(dos_34, "CSIBM863", ei_cp863 )
|
||||
S(dos_35, "CP864", ei_cp864 )
|
||||
S(dos_36, "IBM864", ei_cp864 )
|
||||
S(dos_37, "CSIBM864", ei_cp864 )
|
||||
S(dos_38, "CP865", ei_cp865 )
|
||||
S(dos_39, "IBM865", ei_cp865 )
|
||||
S(dos_40, "865", ei_cp865 )
|
||||
S(dos_41, "CSIBM865", ei_cp865 )
|
||||
S(dos_42, "CP869", ei_cp869 )
|
||||
S(dos_43, "IBM869", ei_cp869 )
|
||||
S(dos_44, "869", ei_cp869 )
|
||||
S(dos_45, "CP-GR", ei_cp869 )
|
||||
S(dos_46, "CSIBM869", ei_cp869 )
|
||||
S(dos_47, "CP1125", ei_cp1125 )
|
9
libiconv/lib/aliases_extra.h
Normal file
9
libiconv/lib/aliases_extra.h
Normal file
@ -0,0 +1,9 @@
|
||||
S(extra_0, "EUC-JISX0213", ei_euc_jisx0213 )
|
||||
S(extra_1, "SHIFT_JISX0213", ei_shift_jisx0213 )
|
||||
S(extra_2, "ISO-2022-JP-3", ei_iso2022_jp3 )
|
||||
S(extra_3, "BIG5-2003", ei_big5_2003 )
|
||||
S(extra_4, "TDS565", ei_tds565 )
|
||||
S(extra_5, "ISO-IR-230", ei_tds565 )
|
||||
S(extra_6, "ATARIST", ei_atarist )
|
||||
S(extra_7, "ATARI", ei_atarist )
|
||||
S(extra_8, "RISCOS-LATIN1", ei_riscos1 )
|
2
libiconv/lib/aliases_osf1.h
Normal file
2
libiconv/lib/aliases_osf1.h
Normal file
@ -0,0 +1,2 @@
|
||||
S(osf1_0, "DEC-KANJI", ei_dec_kanji )
|
||||
S(osf1_1, "DEC-HANYU", ei_dec_hanyu )
|
116
libiconv/lib/armscii_8.h
Normal file
116
libiconv/lib/armscii_8.h
Normal file
@ -0,0 +1,116 @@
|
||||
/*
|
||||
* Copyright (C) 1999-2002 Free Software Foundation, Inc.
|
||||
* This file is part of the GNU LIBICONV Library.
|
||||
*
|
||||
* The GNU LIBICONV Library is free software; you can redistribute it
|
||||
* and/or modify it under the terms of the GNU Library General Public
|
||||
* License as published by the Free Software Foundation; either version 2
|
||||
* of the License, or (at your option) any later version.
|
||||
*
|
||||
* The GNU LIBICONV Library is distributed in the hope that it will be
|
||||
* useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* Library General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Library General Public
|
||||
* License along with the GNU LIBICONV Library; see the file COPYING.LIB.
|
||||
* If not, write to the Free Software Foundation, Inc., 51 Franklin Street,
|
||||
* Fifth Floor, Boston, MA 02110-1301, USA.
|
||||
*/
|
||||
|
||||
/*
|
||||
* ARMSCII-8
|
||||
*/
|
||||
|
||||
static const unsigned short armscii_8_2uni[96] = {
|
||||
/* 0xa0 */
|
||||
0x00a0, 0xfffd, 0x0587, 0x0589, 0x0029, 0x0028, 0x00bb, 0x00ab,
|
||||
0x2014, 0x002e, 0x055d, 0x002c, 0x002d, 0x058a, 0x2026, 0x055c,
|
||||
/* 0xb0 */
|
||||
0x055b, 0x055e, 0x0531, 0x0561, 0x0532, 0x0562, 0x0533, 0x0563,
|
||||
0x0534, 0x0564, 0x0535, 0x0565, 0x0536, 0x0566, 0x0537, 0x0567,
|
||||
/* 0xc0 */
|
||||
0x0538, 0x0568, 0x0539, 0x0569, 0x053a, 0x056a, 0x053b, 0x056b,
|
||||
0x053c, 0x056c, 0x053d, 0x056d, 0x053e, 0x056e, 0x053f, 0x056f,
|
||||
/* 0xd0 */
|
||||
0x0540, 0x0570, 0x0541, 0x0571, 0x0542, 0x0572, 0x0543, 0x0573,
|
||||
0x0544, 0x0574, 0x0545, 0x0575, 0x0546, 0x0576, 0x0547, 0x0577,
|
||||
/* 0xe0 */
|
||||
0x0548, 0x0578, 0x0549, 0x0579, 0x054a, 0x057a, 0x054b, 0x057b,
|
||||
0x054c, 0x057c, 0x054d, 0x057d, 0x054e, 0x057e, 0x054f, 0x057f,
|
||||
/* 0xf0 */
|
||||
0x0550, 0x0580, 0x0551, 0x0581, 0x0552, 0x0582, 0x0553, 0x0583,
|
||||
0x0554, 0x0584, 0x0555, 0x0585, 0x0556, 0x0586, 0x055a, 0xfffd,
|
||||
};
|
||||
|
||||
static int
|
||||
armscii_8_mbtowc (conv_t conv, ucs4_t *pwc, const unsigned char *s, size_t n)
|
||||
{
|
||||
unsigned char c = *s;
|
||||
if (c < 0xa0) {
|
||||
*pwc = (ucs4_t) c;
|
||||
return 1;
|
||||
}
|
||||
else {
|
||||
unsigned short wc = armscii_8_2uni[c-0xa0];
|
||||
if (wc != 0xfffd) {
|
||||
*pwc = (ucs4_t) wc;
|
||||
return 1;
|
||||
}
|
||||
}
|
||||
return RET_ILSEQ;
|
||||
}
|
||||
|
||||
static const unsigned char armscii_8_page00[8] = {
|
||||
0xa5, 0xa4, 0x2a, 0x2b, 0xab, 0xac, 0xa9, 0x2f, /* 0x28-0x2f */
|
||||
};
|
||||
static const unsigned char armscii_8_page00_1[32] = {
|
||||
0xa0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0xa0-0xa7 */
|
||||
0x00, 0x00, 0x00, 0xa7, 0x00, 0x00, 0x00, 0x00, /* 0xa8-0xaf */
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0xb0-0xb7 */
|
||||
0x00, 0x00, 0x00, 0xa6, 0x00, 0x00, 0x00, 0x00, /* 0xb8-0xbf */
|
||||
};
|
||||
static const unsigned char armscii_8_page05[96] = {
|
||||
0x00, 0xb2, 0xb4, 0xb6, 0xb8, 0xba, 0xbc, 0xbe, /* 0x30-0x37 */
|
||||
0xc0, 0xc2, 0xc4, 0xc6, 0xc8, 0xca, 0xcc, 0xce, /* 0x38-0x3f */
|
||||
0xd0, 0xd2, 0xd4, 0xd6, 0xd8, 0xda, 0xdc, 0xde, /* 0x40-0x47 */
|
||||
0xe0, 0xe2, 0xe4, 0xe6, 0xe8, 0xea, 0xec, 0xee, /* 0x48-0x4f */
|
||||
0xf0, 0xf2, 0xf4, 0xf6, 0xf8, 0xfa, 0xfc, 0x00, /* 0x50-0x57 */
|
||||
0x00, 0x00, 0xfe, 0xb0, 0xaf, 0xaa, 0xb1, 0x00, /* 0x58-0x5f */
|
||||
0x00, 0xb3, 0xb5, 0xb7, 0xb9, 0xbb, 0xbd, 0xbf, /* 0x60-0x67 */
|
||||
0xc1, 0xc3, 0xc5, 0xc7, 0xc9, 0xcb, 0xcd, 0xcf, /* 0x68-0x6f */
|
||||
0xd1, 0xd3, 0xd5, 0xd7, 0xd9, 0xdb, 0xdd, 0xdf, /* 0x70-0x77 */
|
||||
0xe1, 0xe3, 0xe5, 0xe7, 0xe9, 0xeb, 0xed, 0xef, /* 0x78-0x7f */
|
||||
0xf1, 0xf3, 0xf5, 0xf7, 0xf9, 0xfb, 0xfd, 0xa2, /* 0x80-0x87 */
|
||||
0x00, 0xa3, 0xad, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0x88-0x8f */
|
||||
};
|
||||
static const unsigned char armscii_8_page20[24] = {
|
||||
0x00, 0x00, 0x00, 0x00, 0xa8, 0x00, 0x00, 0x00, /* 0x10-0x17 */
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0x18-0x1f */
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xae, 0x00, /* 0x20-0x27 */
|
||||
};
|
||||
|
||||
static int
|
||||
armscii_8_wctomb (conv_t conv, unsigned char *r, ucs4_t wc, size_t n)
|
||||
{
|
||||
unsigned char c = 0;
|
||||
if (wc < 0x0028) {
|
||||
*r = wc;
|
||||
return 1;
|
||||
}
|
||||
else if (wc >= 0x0028 && wc < 0x0030)
|
||||
c = armscii_8_page00[wc-0x0028];
|
||||
else if (wc >= 0x0030 && wc < 0x00a0)
|
||||
c = wc;
|
||||
else if (wc >= 0x00a0 && wc < 0x00c0)
|
||||
c = armscii_8_page00_1[wc-0x00a0];
|
||||
else if (wc >= 0x0530 && wc < 0x0590)
|
||||
c = armscii_8_page05[wc-0x0530];
|
||||
else if (wc >= 0x2010 && wc < 0x2028)
|
||||
c = armscii_8_page20[wc-0x2010];
|
||||
if (c != 0) {
|
||||
*r = c;
|
||||
return 1;
|
||||
}
|
||||
return RET_ILUNI;
|
||||
}
|
44
libiconv/lib/ascii.h
Normal file
44
libiconv/lib/ascii.h
Normal file
@ -0,0 +1,44 @@
|
||||
/*
|
||||
* Copyright (C) 1999-2001 Free Software Foundation, Inc.
|
||||
* This file is part of the GNU LIBICONV Library.
|
||||
*
|
||||
* The GNU LIBICONV Library is free software; you can redistribute it
|
||||
* and/or modify it under the terms of the GNU Library General Public
|
||||
* License as published by the Free Software Foundation; either version 2
|
||||
* of the License, or (at your option) any later version.
|
||||
*
|
||||
* The GNU LIBICONV Library is distributed in the hope that it will be
|
||||
* useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* Library General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Library General Public
|
||||
* License along with the GNU LIBICONV Library; see the file COPYING.LIB.
|
||||
* If not, write to the Free Software Foundation, Inc., 51 Franklin Street,
|
||||
* Fifth Floor, Boston, MA 02110-1301, USA.
|
||||
*/
|
||||
|
||||
/*
|
||||
* ASCII
|
||||
*/
|
||||
|
||||
static int
|
||||
ascii_mbtowc (conv_t conv, ucs4_t *pwc, const unsigned char *s, size_t n)
|
||||
{
|
||||
unsigned char c = *s;
|
||||
if (c < 0x80) {
|
||||
*pwc = (ucs4_t) c;
|
||||
return 1;
|
||||
}
|
||||
return RET_ILSEQ;
|
||||
}
|
||||
|
||||
static int
|
||||
ascii_wctomb (conv_t conv, unsigned char *r, ucs4_t wc, size_t n)
|
||||
{
|
||||
if (wc < 0x0080) {
|
||||
*r = wc;
|
||||
return 1;
|
||||
}
|
||||
return RET_ILUNI;
|
||||
}
|
158
libiconv/lib/atarist.h
Normal file
158
libiconv/lib/atarist.h
Normal file
@ -0,0 +1,158 @@
|
||||
/*
|
||||
* Copyright (C) 1999-2005 Free Software Foundation, Inc.
|
||||
* This file is part of the GNU LIBICONV Library.
|
||||
*
|
||||
* The GNU LIBICONV Library is free software; you can redistribute it
|
||||
* and/or modify it under the terms of the GNU Library General Public
|
||||
* License as published by the Free Software Foundation; either version 2
|
||||
* of the License, or (at your option) any later version.
|
||||
*
|
||||
* The GNU LIBICONV Library is distributed in the hope that it will be
|
||||
* useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* Library General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Library General Public
|
||||
* License along with the GNU LIBICONV Library; see the file COPYING.LIB.
|
||||
* If not, write to the Free Software Foundation, Inc., 51 Franklin Street,
|
||||
* Fifth Floor, Boston, MA 02110-1301, USA.
|
||||
*/
|
||||
|
||||
/*
|
||||
* Atari ST
|
||||
*/
|
||||
|
||||
static const unsigned short atarist_2uni[128] = {
|
||||
/* 0x80 */
|
||||
0x00c7, 0x00fc, 0x00e9, 0x00e2, 0x00e4, 0x00e0, 0x00e5, 0x00e7,
|
||||
0x00ea, 0x00eb, 0x00e8, 0x00ef, 0x00ee, 0x00ec, 0x00c4, 0x00c5,
|
||||
/* 0x90 */
|
||||
0x00c9, 0x00e6, 0x00c6, 0x00f4, 0x00f6, 0x00f2, 0x00fb, 0x00f9,
|
||||
0x00ff, 0x00d6, 0x00dc, 0x00a2, 0x00a3, 0x00a5, 0x00df, 0x0192,
|
||||
/* 0xa0 */
|
||||
0x00e1, 0x00ed, 0x00f3, 0x00fa, 0x00f1, 0x00d1, 0x00aa, 0x00ba,
|
||||
0x00bf, 0x2310, 0x00ac, 0x00bd, 0x00bc, 0x00a1, 0x00ab, 0x00bb,
|
||||
/* 0xb0 */
|
||||
0x00e3, 0x00f5, 0x00d8, 0x00f8, 0x0153, 0x0152, 0x00c0, 0x00c3,
|
||||
0x00d5, 0x00a8, 0x00b4, 0x2020, 0x00b6, 0x00a9, 0x00ae, 0x2122,
|
||||
/* 0xc0 */
|
||||
0x0133, 0x0132, 0x05d0, 0x05d1, 0x05d2, 0x05d3, 0x05d4, 0x05d5,
|
||||
0x05d6, 0x05d7, 0x05d8, 0x05d9, 0x05db, 0x05dc, 0x05de, 0x05e0,
|
||||
/* 0xd0 */
|
||||
0x05e1, 0x05e2, 0x05e4, 0x05e6, 0x05e7, 0x05e8, 0x05e9, 0x05ea,
|
||||
0x05df, 0x05da, 0x05dd, 0x05e3, 0x05e5, 0x00a7, 0x2227, 0x221e,
|
||||
/* 0xe0 */
|
||||
0x03b1, 0x03b2, 0x0393, 0x03c0, 0x03a3, 0x03c3, 0x00b5, 0x03c4,
|
||||
0x03a6, 0x0398, 0x03a9, 0x03b4, 0x222e, 0x03c6, 0x2208, 0x2229,
|
||||
/* 0xf0 */
|
||||
0x2261, 0x00b1, 0x2265, 0x2264, 0x2320, 0x2321, 0x00f7, 0x2248,
|
||||
0x00b0, 0x2219, 0x00b7, 0x221a, 0x207f, 0x00b2, 0x00b3, 0x00af,
|
||||
};
|
||||
|
||||
static int
|
||||
atarist_mbtowc (conv_t conv, ucs4_t *pwc, const unsigned char *s, size_t n)
|
||||
{
|
||||
unsigned char c = *s;
|
||||
if (c < 0x80)
|
||||
*pwc = (ucs4_t) c;
|
||||
else
|
||||
*pwc = (ucs4_t) atarist_2uni[c-0x80];
|
||||
return 1;
|
||||
}
|
||||
|
||||
static const unsigned char atarist_page00[96] = {
|
||||
0x00, 0xad, 0x9b, 0x9c, 0x00, 0x9d, 0x00, 0xdd, /* 0xa0-0xa7 */
|
||||
0xb9, 0xbd, 0xa6, 0xae, 0xaa, 0x00, 0xbe, 0xff, /* 0xa8-0xaf */
|
||||
0xf8, 0xf1, 0xfd, 0xfe, 0xba, 0xe6, 0xbc, 0xfa, /* 0xb0-0xb7 */
|
||||
0x00, 0x00, 0xa7, 0xaf, 0xac, 0xab, 0x00, 0xa8, /* 0xb8-0xbf */
|
||||
0xb6, 0x00, 0x00, 0xb7, 0x8e, 0x8f, 0x92, 0x80, /* 0xc0-0xc7 */
|
||||
0x00, 0x90, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0xc8-0xcf */
|
||||
0x00, 0xa5, 0x00, 0x00, 0x00, 0xb8, 0x99, 0x00, /* 0xd0-0xd7 */
|
||||
0xb2, 0x00, 0x00, 0x00, 0x9a, 0x00, 0x00, 0x9e, /* 0xd8-0xdf */
|
||||
0x85, 0xa0, 0x83, 0xb0, 0x84, 0x86, 0x91, 0x87, /* 0xe0-0xe7 */
|
||||
0x8a, 0x82, 0x88, 0x89, 0x8d, 0xa1, 0x8c, 0x8b, /* 0xe8-0xef */
|
||||
0x00, 0xa4, 0x95, 0xa2, 0x93, 0xb1, 0x94, 0xf6, /* 0xf0-0xf7 */
|
||||
0xb3, 0x97, 0xa3, 0x96, 0x81, 0x00, 0x00, 0x98, /* 0xf8-0xff */
|
||||
};
|
||||
static const unsigned char atarist_page01[104] = {
|
||||
0x00, 0x00, 0xc1, 0xc0, 0x00, 0x00, 0x00, 0x00, /* 0x30-0x37 */
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0x38-0x3f */
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0x40-0x47 */
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0x48-0x4f */
|
||||
0x00, 0x00, 0xb5, 0xb4, 0x00, 0x00, 0x00, 0x00, /* 0x50-0x57 */
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0x58-0x5f */
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0x60-0x67 */
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0x68-0x6f */
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0x70-0x77 */
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0x78-0x7f */
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0x80-0x87 */
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0x88-0x8f */
|
||||
0x00, 0x00, 0x9f, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0x90-0x97 */
|
||||
};
|
||||
static const unsigned char atarist_page03[56] = {
|
||||
0x00, 0x00, 0x00, 0xe2, 0x00, 0x00, 0x00, 0x00, /* 0x90-0x97 */
|
||||
0xe9, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0x98-0x9f */
|
||||
0x00, 0x00, 0x00, 0xe4, 0x00, 0x00, 0xe8, 0x00, /* 0xa0-0xa7 */
|
||||
0x00, 0xea, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0xa8-0xaf */
|
||||
0x00, 0xe0, 0xe1, 0x00, 0xeb, 0x00, 0x00, 0x00, /* 0xb0-0xb7 */
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0xb8-0xbf */
|
||||
0xe3, 0x00, 0x00, 0xe5, 0xe7, 0x00, 0xed, 0x00, /* 0xc0-0xc7 */
|
||||
};
|
||||
static const unsigned char atarist_page05[32] = {
|
||||
0xc2, 0xc3, 0xc4, 0xc5, 0xc6, 0xc7, 0xc8, 0xc9, /* 0xd0-0xd7 */
|
||||
0xca, 0xcb, 0xd9, 0xcc, 0xcd, 0xda, 0xce, 0xd8, /* 0xd8-0xdf */
|
||||
0xcf, 0xd0, 0xd1, 0xdb, 0xd2, 0xdc, 0xd3, 0xd4, /* 0xe0-0xe7 */
|
||||
0xd5, 0xd6, 0xd7, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0xe8-0xef */
|
||||
};
|
||||
static const unsigned char atarist_page22[96] = {
|
||||
0xee, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0x08-0x0f */
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0x10-0x17 */
|
||||
0x00, 0xf9, 0xfb, 0x00, 0x00, 0x00, 0xdf, 0x00, /* 0x18-0x1f */
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xde, /* 0x20-0x27 */
|
||||
0x00, 0xef, 0x00, 0x00, 0x00, 0x00, 0xec, 0x00, /* 0x28-0x2f */
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0x30-0x37 */
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0x38-0x3f */
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0x40-0x47 */
|
||||
0xf7, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0x48-0x4f */
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0x50-0x57 */
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0x58-0x5f */
|
||||
0x00, 0xf0, 0x00, 0x00, 0xf3, 0xf2, 0x00, 0x00, /* 0x60-0x67 */
|
||||
};
|
||||
static const unsigned char atarist_page23[24] = {
|
||||
0xa9, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0x10-0x17 */
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0x18-0x1f */
|
||||
0xf4, 0xf5, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0x20-0x27 */
|
||||
};
|
||||
|
||||
static int
|
||||
atarist_wctomb (conv_t conv, unsigned char *r, ucs4_t wc, size_t n)
|
||||
{
|
||||
unsigned char c = 0;
|
||||
if (wc < 0x0080) {
|
||||
*r = wc;
|
||||
return 1;
|
||||
}
|
||||
else if (wc >= 0x00a0 && wc < 0x0100)
|
||||
c = atarist_page00[wc-0x00a0];
|
||||
else if (wc >= 0x0130 && wc < 0x0198)
|
||||
c = atarist_page01[wc-0x0130];
|
||||
else if (wc >= 0x0390 && wc < 0x03c8)
|
||||
c = atarist_page03[wc-0x0390];
|
||||
else if (wc >= 0x05d0 && wc < 0x05f0)
|
||||
c = atarist_page05[wc-0x05d0];
|
||||
else if (wc == 0x2020)
|
||||
c = 0xbb;
|
||||
else if (wc == 0x207f)
|
||||
c = 0xfc;
|
||||
else if (wc == 0x2122)
|
||||
c = 0xbf;
|
||||
else if (wc >= 0x2208 && wc < 0x2268)
|
||||
c = atarist_page22[wc-0x2208];
|
||||
else if (wc >= 0x2310 && wc < 0x2328)
|
||||
c = atarist_page23[wc-0x2310];
|
||||
if (c != 0) {
|
||||
*r = c;
|
||||
return 1;
|
||||
}
|
||||
return RET_ILUNI;
|
||||
}
|
4160
libiconv/lib/big5.h
Normal file
4160
libiconv/lib/big5.h
Normal file
File diff suppressed because it is too large
Load Diff
476
libiconv/lib/big5_2003.h
Normal file
476
libiconv/lib/big5_2003.h
Normal file
@ -0,0 +1,476 @@
|
||||
/*
|
||||
* Copyright (C) 1999-2001, 2005 Free Software Foundation, Inc.
|
||||
* This file is part of the GNU LIBICONV Library.
|
||||
*
|
||||
* The GNU LIBICONV Library is free software; you can redistribute it
|
||||
* and/or modify it under the terms of the GNU Library General Public
|
||||
* License as published by the Free Software Foundation; either version 2
|
||||
* of the License, or (at your option) any later version.
|
||||
*
|
||||
* The GNU LIBICONV Library is distributed in the hope that it will be
|
||||
* useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* Library General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Library General Public
|
||||
* License along with the GNU LIBICONV Library; see the file COPYING.LIB.
|
||||
* If not, write to the Free Software Foundation, Inc., 51 Franklin Street,
|
||||
* Fifth Floor, Boston, MA 02110-1301, USA.
|
||||
*/
|
||||
|
||||
/*
|
||||
* BIG5-2003
|
||||
*/
|
||||
|
||||
/*
|
||||
* BIG5-2003 is a slightly extended and slightly modified version of BIG5.
|
||||
* It is actually nearer to Microsoft CP950 than to BIG5. The differences
|
||||
* between EASTASIA/OTHER/BIG5.TXT found on ftp.unicode.org and BIG5-2003.TXT
|
||||
* are as follows:
|
||||
*
|
||||
* 1. Some characters in the symbols area (0xA140..0xA2CE) are defined
|
||||
* differently:
|
||||
*
|
||||
* code BIG5.TXT BIG5-2003.TXT
|
||||
* 0xA145 0x2022 # BULLET 0x2027 # HYPHENATION POINT
|
||||
* 0xA14E 0xFF64 # HALFWIDTH IDEOGRAPHIC COMMA
|
||||
* 0xFE51 # SMALL IDEOGRAPHIC COMMA
|
||||
* 0xA156 0x2013 # EN DASH 0x2015 # HORIZONTAL BAR
|
||||
* 0xA15A --- 0x2574 # BOX DRAWINGS LIGHT LEFT
|
||||
* 0xA1C3 --- 0xFFE3 # FULLWIDTH MACRON
|
||||
* 0xA1C5 --- 0x02CD # MODIFIER LETTER LOW MACRON
|
||||
* 0xA1E3 0x223C # TILDE OPERATOR 0xFF5E # FULLWIDTH TILDE
|
||||
* 0xA1F2 0x2641 # EARTH 0x2295 # CIRCLED PLUS
|
||||
* 0xA1F3 0x2609 # SUN 0x2299 # CIRCLED DOT OPERATOR
|
||||
* 0xA1FE --- 0xFF0F # FULLWIDTH SOLIDUS
|
||||
* 0xA240 --- 0xFF3C # FULLWIDTH REVERSE SOLIDUS
|
||||
* 0xA241 0xFF0F # FULLWIDTH SOLIDUS 0x2215 # DIVISION SLASH
|
||||
* 0xA242 0xFF3C # FULLWIDTH REVERSE SOLIDUS
|
||||
* 0xFE68 # SMALL REVERSE SOLIDUS
|
||||
* 0xA244 0x00A5 # YEN SIGN 0xFFE5 # FULLWIDTH YEN SIGN
|
||||
* 0xA246 0x00A2 # CENT SIGN 0xFFE0 # FULLWIDTH CENT SIGN
|
||||
* 0xA247 0x00A3 # POUND SIGN 0xFFE1 # FULLWIDTH POUND SIGN
|
||||
* 0xA2A4 0x2550 # BOX DRAWINGS DOUBLE HORIZONTAL
|
||||
* 0x2501 # BOX DRAWINGS HEAVY HORIZONTAL
|
||||
* 0xA2A5 0x255E # BOX DRAWINGS VERTICAL SINGLE AND RIGHT DOUBLE
|
||||
* 0x251D # BOX DRAWINGS VERTICAL LIGHT AND RIGHT HEAVY
|
||||
* 0xA2A6 0x256A # BOX DRAWINGS VERTICAL SINGLE AND HORIZONTAL DOUBLE
|
||||
* 0x253F # BOX DRAWINGS VERTICAL LIGHT AND HORIZONTAL HEAVY
|
||||
* 0xA2A7 0x2561 # BOX DRAWINGS VERTICAL SINGLE AND LEFT DOUBLE
|
||||
* 0x2525 # BOX DRAWINGS VERTICAL LIGHT AND LEFT HEAVY
|
||||
* 0xA2CC --- 0x3038 # HANGZHOU NUMERAL TEN
|
||||
* 0xA2CD 0x5344 0x3039 # HANGZHOU NUMERAL TWENTY
|
||||
* 0xA2CE --- 0x303A # HANGZHOU NUMERAL THIRTY
|
||||
*
|
||||
* 2. A control symbols area is added:
|
||||
*
|
||||
* code
|
||||
* 0xA3C0..0xA3E0 U+2400..U+2421
|
||||
*
|
||||
* 3. The Euro sign is added:
|
||||
*
|
||||
* code
|
||||
* 0xA3E1 0x20AC # EURO SIGN
|
||||
*
|
||||
* 4. Some characters in the main area are defined differently:
|
||||
*
|
||||
* code BIG5.TXT BIG5-2003.TXT
|
||||
* 0xC255 0x5F5D 0x5F5E
|
||||
*
|
||||
* 5. The area 0xC6A1..0xC7FE is organized differently:
|
||||
*
|
||||
* code
|
||||
* 0xC6A1..0xC6BE numerals (was in BIG5.TXT at 0xC7E9..0xC7FC)
|
||||
* 0xC6BF..0xC6D7 radicals
|
||||
* 0xC6D8..0xC6E6 rarely used symbols
|
||||
* 0xC6E7..0xC77A hiragana (U+3041..U+3093, was in BIG5.TXT at 0xC6A5..0xC6F7)
|
||||
* 0xC77B..0xC7F2 katakana (U+30A1..U+30F6, was in BIG5.TXT at 0xC6F8..0xC7B0)
|
||||
*
|
||||
* 6. Some characters are added at 0xF9D6..0xF9DC.
|
||||
*
|
||||
* 7. Box drawing characters are added at 0xF9DD..0xF9FE.
|
||||
*
|
||||
* Note: 4 of these characters are mapped in a non-inversible way, because
|
||||
* Unicode does not yet include the corresponding characters:
|
||||
*
|
||||
* code Unicode approximation
|
||||
* 0xF9FA BOX DRAWINGS DOUBLE ARC DOWN AND RIGHT 0x2554
|
||||
* 0xF9FB BOX DRAWINGS DOUBLE ARC DOWN AND LEFT 0x2557
|
||||
* 0xF9FC BOX DRAWINGS DOUBLE ARC UP AND RIGHT 0x255A
|
||||
* 0xF9FD BOX DRAWINGS DOUBLE ARC UP AND LEFT 0x255D
|
||||
*
|
||||
* 8. Private area mappings are added:
|
||||
*
|
||||
* code Unicode
|
||||
* 0x{81..8D}{40..7E,A1..FE} U+EEB8..U+F6B0
|
||||
* 0x{8E..A0}{40..7E,A1..FE} U+E311..U+EEB7
|
||||
* 0x{FA..FE}{40..7E,A1..FE} U+E000..U+E310
|
||||
*
|
||||
* These mappings are not contained in the BSMI Big5-2003 standard. However,
|
||||
* they were contained in a draft of it.
|
||||
*/
|
||||
|
||||
static const unsigned short big5_2003_2uni_pagea1[314] = {
|
||||
/* 0xa1 */
|
||||
0x3000, 0xff0c, 0x3001, 0x3002, 0xff0e, 0x2027, 0xff1b, 0xff1a,
|
||||
0xff1f, 0xff01, 0xfe30, 0x2026, 0x2025, 0xfe50, 0xfe51, 0xfe52,
|
||||
0x00b7, 0xfe54, 0xfe55, 0xfe56, 0xfe57, 0xff5c, 0x2015, 0xfe31,
|
||||
0x2014, 0xfe33, 0x2574, 0xfe34, 0xfe4f, 0xff08, 0xff09, 0xfe35,
|
||||
0xfe36, 0xff5b, 0xff5d, 0xfe37, 0xfe38, 0x3014, 0x3015, 0xfe39,
|
||||
0xfe3a, 0x3010, 0x3011, 0xfe3b, 0xfe3c, 0x300a, 0x300b, 0xfe3d,
|
||||
0xfe3e, 0x3008, 0x3009, 0xfe3f, 0xfe40, 0x300c, 0x300d, 0xfe41,
|
||||
0xfe42, 0x300e, 0x300f, 0xfe43, 0xfe44, 0xfe59, 0xfe5a, 0xfe5b,
|
||||
0xfe5c, 0xfe5d, 0xfe5e, 0x2018, 0x2019, 0x201c, 0x201d, 0x301d,
|
||||
0x301e, 0x2035, 0x2032, 0xff03, 0xff06, 0xff0a, 0x203b, 0x00a7,
|
||||
0x3003, 0x25cb, 0x25cf, 0x25b3, 0x25b2, 0x25ce, 0x2606, 0x2605,
|
||||
0x25c7, 0x25c6, 0x25a1, 0x25a0, 0x25bd, 0x25bc, 0x32a3, 0x2105,
|
||||
0x203e, 0xffe3, 0xff3f, 0x02cd, 0xfe49, 0xfe4a, 0xfe4d, 0xfe4e,
|
||||
0xfe4b, 0xfe4c, 0xfe5f, 0xfe60, 0xfe61, 0xff0b, 0xff0d, 0x00d7,
|
||||
0x00f7, 0x00b1, 0x221a, 0xff1c, 0xff1e, 0xff1d, 0x2266, 0x2267,
|
||||
0x2260, 0x221e, 0x2252, 0x2261, 0xfe62, 0xfe63, 0xfe64, 0xfe65,
|
||||
0xfe66, 0xff5e, 0x2229, 0x222a, 0x22a5, 0x2220, 0x221f, 0x22bf,
|
||||
0x33d2, 0x33d1, 0x222b, 0x222e, 0x2235, 0x2234, 0x2640, 0x2642,
|
||||
0x2295, 0x2299, 0x2191, 0x2193, 0x2190, 0x2192, 0x2196, 0x2197,
|
||||
0x2199, 0x2198, 0x2225, 0x2223, 0xff0f,
|
||||
/* 0xa2 */
|
||||
0xff3c, 0x2215, 0xfe68, 0xff04, 0xffe5, 0x3012, 0xffe0, 0xffe1,
|
||||
0xff05, 0xff20, 0x2103, 0x2109, 0xfe69, 0xfe6a, 0xfe6b, 0x33d5,
|
||||
0x339c, 0x339d, 0x339e, 0x33ce, 0x33a1, 0x338e, 0x338f, 0x33c4,
|
||||
0x00b0, 0x5159, 0x515b, 0x515e, 0x515d, 0x5161, 0x5163, 0x55e7,
|
||||
0x74e9, 0x7cce, 0x2581, 0x2582, 0x2583, 0x2584, 0x2585, 0x2586,
|
||||
0x2587, 0x2588, 0x258f, 0x258e, 0x258d, 0x258c, 0x258b, 0x258a,
|
||||
0x2589, 0x253c, 0x2534, 0x252c, 0x2524, 0x251c, 0x2594, 0x2500,
|
||||
0x2502, 0x2595, 0x250c, 0x2510, 0x2514, 0x2518, 0x256d, 0x256e,
|
||||
0x2570, 0x256f, 0x2501, 0x251d, 0x253f, 0x2525, 0x25e2, 0x25e3,
|
||||
0x25e5, 0x25e4, 0x2571, 0x2572, 0x2573, 0xff10, 0xff11, 0xff12,
|
||||
0xff13, 0xff14, 0xff15, 0xff16, 0xff17, 0xff18, 0xff19, 0x2160,
|
||||
0x2161, 0x2162, 0x2163, 0x2164, 0x2165, 0x2166, 0x2167, 0x2168,
|
||||
0x2169, 0x3021, 0x3022, 0x3023, 0x3024, 0x3025, 0x3026, 0x3027,
|
||||
0x3028, 0x3029, 0x3038, 0x3039, 0x303a, 0xff21, 0xff22, 0xff23,
|
||||
0xff24, 0xff25, 0xff26, 0xff27, 0xff28, 0xff29, 0xff2a, 0xff2b,
|
||||
0xff2c, 0xff2d, 0xff2e, 0xff2f, 0xff30, 0xff31, 0xff32, 0xff33,
|
||||
0xff34, 0xff35, 0xff36, 0xff37, 0xff38, 0xff39, 0xff3a, 0xff41,
|
||||
0xff42, 0xff43, 0xff44, 0xff45, 0xff46, 0xff47, 0xff48, 0xff49,
|
||||
0xff4a, 0xff4b, 0xff4c, 0xff4d, 0xff4e, 0xff4f, 0xff50, 0xff51,
|
||||
0xff52, 0xff53, 0xff54, 0xff55, 0xff56,
|
||||
};
|
||||
|
||||
static const unsigned short big5_2003_2uni_pagec6[70] = {
|
||||
/* 0xc6a1 */
|
||||
0x2460, 0x2461, 0x2462, 0x2463, 0x2464, 0x2465, 0x2466, 0x2467,
|
||||
0x2468, 0x2469, 0x2474, 0x2475, 0x2476, 0x2477, 0x2478, 0x2479,
|
||||
0x247a, 0x247b, 0x247c, 0x247d, 0x2170, 0x2171, 0x2172, 0x2173,
|
||||
0x2174, 0x2175, 0x2176, 0x2177, 0x2178, 0x2179, 0x2f02, 0x2f03,
|
||||
0x2f05, 0x2f07, 0x2f0c, 0x2f0d, 0x2f0e, 0x2f13, 0x2f16, 0x2f19,
|
||||
0x2f1b, 0x2f22, 0x2f27, 0x2f2e, 0x2f33, 0x2f34, 0x2f35, 0x2f39,
|
||||
0x2f3a, 0x2f41, 0x2f46, 0x2f67, 0x2f68, 0x2fa1, 0x2faa, 0x00a8,
|
||||
0xff3e, 0x30fd, 0x30fe, 0x309d, 0x309e, 0xfffd, 0xfffd, 0x3005,
|
||||
0x3006, 0x3007, 0x30fc, 0xff3b, 0xff3d, 0x273d,
|
||||
};
|
||||
|
||||
static const unsigned short big5_2003_2uni_pagef9[41] = {
|
||||
/* 0xf9d6 */
|
||||
0x7881, 0x92b9, 0x88cf, 0x58bb, 0x6052, 0x7ca7, 0x5afa,
|
||||
/* 0xf9dd */
|
||||
0x2554, 0x2566, 0x2557, 0x2560, 0x256c, 0x2563, 0x255a, 0x2569,
|
||||
0x255d, 0x2552, 0x2564, 0x2555, 0x255e, 0x256a, 0x2561, 0x2558,
|
||||
0x2567, 0x255b, 0x2553, 0x2565, 0x2556, 0x255f, 0x256b, 0x2562,
|
||||
0x2559, 0x2568, 0x255c, 0x2551, 0x2550,
|
||||
0x2554, 0x2557, 0x255a, 0x255d, /* not invertible */
|
||||
0x2593,
|
||||
};
|
||||
|
||||
static int
|
||||
big5_2003_mbtowc (conv_t conv, ucs4_t *pwc, const unsigned char *s, size_t n)
|
||||
{
|
||||
unsigned char c = *s;
|
||||
/* Code set 0 (ASCII) */
|
||||
if (c < 0x80)
|
||||
return ascii_mbtowc(conv,pwc,s,n);
|
||||
/* Code set 1 (BIG5 extended) */
|
||||
if (c >= 0x81 && c < 0xff) {
|
||||
if (n < 2)
|
||||
return RET_TOOFEW(0);
|
||||
{
|
||||
unsigned char c2 = s[1];
|
||||
if ((c2 >= 0x40 && c2 < 0x7f) || (c2 >= 0xa1 && c2 < 0xff)) {
|
||||
if (c >= 0xa1) {
|
||||
if (c < 0xa3) {
|
||||
unsigned int i = 157 * (c - 0xa1) + (c2 - (c2 >= 0xa1 ? 0x62 : 0x40));
|
||||
unsigned short wc = big5_2003_2uni_pagea1[i];
|
||||
if (wc != 0xfffd) {
|
||||
*pwc = (ucs4_t) wc;
|
||||
return 2;
|
||||
}
|
||||
}
|
||||
if (!((c == 0xc6 && c2 >= 0xa1) || c == 0xc7)) {
|
||||
if (!(c == 0xc2 && c2 == 0x55)) {
|
||||
int ret = big5_mbtowc(conv,pwc,s,2);
|
||||
if (ret != RET_ILSEQ)
|
||||
return ret;
|
||||
if (c == 0xa3) {
|
||||
if (c2 >= 0xc0 && c2 <= 0xe1) {
|
||||
*pwc = (c2 == 0xe1 ? 0x20ac : c2 == 0xe0 ? 0x2421 : 0x2340 + c2);
|
||||
return 2;
|
||||
}
|
||||
} else if (c == 0xf9) {
|
||||
if (c2 >= 0xd6) {
|
||||
*pwc = big5_2003_2uni_pagef9[c2-0xd6];
|
||||
return 2;
|
||||
}
|
||||
} else if (c >= 0xfa) {
|
||||
*pwc = 0xe000 + 157 * (c - 0xfa) + (c2 - (c2 >= 0xa1 ? 0x62 : 0x40));
|
||||
return 2;
|
||||
}
|
||||
} else {
|
||||
/* c == 0xc2 && c2 == 0x55. */
|
||||
*pwc = 0x5f5e;
|
||||
return 2;
|
||||
}
|
||||
} else {
|
||||
/* (c == 0xc6 && c2 >= 0xa1) || c == 0xc7. */
|
||||
unsigned int i = 157 * (c - 0xc6) + (c2 - (c2 >= 0xa1 ? 0x62 : 0x40));
|
||||
if (i < 133) {
|
||||
/* 63 <= i < 133. */
|
||||
unsigned short wc = big5_2003_2uni_pagec6[i-63];
|
||||
if (wc != 0xfffd) {
|
||||
*pwc = (ucs4_t) wc;
|
||||
return 2;
|
||||
}
|
||||
} else if (i < 216) {
|
||||
/* 133 <= i < 216. Hiragana. */
|
||||
*pwc = 0x3041 - 133 + i;
|
||||
return 2;
|
||||
} else if (i < 302) {
|
||||
/* 216 <= i < 302. Katakana. */
|
||||
*pwc = 0x30a1 - 216 + i;
|
||||
return 2;
|
||||
}
|
||||
}
|
||||
} else {
|
||||
/* 0x81 <= c < 0xa1. */
|
||||
*pwc = (c >= 0x8e ? 0xdb18 : 0xeeb8) + 157 * (c - 0x81)
|
||||
+ (c2 - (c2 >= 0xa1 ? 0x62 : 0x40));
|
||||
return 2;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
return RET_ILSEQ;
|
||||
}
|
||||
|
||||
static const unsigned char big5_2003_2charset_page25[29] = {
|
||||
/* 0x2550 */
|
||||
0xf9, 0xf8, 0xe6, 0xef, 0xdd, 0xe8, 0xf1, 0xdf,
|
||||
0xec, 0xf5, 0xe3, 0xee, 0xf7, 0xe5, 0xe9, 0xf2,
|
||||
0xe0, 0xeb, 0xf4, 0xe2, 0xe7, 0xf0, 0xde, 0xed,
|
||||
0xf6, 0xe4, 0xea, 0xf3, 0xe1,
|
||||
};
|
||||
|
||||
static int
|
||||
big5_2003_wctomb (conv_t conv, unsigned char *r, ucs4_t wc, size_t n)
|
||||
{
|
||||
unsigned char buf[2];
|
||||
int ret;
|
||||
|
||||
/* Code set 0 (ASCII) */
|
||||
ret = ascii_wctomb(conv,r,wc,n);
|
||||
if (ret != RET_ILUNI)
|
||||
return ret;
|
||||
|
||||
/* Code set 1 (BIG5 extended) */
|
||||
switch (wc >> 8) {
|
||||
case 0x00:
|
||||
if (wc == 0x00a8) { buf[0] = 0xc6; buf[1] = 0xd8; ret = 2; break; }
|
||||
if (wc == 0x00a2 || wc == 0x00a3 || wc == 0x00a5)
|
||||
return RET_ILUNI;
|
||||
break;
|
||||
case 0x02:
|
||||
if (wc == 0x02cd) { buf[0] = 0xa1; buf[1] = 0xc5; ret = 2; break; }
|
||||
break;
|
||||
case 0x04:
|
||||
return RET_ILUNI;
|
||||
case 0x20:
|
||||
if (wc == 0x2015) { buf[0] = 0xa1; buf[1] = 0x56; ret = 2; break; }
|
||||
if (wc == 0x2027) { buf[0] = 0xa1; buf[1] = 0x45; ret = 2; break; }
|
||||
if (wc == 0x20ac) { buf[0] = 0xa3; buf[1] = 0xe1; ret = 2; break; }
|
||||
if (wc == 0x2013 || wc == 0x2022)
|
||||
return RET_ILUNI;
|
||||
break;
|
||||
case 0x21:
|
||||
if (wc >= 0x2170 && wc <= 0x2179) {
|
||||
buf[0] = 0xc6; buf[1] = wc - 0x20bb; ret = 2;
|
||||
break;
|
||||
}
|
||||
break;
|
||||
case 0x22:
|
||||
if (wc == 0x2215) { buf[0] = 0xa2; buf[1] = 0x41; ret = 2; break; }
|
||||
if (wc == 0x2295) { buf[0] = 0xa1; buf[1] = 0xf2; ret = 2; break; }
|
||||
if (wc == 0x2299) { buf[0] = 0xa1; buf[1] = 0xf3; ret = 2; break; }
|
||||
if (wc == 0x223c)
|
||||
return RET_ILUNI;
|
||||
break;
|
||||
case 0x24:
|
||||
if (wc <= 0x241f) { buf[0] = 0xa3; buf[1] = wc - 0x2340; ret = 2; break; }
|
||||
if (wc == 0x2421) { buf[0] = 0xa3; buf[1] = 0xe0; ret = 2; break; }
|
||||
if (wc >= 0x2460 && wc <= 0x2469) {
|
||||
buf[0] = 0xc6; buf[1] = wc - 0x23bf; ret = 2;
|
||||
break;
|
||||
}
|
||||
if (wc >= 0x2474 && wc <= 0x247d) {
|
||||
buf[0] = 0xc6; buf[1] = wc - 0x23c9; ret = 2;
|
||||
break;
|
||||
}
|
||||
break;
|
||||
case 0x25:
|
||||
if (wc == 0x2501) { buf[0] = 0xa2; buf[1] = 0xa4; ret = 2; break; }
|
||||
if (wc == 0x251d) { buf[0] = 0xa2; buf[1] = 0xa5; ret = 2; break; }
|
||||
if (wc == 0x2525) { buf[0] = 0xa2; buf[1] = 0xa7; ret = 2; break; }
|
||||
if (wc == 0x253f) { buf[0] = 0xa2; buf[1] = 0xa6; ret = 2; break; }
|
||||
if (wc >= 0x2550 && wc <= 0x256c) {
|
||||
buf[0] = 0xf9; buf[1] = big5_2003_2charset_page25[wc-0x2550]; ret = 2;
|
||||
break;
|
||||
}
|
||||
if (wc == 0x2574) { buf[0] = 0xa1; buf[1] = 0x5a; ret = 2; break; }
|
||||
if (wc == 0x2593) { buf[0] = 0xf9; buf[1] = 0xfe; ret = 2; break; }
|
||||
break;
|
||||
case 0x26:
|
||||
if (wc == 0x2609 || wc == 0x2641)
|
||||
return RET_ILUNI;
|
||||
break;
|
||||
case 0x27:
|
||||
if (wc == 0x273d) { buf[0] = 0xc6; buf[1] = 0xe6; ret = 2; break; }
|
||||
break;
|
||||
case 0x2f:
|
||||
if (wc == 0x2f02) { buf[0] = 0xc6; buf[1] = 0xbf; ret = 2; break; }
|
||||
if (wc == 0x2f03) { buf[0] = 0xc6; buf[1] = 0xc0; ret = 2; break; }
|
||||
if (wc == 0x2f05) { buf[0] = 0xc6; buf[1] = 0xc1; ret = 2; break; }
|
||||
if (wc == 0x2f07) { buf[0] = 0xc6; buf[1] = 0xc2; ret = 2; break; }
|
||||
if (wc == 0x2f0c) { buf[0] = 0xc6; buf[1] = 0xc3; ret = 2; break; }
|
||||
if (wc == 0x2f0d) { buf[0] = 0xc6; buf[1] = 0xc4; ret = 2; break; }
|
||||
if (wc == 0x2f0e) { buf[0] = 0xc6; buf[1] = 0xc5; ret = 2; break; }
|
||||
if (wc == 0x2f13) { buf[0] = 0xc6; buf[1] = 0xc6; ret = 2; break; }
|
||||
if (wc == 0x2f16) { buf[0] = 0xc6; buf[1] = 0xc7; ret = 2; break; }
|
||||
if (wc == 0x2f19) { buf[0] = 0xc6; buf[1] = 0xc8; ret = 2; break; }
|
||||
if (wc == 0x2f1b) { buf[0] = 0xc6; buf[1] = 0xc9; ret = 2; break; }
|
||||
if (wc == 0x2f22) { buf[0] = 0xc6; buf[1] = 0xca; ret = 2; break; }
|
||||
if (wc == 0x2f27) { buf[0] = 0xc6; buf[1] = 0xcb; ret = 2; break; }
|
||||
if (wc == 0x2f2e) { buf[0] = 0xc6; buf[1] = 0xcc; ret = 2; break; }
|
||||
if (wc == 0x2f33) { buf[0] = 0xc6; buf[1] = 0xcd; ret = 2; break; }
|
||||
if (wc == 0x2f34) { buf[0] = 0xc6; buf[1] = 0xce; ret = 2; break; }
|
||||
if (wc == 0x2f35) { buf[0] = 0xc6; buf[1] = 0xcf; ret = 2; break; }
|
||||
if (wc == 0x2f39) { buf[0] = 0xc6; buf[1] = 0xd0; ret = 2; break; }
|
||||
if (wc == 0x2f3a) { buf[0] = 0xc6; buf[1] = 0xd1; ret = 2; break; }
|
||||
if (wc == 0x2f41) { buf[0] = 0xc6; buf[1] = 0xd2; ret = 2; break; }
|
||||
if (wc == 0x2f46) { buf[0] = 0xc6; buf[1] = 0xd3; ret = 2; break; }
|
||||
if (wc == 0x2f67) { buf[0] = 0xc6; buf[1] = 0xd4; ret = 2; break; }
|
||||
if (wc == 0x2f68) { buf[0] = 0xc6; buf[1] = 0xd5; ret = 2; break; }
|
||||
if (wc == 0x2fa1) { buf[0] = 0xc6; buf[1] = 0xd6; ret = 2; break; }
|
||||
if (wc == 0x2faa) { buf[0] = 0xc6; buf[1] = 0xd7; ret = 2; break; }
|
||||
break;
|
||||
case 0x30:
|
||||
if (wc >= 0x3005 && wc <= 0x3007) {
|
||||
buf[0] = 0xc6; buf[1] = wc - 0x2f25; ret = 2;
|
||||
break;
|
||||
}
|
||||
if (wc >= 0x3038 && wc <= 0x303a) {
|
||||
buf[0] = 0xa2; buf[1] = wc - 0x2f6c; ret = 2;
|
||||
break;
|
||||
}
|
||||
if (wc >= 0x3041 && wc <= 0x3093) {
|
||||
if (wc < 0x3059) {
|
||||
buf[0] = 0xc6; buf[1] = wc - 0x2f5a;
|
||||
} else {
|
||||
buf[0] = 0xc7; buf[1] = wc - 0x3019;
|
||||
}
|
||||
ret = 2;
|
||||
break;
|
||||
}
|
||||
if (wc == 0x309d) { buf[0] = 0xc6; buf[1] = 0xdc; ret = 2; break; }
|
||||
if (wc == 0x309e) { buf[0] = 0xc6; buf[1] = 0xdd; ret = 2; break; }
|
||||
if (wc >= 0x30a1 && wc <= 0x30f6) {
|
||||
buf[0] = 0xc7; buf[1] = wc - (wc < 0x30a5 ? 0x3026 : 0x3004); ret = 2;
|
||||
break;
|
||||
}
|
||||
if (wc == 0x30fc) { buf[0] = 0xc6; buf[1] = 0xe3; ret = 2; break; }
|
||||
if (wc == 0x30fd) { buf[0] = 0xc6; buf[1] = 0xda; ret = 2; break; }
|
||||
if (wc == 0x30fe) { buf[0] = 0xc6; buf[1] = 0xdb; ret = 2; break; }
|
||||
break;
|
||||
case 0x53:
|
||||
if (wc == 0x5344)
|
||||
return RET_ILUNI;
|
||||
break;
|
||||
case 0x58:
|
||||
if (wc == 0x58bb) { buf[0] = 0xf9; buf[1] = 0xd9; ret = 2; break; }
|
||||
break;
|
||||
case 0x5a:
|
||||
if (wc == 0x5afa) { buf[0] = 0xf9; buf[1] = 0xdc; ret = 2; break; }
|
||||
break;
|
||||
case 0x5f:
|
||||
if (wc == 0x5f5e) { buf[0] = 0xc2; buf[1] = 0x55; ret = 2; break; }
|
||||
if (wc == 0x5f5d)
|
||||
return RET_ILUNI;
|
||||
break;
|
||||
case 0x60:
|
||||
if (wc == 0x6052) { buf[0] = 0xf9; buf[1] = 0xda; ret = 2; break; }
|
||||
break;
|
||||
case 0x78:
|
||||
if (wc == 0x7881) { buf[0] = 0xf9; buf[1] = 0xd6; ret = 2; break; }
|
||||
break;
|
||||
case 0x7c:
|
||||
if (wc == 0x7ca7) { buf[0] = 0xf9; buf[1] = 0xdb; ret = 2; break; }
|
||||
break;
|
||||
case 0x88:
|
||||
if (wc == 0x88cf) { buf[0] = 0xf9; buf[1] = 0xd8; ret = 2; break; }
|
||||
break;
|
||||
case 0x92:
|
||||
if (wc == 0x92b9) { buf[0] = 0xf9; buf[1] = 0xd7; ret = 2; break; }
|
||||
break;
|
||||
case 0xe0: case 0xe1: case 0xe2: case 0xe3: case 0xe4: case 0xe5:
|
||||
case 0xe6: case 0xe7: case 0xe8: case 0xe9: case 0xea: case 0xeb:
|
||||
case 0xec: case 0xed: case 0xee: case 0xef: case 0xf0: case 0xf1:
|
||||
case 0xf2: case 0xf3: case 0xf4: case 0xf5: case 0xf6:
|
||||
{
|
||||
unsigned int i = wc - 0xe000;
|
||||
if (i < 5809) {
|
||||
unsigned int c1 = i / 157;
|
||||
unsigned int c2 = i % 157;
|
||||
buf[0] = c1 + (c1 < 5 ? 0xfa : c1 < 24 ? 0x89 : 0x69);
|
||||
buf[1] = c2 + (c2 < 0x3f ? 0x40 : 0x62);
|
||||
ret = 2;
|
||||
break;
|
||||
}
|
||||
}
|
||||
break;
|
||||
case 0xfe:
|
||||
if (wc == 0xfe51) { buf[0] = 0xa1; buf[1] = 0x4e; ret = 2; break; }
|
||||
if (wc == 0xfe68) { buf[0] = 0xa2; buf[1] = 0x42; ret = 2; break; }
|
||||
break;
|
||||
case 0xff:
|
||||
if (wc == 0xff0f) { buf[0] = 0xa1; buf[1] = 0xfe; ret = 2; break; }
|
||||
if (wc == 0xff3b) { buf[0] = 0xc6; buf[1] = 0xe4; ret = 2; break; }
|
||||
if (wc == 0xff3c) { buf[0] = 0xa2; buf[1] = 0x40; ret = 2; break; }
|
||||
if (wc == 0xff3d) { buf[0] = 0xc6; buf[1] = 0xe5; ret = 2; break; }
|
||||
if (wc == 0xff3e) { buf[0] = 0xc6; buf[1] = 0xd9; ret = 2; break; }
|
||||
if (wc == 0xff5e) { buf[0] = 0xa1; buf[1] = 0xe3; ret = 2; break; }
|
||||
if (wc == 0xffe0) { buf[0] = 0xa2; buf[1] = 0x46; ret = 2; break; }
|
||||
if (wc == 0xffe1) { buf[0] = 0xa2; buf[1] = 0x47; ret = 2; break; }
|
||||
if (wc == 0xffe3) { buf[0] = 0xa1; buf[1] = 0xc3; ret = 2; break; }
|
||||
if (wc == 0xffe5) { buf[0] = 0xa2; buf[1] = 0x44; ret = 2; break; }
|
||||
if (wc == 0xff64)
|
||||
return RET_ILUNI;
|
||||
break;
|
||||
}
|
||||
if (ret == RET_ILUNI)
|
||||
ret = big5_wctomb(conv,buf,wc,2);
|
||||
if (ret != RET_ILUNI) {
|
||||
if (ret != 2) abort();
|
||||
if (n < 2)
|
||||
return RET_TOOSMALL;
|
||||
r[0] = buf[0];
|
||||
r[1] = buf[1];
|
||||
return 2;
|
||||
}
|
||||
|
||||
return RET_ILUNI;
|
||||
}
|
197
libiconv/lib/big5hkscs1999.h
Normal file
197
libiconv/lib/big5hkscs1999.h
Normal file
@ -0,0 +1,197 @@
|
||||
/*
|
||||
* Copyright (C) 1999-2002, 2006 Free Software Foundation, Inc.
|
||||
* This file is part of the GNU LIBICONV Library.
|
||||
*
|
||||
* The GNU LIBICONV Library is free software; you can redistribute it
|
||||
* and/or modify it under the terms of the GNU Library General Public
|
||||
* License as published by the Free Software Foundation; either version 2
|
||||
* of the License, or (at your option) any later version.
|
||||
*
|
||||
* The GNU LIBICONV Library is distributed in the hope that it will be
|
||||
* useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* Library General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Library General Public
|
||||
* License along with the GNU LIBICONV Library; see the file COPYING.LIB.
|
||||
* If not, write to the Free Software Foundation, Inc., 51 Franklin Street,
|
||||
* Fifth Floor, Boston, MA 02110-1301, USA.
|
||||
*/
|
||||
|
||||
/*
|
||||
* BIG5-HKSCS:1999
|
||||
*/
|
||||
|
||||
/*
|
||||
* BIG5-HKSCS:1999 can be downloaded from
|
||||
* http://www.info.gov.hk/digital21/eng/hkscs/download.html
|
||||
* http://www.info.gov.hk/digital21/eng/hkscs/index.html
|
||||
*
|
||||
* It extends BIG5 (without the rows 0xC6..0xC7) through the ranges
|
||||
*
|
||||
* 0x{88..8D}{40..7E,A1..FE} 641 characters
|
||||
* 0x{8E..A0}{40..7E,A1..FE} 2898 characters
|
||||
* 0x{C6..C8}{40..7E,A1..FE} 359 characters
|
||||
* 0xF9{D6..FE} 41 characters
|
||||
* 0x{FA..FE}{40..7E,A1..FE} 763 characters
|
||||
*
|
||||
* Note that some HKSCS characters are not contained in Unicode 3.2
|
||||
* and are therefore best represented as sequences of Unicode characters:
|
||||
* 0x8862 U+00CA U+0304 LATIN CAPITAL LETTER E WITH CIRCUMFLEX AND MACRON
|
||||
* 0x8864 U+00CA U+030C LATIN CAPITAL LETTER E WITH CIRCUMFLEX AND CARON
|
||||
* 0x88A3 U+00EA U+0304 LATIN SMALL LETTER E WITH CIRCUMFLEX AND MACRON
|
||||
* 0x88A5 U+00EA U+030C LATIN SMALL LETTER E WITH CIRCUMFLEX AND CARON
|
||||
*/
|
||||
|
||||
#include "hkscs1999.h"
|
||||
#include "flushwc.h"
|
||||
|
||||
static int
|
||||
big5hkscs1999_mbtowc (conv_t conv, ucs4_t *pwc, const unsigned char *s, size_t n)
|
||||
{
|
||||
ucs4_t last_wc = conv->istate;
|
||||
if (last_wc) {
|
||||
/* Output the buffered character. */
|
||||
conv->istate = 0;
|
||||
*pwc = last_wc;
|
||||
return 0; /* Don't advance the input pointer. */
|
||||
} else {
|
||||
unsigned char c = *s;
|
||||
/* Code set 0 (ASCII) */
|
||||
if (c < 0x80)
|
||||
return ascii_mbtowc(conv,pwc,s,n);
|
||||
/* Code set 1 (BIG5 extended) */
|
||||
if (c >= 0xa1 && c < 0xff) {
|
||||
if (n < 2)
|
||||
return RET_TOOFEW(0);
|
||||
{
|
||||
unsigned char c2 = s[1];
|
||||
if ((c2 >= 0x40 && c2 < 0x7f) || (c2 >= 0xa1 && c2 < 0xff)) {
|
||||
if (!((c == 0xc6 && c2 >= 0xa1) || c == 0xc7)) {
|
||||
int ret = big5_mbtowc(conv,pwc,s,2);
|
||||
if (ret != RET_ILSEQ)
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
{
|
||||
int ret = hkscs1999_mbtowc(conv,pwc,s,n);
|
||||
if (ret != RET_ILSEQ)
|
||||
return ret;
|
||||
}
|
||||
if (c == 0x88) {
|
||||
if (n < 2)
|
||||
return RET_TOOFEW(0);
|
||||
{
|
||||
unsigned char c2 = s[1];
|
||||
if (c2 == 0x62 || c2 == 0x64 || c2 == 0xa3 || c2 == 0xa5) {
|
||||
/* It's a composed character. */
|
||||
ucs4_t wc1 = ((c2 >> 3) << 2) + 0x009a; /* = 0x00ca or 0x00ea */
|
||||
ucs4_t wc2 = ((c2 & 6) << 2) + 0x02fc; /* = 0x0304 or 0x030c */
|
||||
/* We cannot output two Unicode characters at once. So,
|
||||
output the first character and buffer the second one. */
|
||||
*pwc = wc1;
|
||||
conv->istate = wc2;
|
||||
return 2;
|
||||
}
|
||||
}
|
||||
}
|
||||
return RET_ILSEQ;
|
||||
}
|
||||
}
|
||||
|
||||
#define big5hkscs1999_flushwc normal_flushwc
|
||||
|
||||
static int
|
||||
big5hkscs1999_wctomb (conv_t conv, unsigned char *r, ucs4_t wc, size_t n)
|
||||
{
|
||||
int count = 0;
|
||||
unsigned char last = conv->ostate;
|
||||
|
||||
if (last) {
|
||||
/* last is = 0x66 or = 0xa7. */
|
||||
if (wc == 0x0304 || wc == 0x030c) {
|
||||
/* Output the combined character. */
|
||||
if (n >= 2) {
|
||||
r[0] = 0x88;
|
||||
r[1] = last + ((wc & 24) >> 2) - 4; /* = 0x62 or 0x64 or 0xa3 or 0xa5 */
|
||||
conv->ostate = 0;
|
||||
return 2;
|
||||
} else
|
||||
return RET_TOOSMALL;
|
||||
}
|
||||
|
||||
/* Output the buffered character. */
|
||||
if (n < 2)
|
||||
return RET_TOOSMALL;
|
||||
r[0] = 0x88;
|
||||
r[1] = last;
|
||||
r += 2;
|
||||
count = 2;
|
||||
}
|
||||
|
||||
/* Code set 0 (ASCII) */
|
||||
if (wc < 0x0080) {
|
||||
/* Plain ASCII character. */
|
||||
if (n > count) {
|
||||
r[0] = (unsigned char) wc;
|
||||
conv->ostate = 0;
|
||||
return count+1;
|
||||
} else
|
||||
return RET_TOOSMALL;
|
||||
} else {
|
||||
unsigned char buf[2];
|
||||
int ret;
|
||||
|
||||
/* Code set 1 (BIG5 extended) */
|
||||
ret = big5_wctomb(conv,buf,wc,2);
|
||||
if (ret != RET_ILUNI) {
|
||||
if (ret != 2) abort();
|
||||
if (!((buf[0] == 0xc6 && buf[1] >= 0xa1) || buf[0] == 0xc7)) {
|
||||
if (n >= count+2) {
|
||||
r[0] = buf[0];
|
||||
r[1] = buf[1];
|
||||
conv->ostate = 0;
|
||||
return count+2;
|
||||
} else
|
||||
return RET_TOOSMALL;
|
||||
}
|
||||
}
|
||||
ret = hkscs1999_wctomb(conv,buf,wc,2);
|
||||
if (ret != RET_ILUNI) {
|
||||
if (ret != 2) abort();
|
||||
if ((wc & ~0x0020) == 0x00ca) {
|
||||
/* A possible first character of a multi-character sequence. We have to
|
||||
buffer it. */
|
||||
if (!(buf[0] == 0x88 && (buf[1] == 0x66 || buf[1] == 0xa7))) abort();
|
||||
conv->ostate = buf[1]; /* = 0x66 or = 0xa7 */
|
||||
return count+0;
|
||||
}
|
||||
if (n >= count+2) {
|
||||
r[0] = buf[0];
|
||||
r[1] = buf[1];
|
||||
conv->ostate = 0;
|
||||
return count+2;
|
||||
} else
|
||||
return RET_TOOSMALL;
|
||||
}
|
||||
return RET_ILUNI;
|
||||
}
|
||||
}
|
||||
|
||||
static int
|
||||
big5hkscs1999_reset (conv_t conv, unsigned char *r, size_t n)
|
||||
{
|
||||
unsigned char last = conv->ostate;
|
||||
|
||||
if (last) {
|
||||
if (n < 2)
|
||||
return RET_TOOSMALL;
|
||||
r[0] = 0x88;
|
||||
r[1] = last;
|
||||
/* conv->ostate = 0; will be done by the caller */
|
||||
return 2;
|
||||
} else
|
||||
return 0;
|
||||
}
|
215
libiconv/lib/big5hkscs2001.h
Normal file
215
libiconv/lib/big5hkscs2001.h
Normal file
@ -0,0 +1,215 @@
|
||||
/*
|
||||
* Copyright (C) 1999-2002, 2006 Free Software Foundation, Inc.
|
||||
* This file is part of the GNU LIBICONV Library.
|
||||
*
|
||||
* The GNU LIBICONV Library is free software; you can redistribute it
|
||||
* and/or modify it under the terms of the GNU Library General Public
|
||||
* License as published by the Free Software Foundation; either version 2
|
||||
* of the License, or (at your option) any later version.
|
||||
*
|
||||
* The GNU LIBICONV Library is distributed in the hope that it will be
|
||||
* useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* Library General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Library General Public
|
||||
* License along with the GNU LIBICONV Library; see the file COPYING.LIB.
|
||||
* If not, write to the Free Software Foundation, Inc., 51 Franklin Street,
|
||||
* Fifth Floor, Boston, MA 02110-1301, USA.
|
||||
*/
|
||||
|
||||
/*
|
||||
* BIG5-HKSCS:2001
|
||||
*/
|
||||
|
||||
/*
|
||||
* BIG5-HKSCS:2001 can be downloaded from
|
||||
* http://www.info.gov.hk/digital21/eng/hkscs/download.html
|
||||
* http://www.info.gov.hk/digital21/eng/hkscs/index.html
|
||||
*
|
||||
* It extends BIG5-HKSCS:1999 through 116 characters.
|
||||
*
|
||||
* It extends BIG5 (without the rows 0xC6..0xC7) through the ranges
|
||||
*
|
||||
* 0x{88..8D}{40..7E,A1..FE} 757 characters
|
||||
* 0x{8E..A0}{40..7E,A1..FE} 2898 characters
|
||||
* 0x{C6..C8}{40..7E,A1..FE} 359 characters
|
||||
* 0xF9{D6..FE} 41 characters
|
||||
* 0x{FA..FE}{40..7E,A1..FE} 763 characters
|
||||
*
|
||||
* Note that some HKSCS characters are not contained in Unicode 3.2
|
||||
* and are therefore best represented as sequences of Unicode characters:
|
||||
* 0x8862 U+00CA U+0304 LATIN CAPITAL LETTER E WITH CIRCUMFLEX AND MACRON
|
||||
* 0x8864 U+00CA U+030C LATIN CAPITAL LETTER E WITH CIRCUMFLEX AND CARON
|
||||
* 0x88A3 U+00EA U+0304 LATIN SMALL LETTER E WITH CIRCUMFLEX AND MACRON
|
||||
* 0x88A5 U+00EA U+030C LATIN SMALL LETTER E WITH CIRCUMFLEX AND CARON
|
||||
*/
|
||||
|
||||
#include "hkscs2001.h"
|
||||
#include "flushwc.h"
|
||||
|
||||
static int
|
||||
big5hkscs2001_mbtowc (conv_t conv, ucs4_t *pwc, const unsigned char *s, size_t n)
|
||||
{
|
||||
ucs4_t last_wc = conv->istate;
|
||||
if (last_wc) {
|
||||
/* Output the buffered character. */
|
||||
conv->istate = 0;
|
||||
*pwc = last_wc;
|
||||
return 0; /* Don't advance the input pointer. */
|
||||
} else {
|
||||
unsigned char c = *s;
|
||||
/* Code set 0 (ASCII) */
|
||||
if (c < 0x80)
|
||||
return ascii_mbtowc(conv,pwc,s,n);
|
||||
/* Code set 1 (BIG5 extended) */
|
||||
if (c >= 0xa1 && c < 0xff) {
|
||||
if (n < 2)
|
||||
return RET_TOOFEW(0);
|
||||
{
|
||||
unsigned char c2 = s[1];
|
||||
if ((c2 >= 0x40 && c2 < 0x7f) || (c2 >= 0xa1 && c2 < 0xff)) {
|
||||
if (!((c == 0xc6 && c2 >= 0xa1) || c == 0xc7)) {
|
||||
int ret = big5_mbtowc(conv,pwc,s,2);
|
||||
if (ret != RET_ILSEQ)
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
{
|
||||
int ret = hkscs1999_mbtowc(conv,pwc,s,n);
|
||||
if (ret != RET_ILSEQ)
|
||||
return ret;
|
||||
}
|
||||
{
|
||||
int ret = hkscs2001_mbtowc(conv,pwc,s,n);
|
||||
if (ret != RET_ILSEQ)
|
||||
return ret;
|
||||
}
|
||||
if (c == 0x88) {
|
||||
if (n < 2)
|
||||
return RET_TOOFEW(0);
|
||||
{
|
||||
unsigned char c2 = s[1];
|
||||
if (c2 == 0x62 || c2 == 0x64 || c2 == 0xa3 || c2 == 0xa5) {
|
||||
/* It's a composed character. */
|
||||
ucs4_t wc1 = ((c2 >> 3) << 2) + 0x009a; /* = 0x00ca or 0x00ea */
|
||||
ucs4_t wc2 = ((c2 & 6) << 2) + 0x02fc; /* = 0x0304 or 0x030c */
|
||||
/* We cannot output two Unicode characters at once. So,
|
||||
output the first character and buffer the second one. */
|
||||
*pwc = wc1;
|
||||
conv->istate = wc2;
|
||||
return 2;
|
||||
}
|
||||
}
|
||||
}
|
||||
return RET_ILSEQ;
|
||||
}
|
||||
}
|
||||
|
||||
#define big5hkscs2001_flushwc normal_flushwc
|
||||
|
||||
static int
|
||||
big5hkscs2001_wctomb (conv_t conv, unsigned char *r, ucs4_t wc, size_t n)
|
||||
{
|
||||
int count = 0;
|
||||
unsigned char last = conv->ostate;
|
||||
|
||||
if (last) {
|
||||
/* last is = 0x66 or = 0xa7. */
|
||||
if (wc == 0x0304 || wc == 0x030c) {
|
||||
/* Output the combined character. */
|
||||
if (n >= 2) {
|
||||
r[0] = 0x88;
|
||||
r[1] = last + ((wc & 24) >> 2) - 4; /* = 0x62 or 0x64 or 0xa3 or 0xa5 */
|
||||
conv->ostate = 0;
|
||||
return 2;
|
||||
} else
|
||||
return RET_TOOSMALL;
|
||||
}
|
||||
|
||||
/* Output the buffered character. */
|
||||
if (n < 2)
|
||||
return RET_TOOSMALL;
|
||||
r[0] = 0x88;
|
||||
r[1] = last;
|
||||
r += 2;
|
||||
count = 2;
|
||||
}
|
||||
|
||||
/* Code set 0 (ASCII) */
|
||||
if (wc < 0x0080) {
|
||||
/* Plain ASCII character. */
|
||||
if (n > count) {
|
||||
r[0] = (unsigned char) wc;
|
||||
conv->ostate = 0;
|
||||
return count+1;
|
||||
} else
|
||||
return RET_TOOSMALL;
|
||||
} else {
|
||||
unsigned char buf[2];
|
||||
int ret;
|
||||
|
||||
/* Code set 1 (BIG5 extended) */
|
||||
ret = big5_wctomb(conv,buf,wc,2);
|
||||
if (ret != RET_ILUNI) {
|
||||
if (ret != 2) abort();
|
||||
if (!((buf[0] == 0xc6 && buf[1] >= 0xa1) || buf[0] == 0xc7)) {
|
||||
if (n >= count+2) {
|
||||
r[0] = buf[0];
|
||||
r[1] = buf[1];
|
||||
conv->ostate = 0;
|
||||
return count+2;
|
||||
} else
|
||||
return RET_TOOSMALL;
|
||||
}
|
||||
}
|
||||
ret = hkscs1999_wctomb(conv,buf,wc,2);
|
||||
if (ret != RET_ILUNI) {
|
||||
if (ret != 2) abort();
|
||||
if ((wc & ~0x0020) == 0x00ca) {
|
||||
/* A possible first character of a multi-character sequence. We have to
|
||||
buffer it. */
|
||||
if (!(buf[0] == 0x88 && (buf[1] == 0x66 || buf[1] == 0xa7))) abort();
|
||||
conv->ostate = buf[1]; /* = 0x66 or = 0xa7 */
|
||||
return count+0;
|
||||
}
|
||||
if (n >= count+2) {
|
||||
r[0] = buf[0];
|
||||
r[1] = buf[1];
|
||||
conv->ostate = 0;
|
||||
return count+2;
|
||||
} else
|
||||
return RET_TOOSMALL;
|
||||
}
|
||||
ret = hkscs2001_wctomb(conv,buf,wc,2);
|
||||
if (ret != RET_ILUNI) {
|
||||
if (ret != 2) abort();
|
||||
if (n >= count+2) {
|
||||
r[0] = buf[0];
|
||||
r[1] = buf[1];
|
||||
conv->ostate = 0;
|
||||
return count+2;
|
||||
} else
|
||||
return RET_TOOSMALL;
|
||||
}
|
||||
return RET_ILUNI;
|
||||
}
|
||||
}
|
||||
|
||||
static int
|
||||
big5hkscs2001_reset (conv_t conv, unsigned char *r, size_t n)
|
||||
{
|
||||
unsigned char last = conv->ostate;
|
||||
|
||||
if (last) {
|
||||
if (n < 2)
|
||||
return RET_TOOSMALL;
|
||||
r[0] = 0x88;
|
||||
r[1] = last;
|
||||
/* conv->ostate = 0; will be done by the caller */
|
||||
return 2;
|
||||
} else
|
||||
return 0;
|
||||
}
|
231
libiconv/lib/big5hkscs2004.h
Normal file
231
libiconv/lib/big5hkscs2004.h
Normal file
@ -0,0 +1,231 @@
|
||||
/*
|
||||
* Copyright (C) 1999-2002, 2006 Free Software Foundation, Inc.
|
||||
* This file is part of the GNU LIBICONV Library.
|
||||
*
|
||||
* The GNU LIBICONV Library is free software; you can redistribute it
|
||||
* and/or modify it under the terms of the GNU Library General Public
|
||||
* License as published by the Free Software Foundation; either version 2
|
||||
* of the License, or (at your option) any later version.
|
||||
*
|
||||
* The GNU LIBICONV Library is distributed in the hope that it will be
|
||||
* useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* Library General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Library General Public
|
||||
* License along with the GNU LIBICONV Library; see the file COPYING.LIB.
|
||||
* If not, write to the Free Software Foundation, Inc., 51 Franklin Street,
|
||||
* Fifth Floor, Boston, MA 02110-1301, USA.
|
||||
*/
|
||||
|
||||
/*
|
||||
* BIG5-HKSCS:2004
|
||||
*/
|
||||
|
||||
/*
|
||||
* BIG5-HKSCS:2004 can be downloaded from
|
||||
* http://www.info.gov.hk/digital21/eng/hkscs/download.html
|
||||
* http://www.info.gov.hk/digital21/eng/hkscs/index.html
|
||||
*
|
||||
* It extends BIG5-HKSCS:2001 through 123 characters.
|
||||
*
|
||||
* It extends BIG5 (without the rows 0xC6..0xC7) through the ranges
|
||||
*
|
||||
* 0x{87..8D}{40..7E,A1..FE} 880 characters
|
||||
* 0x{8E..A0}{40..7E,A1..FE} 2898 characters
|
||||
* 0x{C6..C8}{40..7E,A1..FE} 359 characters
|
||||
* 0xF9{D6..FE} 41 characters
|
||||
* 0x{FA..FE}{40..7E,A1..FE} 763 characters
|
||||
*
|
||||
* Note that some HKSCS characters are not contained in Unicode 3.2
|
||||
* and are therefore best represented as sequences of Unicode characters:
|
||||
* 0x8862 U+00CA U+0304 LATIN CAPITAL LETTER E WITH CIRCUMFLEX AND MACRON
|
||||
* 0x8864 U+00CA U+030C LATIN CAPITAL LETTER E WITH CIRCUMFLEX AND CARON
|
||||
* 0x88A3 U+00EA U+0304 LATIN SMALL LETTER E WITH CIRCUMFLEX AND MACRON
|
||||
* 0x88A5 U+00EA U+030C LATIN SMALL LETTER E WITH CIRCUMFLEX AND CARON
|
||||
*/
|
||||
|
||||
#include "hkscs2004.h"
|
||||
#include "flushwc.h"
|
||||
|
||||
static int
|
||||
big5hkscs2004_mbtowc (conv_t conv, ucs4_t *pwc, const unsigned char *s, size_t n)
|
||||
{
|
||||
ucs4_t last_wc = conv->istate;
|
||||
if (last_wc) {
|
||||
/* Output the buffered character. */
|
||||
conv->istate = 0;
|
||||
*pwc = last_wc;
|
||||
return 0; /* Don't advance the input pointer. */
|
||||
} else {
|
||||
unsigned char c = *s;
|
||||
/* Code set 0 (ASCII) */
|
||||
if (c < 0x80)
|
||||
return ascii_mbtowc(conv,pwc,s,n);
|
||||
/* Code set 1 (BIG5 extended) */
|
||||
if (c >= 0xa1 && c < 0xff) {
|
||||
if (n < 2)
|
||||
return RET_TOOFEW(0);
|
||||
{
|
||||
unsigned char c2 = s[1];
|
||||
if ((c2 >= 0x40 && c2 < 0x7f) || (c2 >= 0xa1 && c2 < 0xff)) {
|
||||
if (!((c == 0xc6 && c2 >= 0xa1) || c == 0xc7)) {
|
||||
int ret = big5_mbtowc(conv,pwc,s,2);
|
||||
if (ret != RET_ILSEQ)
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
{
|
||||
int ret = hkscs1999_mbtowc(conv,pwc,s,n);
|
||||
if (ret != RET_ILSEQ)
|
||||
return ret;
|
||||
}
|
||||
{
|
||||
int ret = hkscs2001_mbtowc(conv,pwc,s,n);
|
||||
if (ret != RET_ILSEQ)
|
||||
return ret;
|
||||
}
|
||||
{
|
||||
int ret = hkscs2004_mbtowc(conv,pwc,s,n);
|
||||
if (ret != RET_ILSEQ)
|
||||
return ret;
|
||||
}
|
||||
if (c == 0x88) {
|
||||
if (n < 2)
|
||||
return RET_TOOFEW(0);
|
||||
{
|
||||
unsigned char c2 = s[1];
|
||||
if (c2 == 0x62 || c2 == 0x64 || c2 == 0xa3 || c2 == 0xa5) {
|
||||
/* It's a composed character. */
|
||||
ucs4_t wc1 = ((c2 >> 3) << 2) + 0x009a; /* = 0x00ca or 0x00ea */
|
||||
ucs4_t wc2 = ((c2 & 6) << 2) + 0x02fc; /* = 0x0304 or 0x030c */
|
||||
/* We cannot output two Unicode characters at once. So,
|
||||
output the first character and buffer the second one. */
|
||||
*pwc = wc1;
|
||||
conv->istate = wc2;
|
||||
return 2;
|
||||
}
|
||||
}
|
||||
}
|
||||
return RET_ILSEQ;
|
||||
}
|
||||
}
|
||||
|
||||
#define big5hkscs2004_flushwc normal_flushwc
|
||||
|
||||
static int
|
||||
big5hkscs2004_wctomb (conv_t conv, unsigned char *r, ucs4_t wc, size_t n)
|
||||
{
|
||||
int count = 0;
|
||||
unsigned char last = conv->ostate;
|
||||
|
||||
if (last) {
|
||||
/* last is = 0x66 or = 0xa7. */
|
||||
if (wc == 0x0304 || wc == 0x030c) {
|
||||
/* Output the combined character. */
|
||||
if (n >= 2) {
|
||||
r[0] = 0x88;
|
||||
r[1] = last + ((wc & 24) >> 2) - 4; /* = 0x62 or 0x64 or 0xa3 or 0xa5 */
|
||||
conv->ostate = 0;
|
||||
return 2;
|
||||
} else
|
||||
return RET_TOOSMALL;
|
||||
}
|
||||
|
||||
/* Output the buffered character. */
|
||||
if (n < 2)
|
||||
return RET_TOOSMALL;
|
||||
r[0] = 0x88;
|
||||
r[1] = last;
|
||||
r += 2;
|
||||
count = 2;
|
||||
}
|
||||
|
||||
/* Code set 0 (ASCII) */
|
||||
if (wc < 0x0080) {
|
||||
/* Plain ASCII character. */
|
||||
if (n > count) {
|
||||
r[0] = (unsigned char) wc;
|
||||
conv->ostate = 0;
|
||||
return count+1;
|
||||
} else
|
||||
return RET_TOOSMALL;
|
||||
} else {
|
||||
unsigned char buf[2];
|
||||
int ret;
|
||||
|
||||
/* Code set 1 (BIG5 extended) */
|
||||
ret = big5_wctomb(conv,buf,wc,2);
|
||||
if (ret != RET_ILUNI) {
|
||||
if (ret != 2) abort();
|
||||
if (!((buf[0] == 0xc6 && buf[1] >= 0xa1) || buf[0] == 0xc7)) {
|
||||
if (n >= count+2) {
|
||||
r[0] = buf[0];
|
||||
r[1] = buf[1];
|
||||
conv->ostate = 0;
|
||||
return count+2;
|
||||
} else
|
||||
return RET_TOOSMALL;
|
||||
}
|
||||
}
|
||||
ret = hkscs1999_wctomb(conv,buf,wc,2);
|
||||
if (ret != RET_ILUNI) {
|
||||
if (ret != 2) abort();
|
||||
if ((wc & ~0x0020) == 0x00ca) {
|
||||
/* A possible first character of a multi-character sequence. We have to
|
||||
buffer it. */
|
||||
if (!(buf[0] == 0x88 && (buf[1] == 0x66 || buf[1] == 0xa7))) abort();
|
||||
conv->ostate = buf[1]; /* = 0x66 or = 0xa7 */
|
||||
return count+0;
|
||||
}
|
||||
if (n >= count+2) {
|
||||
r[0] = buf[0];
|
||||
r[1] = buf[1];
|
||||
conv->ostate = 0;
|
||||
return count+2;
|
||||
} else
|
||||
return RET_TOOSMALL;
|
||||
}
|
||||
ret = hkscs2001_wctomb(conv,buf,wc,2);
|
||||
if (ret != RET_ILUNI) {
|
||||
if (ret != 2) abort();
|
||||
if (n >= count+2) {
|
||||
r[0] = buf[0];
|
||||
r[1] = buf[1];
|
||||
conv->ostate = 0;
|
||||
return count+2;
|
||||
} else
|
||||
return RET_TOOSMALL;
|
||||
}
|
||||
ret = hkscs2004_wctomb(conv,buf,wc,2);
|
||||
if (ret != RET_ILUNI) {
|
||||
if (ret != 2) abort();
|
||||
if (n >= count+2) {
|
||||
r[0] = buf[0];
|
||||
r[1] = buf[1];
|
||||
conv->ostate = 0;
|
||||
return count+2;
|
||||
} else
|
||||
return RET_TOOSMALL;
|
||||
}
|
||||
return RET_ILUNI;
|
||||
}
|
||||
}
|
||||
|
||||
static int
|
||||
big5hkscs2004_reset (conv_t conv, unsigned char *r, size_t n)
|
||||
{
|
||||
unsigned char last = conv->ostate;
|
||||
|
||||
if (last) {
|
||||
if (n < 2)
|
||||
return RET_TOOSMALL;
|
||||
r[0] = 0x88;
|
||||
r[1] = last;
|
||||
/* conv->ostate = 0; will be done by the caller */
|
||||
return 2;
|
||||
} else
|
||||
return 0;
|
||||
}
|
125
libiconv/lib/c99.h
Normal file
125
libiconv/lib/c99.h
Normal file
@ -0,0 +1,125 @@
|
||||
/*
|
||||
* Copyright (C) 1999-2002 Free Software Foundation, Inc.
|
||||
* This file is part of the GNU LIBICONV Library.
|
||||
*
|
||||
* The GNU LIBICONV Library is free software; you can redistribute it
|
||||
* and/or modify it under the terms of the GNU Library General Public
|
||||
* License as published by the Free Software Foundation; either version 2
|
||||
* of the License, or (at your option) any later version.
|
||||
*
|
||||
* The GNU LIBICONV Library is distributed in the hope that it will be
|
||||
* useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* Library General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Library General Public
|
||||
* License along with the GNU LIBICONV Library; see the file COPYING.LIB.
|
||||
* If not, write to the Free Software Foundation, Inc., 51 Franklin Street,
|
||||
* Fifth Floor, Boston, MA 02110-1301, USA.
|
||||
*/
|
||||
|
||||
/*
|
||||
* C99
|
||||
* This is ASCII with \uXXXX and \UXXXXXXXX escape sequences, denoting Unicode
|
||||
* characters. See ISO/IEC 9899:1999, section 6.4.3.
|
||||
* The treatment of control characters in the range U+0080..U+009F is not
|
||||
* specified; we pass them through unmodified.
|
||||
*/
|
||||
|
||||
static int
|
||||
c99_mbtowc (conv_t conv, ucs4_t *pwc, const unsigned char *s, size_t n)
|
||||
{
|
||||
unsigned char c;
|
||||
ucs4_t wc;
|
||||
int i;
|
||||
|
||||
c = s[0];
|
||||
if (c < 0xa0) {
|
||||
if (c != '\\') {
|
||||
*pwc = c;
|
||||
return 1;
|
||||
}
|
||||
if (n < 2)
|
||||
return RET_TOOFEW(0);
|
||||
c = s[1];
|
||||
if (c == 'u') {
|
||||
wc = 0;
|
||||
for (i = 2; i < 6; i++) {
|
||||
if (n <= i)
|
||||
return RET_TOOFEW(0);
|
||||
c = s[i];
|
||||
if (c >= '0' && c <= '9')
|
||||
c -= '0';
|
||||
else if (c >= 'A' && c <= 'Z')
|
||||
c -= 'A'-10;
|
||||
else if (c >= 'a' && c <= 'z')
|
||||
c -= 'a'-10;
|
||||
else
|
||||
goto simply_backslash;
|
||||
wc |= (ucs4_t) c << (4 * (5-i));
|
||||
}
|
||||
if ((wc >= 0x00a0 && !(wc >= 0xd800 && wc < 0xe000))
|
||||
|| wc == 0x0024 || wc == 0x0040 || wc == 0x0060) {
|
||||
*pwc = wc;
|
||||
return 6;
|
||||
}
|
||||
} else if (c == 'U') {
|
||||
wc = 0;
|
||||
for (i = 2; i < 10; i++) {
|
||||
if (n <= i)
|
||||
return RET_TOOFEW(0);
|
||||
c = s[i];
|
||||
if (c >= '0' && c <= '9')
|
||||
c -= '0';
|
||||
else if (c >= 'A' && c <= 'Z')
|
||||
c -= 'A'-10;
|
||||
else if (c >= 'a' && c <= 'z')
|
||||
c -= 'a'-10;
|
||||
else
|
||||
goto simply_backslash;
|
||||
wc |= (ucs4_t) c << (4 * (9-i));
|
||||
}
|
||||
if ((wc >= 0x00a0 && !(wc >= 0xd800 && wc < 0xe000))
|
||||
|| wc == 0x0024 || wc == 0x0040 || wc == 0x0060) {
|
||||
*pwc = wc;
|
||||
return 10;
|
||||
}
|
||||
} else
|
||||
goto simply_backslash;
|
||||
}
|
||||
return RET_ILSEQ;
|
||||
simply_backslash:
|
||||
*pwc = '\\';
|
||||
return 1;
|
||||
}
|
||||
|
||||
static int
|
||||
c99_wctomb (conv_t conv, unsigned char *r, ucs4_t wc, size_t n)
|
||||
{
|
||||
if (wc < 0xa0) {
|
||||
*r = wc;
|
||||
return 1;
|
||||
} else {
|
||||
int result;
|
||||
unsigned char u;
|
||||
if (wc < 0x10000) {
|
||||
result = 6;
|
||||
u = 'u';
|
||||
} else {
|
||||
result = 10;
|
||||
u = 'U';
|
||||
}
|
||||
if (n >= result) {
|
||||
int count;
|
||||
r[0] = '\\';
|
||||
r[1] = u;
|
||||
r += 2;
|
||||
for (count = result-3; count >= 0; count--) {
|
||||
unsigned int i = (wc >> (4*count)) & 0x0f;
|
||||
*r++ = (i < 10 ? '0'+i : 'a'-10+i);
|
||||
}
|
||||
return result;
|
||||
} else
|
||||
return RET_TOOSMALL;
|
||||
}
|
||||
}
|
108
libiconv/lib/canonical.h
Normal file
108
libiconv/lib/canonical.h
Normal file
@ -0,0 +1,108 @@
|
||||
(int)(long)&((struct stringpool_t *)0)->stringpool_str314,
|
||||
(int)(long)&((struct stringpool_t *)0)->stringpool_str449,
|
||||
(int)(long)&((struct stringpool_t *)0)->stringpool_str609,
|
||||
(int)(long)&((struct stringpool_t *)0)->stringpool_str377,
|
||||
(int)(long)&((struct stringpool_t *)0)->stringpool_str532,
|
||||
(int)(long)&((struct stringpool_t *)0)->stringpool_str430,
|
||||
(int)(long)&((struct stringpool_t *)0)->stringpool_str311,
|
||||
(int)(long)&((struct stringpool_t *)0)->stringpool_str499,
|
||||
(int)(long)&((struct stringpool_t *)0)->stringpool_str397,
|
||||
(int)(long)&((struct stringpool_t *)0)->stringpool_str396,
|
||||
(int)(long)&((struct stringpool_t *)0)->stringpool_str596,
|
||||
(int)(long)&((struct stringpool_t *)0)->stringpool_str494,
|
||||
(int)(long)&((struct stringpool_t *)0)->stringpool_str585,
|
||||
(int)(long)&((struct stringpool_t *)0)->stringpool_str740,
|
||||
(int)(long)&((struct stringpool_t *)0)->stringpool_str638,
|
||||
(int)(long)&((struct stringpool_t *)0)->stringpool_str641,
|
||||
(int)(long)&((struct stringpool_t *)0)->stringpool_str512,
|
||||
(int)(long)&((struct stringpool_t *)0)->stringpool_str778,
|
||||
(int)(long)&((struct stringpool_t *)0)->stringpool_str479,
|
||||
(int)(long)&((struct stringpool_t *)0)->stringpool_str745,
|
||||
(int)(long)&((struct stringpool_t *)0)->stringpool_str48,
|
||||
(int)(long)&((struct stringpool_t *)0)->stringpool_str394,
|
||||
(int)(long)&((struct stringpool_t *)0)->stringpool_str121,
|
||||
(int)(long)&((struct stringpool_t *)0)->stringpool_str199,
|
||||
(int)(long)&((struct stringpool_t *)0)->stringpool_str319,
|
||||
(int)(long)&((struct stringpool_t *)0)->stringpool_str133,
|
||||
(int)(long)&((struct stringpool_t *)0)->stringpool_str151,
|
||||
(int)(long)&((struct stringpool_t *)0)->stringpool_str109,
|
||||
(int)(long)&((struct stringpool_t *)0)->stringpool_str361,
|
||||
(int)(long)&((struct stringpool_t *)0)->stringpool_str169,
|
||||
(int)(long)&((struct stringpool_t *)0)->stringpool_str145,
|
||||
(int)(long)&((struct stringpool_t *)0)->stringpool_str386,
|
||||
(int)(long)&((struct stringpool_t *)0)->stringpool_str128,
|
||||
(int)(long)&((struct stringpool_t *)0)->stringpool_str326,
|
||||
(int)(long)&((struct stringpool_t *)0)->stringpool_str140,
|
||||
(int)(long)&((struct stringpool_t *)0)->stringpool_str158,
|
||||
(int)(long)&((struct stringpool_t *)0)->stringpool_str116,
|
||||
(int)(long)&((struct stringpool_t *)0)->stringpool_str240,
|
||||
(int)(long)&((struct stringpool_t *)0)->stringpool_str786,
|
||||
(int)(long)&((struct stringpool_t *)0)->stringpool_str787,
|
||||
(int)(long)&((struct stringpool_t *)0)->stringpool_str357,
|
||||
(int)(long)&((struct stringpool_t *)0)->stringpool_str99,
|
||||
(int)(long)&((struct stringpool_t *)0)->stringpool_str177,
|
||||
(int)(long)&((struct stringpool_t *)0)->stringpool_str297,
|
||||
(int)(long)&((struct stringpool_t *)0)->stringpool_str111,
|
||||
(int)(long)&((struct stringpool_t *)0)->stringpool_str129,
|
||||
(int)(long)&((struct stringpool_t *)0)->stringpool_str87,
|
||||
(int)(long)&((struct stringpool_t *)0)->stringpool_str339,
|
||||
(int)(long)&((struct stringpool_t *)0)->stringpool_str147,
|
||||
(int)(long)&((struct stringpool_t *)0)->stringpool_str335,
|
||||
(int)(long)&((struct stringpool_t *)0)->stringpool_str134,
|
||||
(int)(long)&((struct stringpool_t *)0)->stringpool_str44,
|
||||
(int)(long)&((struct stringpool_t *)0)->stringpool_str338,
|
||||
(int)(long)&((struct stringpool_t *)0)->stringpool_str409,
|
||||
(int)(long)&((struct stringpool_t *)0)->stringpool_str346,
|
||||
(int)(long)&((struct stringpool_t *)0)->stringpool_str305,
|
||||
(int)(long)&((struct stringpool_t *)0)->stringpool_str370,
|
||||
(int)(long)&((struct stringpool_t *)0)->stringpool_str341,
|
||||
(int)(long)&((struct stringpool_t *)0)->stringpool_str700,
|
||||
(int)(long)&((struct stringpool_t *)0)->stringpool_str623,
|
||||
(int)(long)&((struct stringpool_t *)0)->stringpool_str853,
|
||||
(int)(long)&((struct stringpool_t *)0)->stringpool_str816,
|
||||
(int)(long)&((struct stringpool_t *)0)->stringpool_str381,
|
||||
(int)(long)&((struct stringpool_t *)0)->stringpool_str328,
|
||||
(int)(long)&((struct stringpool_t *)0)->stringpool_str288,
|
||||
(int)(long)&((struct stringpool_t *)0)->stringpool_str680,
|
||||
(int)(long)&((struct stringpool_t *)0)->stringpool_str255,
|
||||
(int)(long)&((struct stringpool_t *)0)->stringpool_str94,
|
||||
(int)(long)&((struct stringpool_t *)0)->stringpool_str152,
|
||||
(int)(long)&((struct stringpool_t *)0)->stringpool_str426,
|
||||
(int)(long)&((struct stringpool_t *)0)->stringpool_str146,
|
||||
(int)(long)&((struct stringpool_t *)0)->stringpool_str327,
|
||||
(int)(long)&((struct stringpool_t *)0)->stringpool_str342,
|
||||
(int)(long)&((struct stringpool_t *)0)->stringpool_str424,
|
||||
(int)(long)&((struct stringpool_t *)0)->stringpool_str194,
|
||||
(int)(long)&((struct stringpool_t *)0)->stringpool_str180,
|
||||
(int)(long)&((struct stringpool_t *)0)->stringpool_str253,
|
||||
(int)(long)&((struct stringpool_t *)0)->stringpool_str473,
|
||||
(int)(long)&((struct stringpool_t *)0)->stringpool_str831,
|
||||
(int)(long)&((struct stringpool_t *)0)->stringpool_str879,
|
||||
(int)(long)&((struct stringpool_t *)0)->stringpool_str780,
|
||||
(int)(long)&((struct stringpool_t *)0)->stringpool_str406,
|
||||
(int)(long)&((struct stringpool_t *)0)->stringpool_str523,
|
||||
(int)(long)&((struct stringpool_t *)0)->stringpool_str58,
|
||||
(int)(long)&((struct stringpool_t *)0)->stringpool_str392,
|
||||
(int)(long)&((struct stringpool_t *)0)->stringpool_str417,
|
||||
(int)(long)&((struct stringpool_t *)0)->stringpool_str447,
|
||||
(int)(long)&((struct stringpool_t *)0)->stringpool_str227,
|
||||
(int)(long)&((struct stringpool_t *)0)->stringpool_str665,
|
||||
(int)(long)&((struct stringpool_t *)0)->stringpool_str583,
|
||||
(int)(long)&((struct stringpool_t *)0)->stringpool_str622,
|
||||
(int)(long)&((struct stringpool_t *)0)->stringpool_str42,
|
||||
(int)(long)&((struct stringpool_t *)0)->stringpool_str420,
|
||||
(int)(long)&((struct stringpool_t *)0)->stringpool_str137,
|
||||
(int)(long)&((struct stringpool_t *)0)->stringpool_str562,
|
||||
(int)(long)&((struct stringpool_t *)0)->stringpool_str290,
|
||||
(int)(long)&((struct stringpool_t *)0)->stringpool_str387,
|
||||
(int)(long)&((struct stringpool_t *)0)->stringpool_str53,
|
||||
(int)(long)&((struct stringpool_t *)0)->stringpool_str522,
|
||||
(int)(long)&((struct stringpool_t *)0)->stringpool_str217,
|
||||
(int)(long)&((struct stringpool_t *)0)->stringpool_str323,
|
||||
(int)(long)&((struct stringpool_t *)0)->stringpool_str732,
|
||||
(int)(long)&((struct stringpool_t *)0)->stringpool_str720,
|
||||
(int)(long)&((struct stringpool_t *)0)->stringpool_str493,
|
||||
(int)(long)&((struct stringpool_t *)0)->stringpool_str237,
|
||||
(int)(long)&((struct stringpool_t *)0)->stringpool_str80,
|
||||
(int)(long)&((struct stringpool_t *)0)->stringpool_str599,
|
||||
(int)(long)&((struct stringpool_t *)0)->stringpool_str485,
|
9
libiconv/lib/canonical_aix.h
Normal file
9
libiconv/lib/canonical_aix.h
Normal file
@ -0,0 +1,9 @@
|
||||
(int)(long)&((struct stringpool2_t *)0)->stringpool_aix_0,
|
||||
(int)(long)&((struct stringpool2_t *)0)->stringpool_aix_1,
|
||||
(int)(long)&((struct stringpool2_t *)0)->stringpool_aix_2,
|
||||
(int)(long)&((struct stringpool2_t *)0)->stringpool_aix_3,
|
||||
(int)(long)&((struct stringpool2_t *)0)->stringpool_aix_4,
|
||||
(int)(long)&((struct stringpool2_t *)0)->stringpool_aix_5,
|
||||
(int)(long)&((struct stringpool2_t *)0)->stringpool_aix_6,
|
||||
(int)(long)&((struct stringpool2_t *)0)->stringpool_aix_10,
|
||||
(int)(long)&((struct stringpool2_t *)0)->stringpool_aix_14,
|
15
libiconv/lib/canonical_dos.h
Normal file
15
libiconv/lib/canonical_dos.h
Normal file
@ -0,0 +1,15 @@
|
||||
(int)(long)&((struct stringpool2_t *)0)->stringpool_dos_0,
|
||||
(int)(long)&((struct stringpool2_t *)0)->stringpool_dos_4,
|
||||
(int)(long)&((struct stringpool2_t *)0)->stringpool_dos_5,
|
||||
(int)(long)&((struct stringpool2_t *)0)->stringpool_dos_8,
|
||||
(int)(long)&((struct stringpool2_t *)0)->stringpool_dos_12,
|
||||
(int)(long)&((struct stringpool2_t *)0)->stringpool_dos_13,
|
||||
(int)(long)&((struct stringpool2_t *)0)->stringpool_dos_17,
|
||||
(int)(long)&((struct stringpool2_t *)0)->stringpool_dos_21,
|
||||
(int)(long)&((struct stringpool2_t *)0)->stringpool_dos_22,
|
||||
(int)(long)&((struct stringpool2_t *)0)->stringpool_dos_26,
|
||||
(int)(long)&((struct stringpool2_t *)0)->stringpool_dos_31,
|
||||
(int)(long)&((struct stringpool2_t *)0)->stringpool_dos_35,
|
||||
(int)(long)&((struct stringpool2_t *)0)->stringpool_dos_38,
|
||||
(int)(long)&((struct stringpool2_t *)0)->stringpool_dos_42,
|
||||
(int)(long)&((struct stringpool2_t *)0)->stringpool_dos_47,
|
7
libiconv/lib/canonical_extra.h
Normal file
7
libiconv/lib/canonical_extra.h
Normal file
@ -0,0 +1,7 @@
|
||||
(int)(long)&((struct stringpool2_t *)0)->stringpool_extra_0,
|
||||
(int)(long)&((struct stringpool2_t *)0)->stringpool_extra_1,
|
||||
(int)(long)&((struct stringpool2_t *)0)->stringpool_extra_2,
|
||||
(int)(long)&((struct stringpool2_t *)0)->stringpool_extra_3,
|
||||
(int)(long)&((struct stringpool2_t *)0)->stringpool_extra_4,
|
||||
(int)(long)&((struct stringpool2_t *)0)->stringpool_extra_6,
|
||||
(int)(long)&((struct stringpool2_t *)0)->stringpool_extra_8,
|
2
libiconv/lib/canonical_local.h
Normal file
2
libiconv/lib/canonical_local.h
Normal file
@ -0,0 +1,2 @@
|
||||
(int)(long)&((struct stringpool_t *)0)->stringpool_str28,
|
||||
(int)(long)&((struct stringpool_t *)0)->stringpool_str460,
|
2
libiconv/lib/canonical_osf1.h
Normal file
2
libiconv/lib/canonical_osf1.h
Normal file
@ -0,0 +1,2 @@
|
||||
(int)(long)&((struct stringpool2_t *)0)->stringpool_osf1_0,
|
||||
(int)(long)&((struct stringpool2_t *)0)->stringpool_osf1_1,
|
70
libiconv/lib/ces_big5.h
Normal file
70
libiconv/lib/ces_big5.h
Normal file
@ -0,0 +1,70 @@
|
||||
/*
|
||||
* Copyright (C) 1999-2001 Free Software Foundation, Inc.
|
||||
* This file is part of the GNU LIBICONV Library.
|
||||
*
|
||||
* The GNU LIBICONV Library is free software; you can redistribute it
|
||||
* and/or modify it under the terms of the GNU Library General Public
|
||||
* License as published by the Free Software Foundation; either version 2
|
||||
* of the License, or (at your option) any later version.
|
||||
*
|
||||
* The GNU LIBICONV Library is distributed in the hope that it will be
|
||||
* useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* Library General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Library General Public
|
||||
* License along with the GNU LIBICONV Library; see the file COPYING.LIB.
|
||||
* If not, write to the Free Software Foundation, Inc., 51 Franklin Street,
|
||||
* Fifth Floor, Boston, MA 02110-1301, USA.
|
||||
*/
|
||||
|
||||
/*
|
||||
* BIG-5
|
||||
*/
|
||||
|
||||
static int
|
||||
ces_big5_mbtowc (conv_t conv, ucs4_t *pwc, const unsigned char *s, size_t n)
|
||||
{
|
||||
unsigned char c = *s;
|
||||
/* Code set 0 (ASCII) */
|
||||
if (c < 0x80)
|
||||
return ascii_mbtowc(conv,pwc,s,n);
|
||||
/* Code set 1 (BIG5) */
|
||||
if (c >= 0xa1 && c < 0xff) {
|
||||
if (n < 2)
|
||||
return RET_TOOFEW(0);
|
||||
{
|
||||
unsigned char c2 = s[1];
|
||||
if ((c2 >= 0x40 && c2 < 0x7f) || (c2 >= 0xa1 && c2 < 0xff))
|
||||
return big5_mbtowc(conv,pwc,s,2);
|
||||
else
|
||||
return RET_ILSEQ;
|
||||
}
|
||||
}
|
||||
return RET_ILSEQ;
|
||||
}
|
||||
|
||||
static int
|
||||
ces_big5_wctomb (conv_t conv, unsigned char *r, ucs4_t wc, size_t n)
|
||||
{
|
||||
unsigned char buf[2];
|
||||
int ret;
|
||||
|
||||
/* Code set 0 (ASCII) */
|
||||
ret = ascii_wctomb(conv,r,wc,n);
|
||||
if (ret != RET_ILUNI)
|
||||
return ret;
|
||||
|
||||
/* Code set 1 (BIG5) */
|
||||
ret = big5_wctomb(conv,buf,wc,2);
|
||||
if (ret != RET_ILUNI) {
|
||||
if (ret != 2) abort();
|
||||
if (n < 2)
|
||||
return RET_TOOSMALL;
|
||||
r[0] = buf[0];
|
||||
r[1] = buf[1];
|
||||
return 2;
|
||||
}
|
||||
|
||||
return RET_ILUNI;
|
||||
}
|
65
libiconv/lib/ces_gbk.h
Normal file
65
libiconv/lib/ces_gbk.h
Normal file
@ -0,0 +1,65 @@
|
||||
/*
|
||||
* Copyright (C) 1999-2001, 2005 Free Software Foundation, Inc.
|
||||
* This file is part of the GNU LIBICONV Library.
|
||||
*
|
||||
* The GNU LIBICONV Library is free software; you can redistribute it
|
||||
* and/or modify it under the terms of the GNU Library General Public
|
||||
* License as published by the Free Software Foundation; either version 2
|
||||
* of the License, or (at your option) any later version.
|
||||
*
|
||||
* The GNU LIBICONV Library is distributed in the hope that it will be
|
||||
* useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* Library General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Library General Public
|
||||
* License along with the GNU LIBICONV Library; see the file COPYING.LIB.
|
||||
* If not, write to the Free Software Foundation, Inc., 51 Franklin Street,
|
||||
* Fifth Floor, Boston, MA 02110-1301, USA.
|
||||
*/
|
||||
|
||||
/*
|
||||
* GBK
|
||||
*/
|
||||
|
||||
static int
|
||||
ces_gbk_mbtowc (conv_t conv, ucs4_t *pwc, const unsigned char *s, size_t n)
|
||||
{
|
||||
unsigned char c = *s;
|
||||
|
||||
/* Code set 0 (ASCII or GB 1988-89) */
|
||||
if (c < 0x80)
|
||||
return ascii_mbtowc(conv,pwc,s,n);
|
||||
/* Code set 1 (GBK) */
|
||||
if (c >= 0x81 && c < 0xff) {
|
||||
if (n < 2)
|
||||
return RET_TOOFEW(0);
|
||||
return gbk_mbtowc(conv,pwc,s,2);
|
||||
}
|
||||
return RET_ILSEQ;
|
||||
}
|
||||
|
||||
static int
|
||||
ces_gbk_wctomb (conv_t conv, unsigned char *r, ucs4_t wc, size_t n)
|
||||
{
|
||||
unsigned char buf[2];
|
||||
int ret;
|
||||
|
||||
/* Code set 0 (ASCII or GB 1988-89) */
|
||||
ret = ascii_wctomb(conv,r,wc,n);
|
||||
if (ret != RET_ILUNI)
|
||||
return ret;
|
||||
|
||||
/* Code set 1 (GBK) */
|
||||
ret = gbk_wctomb(conv,buf,wc,2);
|
||||
if (ret != RET_ILUNI) {
|
||||
if (ret != 2) abort();
|
||||
if (n < 2)
|
||||
return RET_TOOSMALL;
|
||||
r[0] = buf[0];
|
||||
r[1] = buf[1];
|
||||
return 2;
|
||||
}
|
||||
|
||||
return RET_ILUNI;
|
||||
}
|
5
libiconv/lib/charset.alias
Normal file
5
libiconv/lib/charset.alias
Normal file
@ -0,0 +1,5 @@
|
||||
# This file contains a table of character encoding aliases,
|
||||
# suitable for operating system 'darwin10.0'.
|
||||
# It was automatically generated from config.charset.
|
||||
# Packages using this file:
|
||||
* UTF-8
|
4241
libiconv/lib/cjk_variants.h
Normal file
4241
libiconv/lib/cjk_variants.h
Normal file
File diff suppressed because it is too large
Load Diff
41
libiconv/lib/cns11643.h
Normal file
41
libiconv/lib/cns11643.h
Normal file
@ -0,0 +1,41 @@
|
||||
/*
|
||||
* Copyright (C) 1999-2001 Free Software Foundation, Inc.
|
||||
* This file is part of the GNU LIBICONV Library.
|
||||
*
|
||||
* The GNU LIBICONV Library is free software; you can redistribute it
|
||||
* and/or modify it under the terms of the GNU Library General Public
|
||||
* License as published by the Free Software Foundation; either version 2
|
||||
* of the License, or (at your option) any later version.
|
||||
*
|
||||
* The GNU LIBICONV Library is distributed in the hope that it will be
|
||||
* useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* Library General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Library General Public
|
||||
* License along with the GNU LIBICONV Library; see the file COPYING.LIB.
|
||||
* If not, write to the Free Software Foundation, Inc., 51 Franklin Street,
|
||||
* Fifth Floor, Boston, MA 02110-1301, USA.
|
||||
*/
|
||||
|
||||
/*
|
||||
* CNS 11643-1992
|
||||
*/
|
||||
|
||||
/* ISO-2022-CN and EUC-TW use CNS 11643-1992 planes 1 to 7. We also
|
||||
* have a table for the older plane 15. We use a trick to keep the
|
||||
* Unicode -> CNS 11643 table as small as possible (see cns11643_inv.h).
|
||||
*/
|
||||
|
||||
#include "cns11643_1.h"
|
||||
#include "cns11643_2.h"
|
||||
#include "cns11643_3.h"
|
||||
#include "cns11643_4.h"
|
||||
#include "cns11643_5.h"
|
||||
#include "cns11643_6.h"
|
||||
#include "cns11643_7.h"
|
||||
#include "cns11643_15.h"
|
||||
#include "cns11643_inv.h"
|
||||
|
||||
/* Returns the plane number (1,...,7,15) in r[0], the two bytes in r[1],r[2]. */
|
||||
#define cns11643_wctomb cns11643_inv_wctomb
|
893
libiconv/lib/cns11643_1.h
Normal file
893
libiconv/lib/cns11643_1.h
Normal file
@ -0,0 +1,893 @@
|
||||
/*
|
||||
* Copyright (C) 1999-2005 Free Software Foundation, Inc.
|
||||
* This file is part of the GNU LIBICONV Library.
|
||||
*
|
||||
* The GNU LIBICONV Library is free software; you can redistribute it
|
||||
* and/or modify it under the terms of the GNU Library General Public
|
||||
* License as published by the Free Software Foundation; either version 2
|
||||
* of the License, or (at your option) any later version.
|
||||
*
|
||||
* The GNU LIBICONV Library is distributed in the hope that it will be
|
||||
* useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* Library General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Library General Public
|
||||
* License along with the GNU LIBICONV Library; see the file COPYING.LIB.
|
||||
* If not, write to the Free Software Foundation, Inc., 51 Franklin Street,
|
||||
* Fifth Floor, Boston, MA 02110-1301, USA.
|
||||
*/
|
||||
|
||||
/*
|
||||
* CNS 11643-1992 plane 1
|
||||
*/
|
||||
|
||||
static const unsigned short cns11643_1_2uni_page21[500] = {
|
||||
/* 0x21 */
|
||||
0x3000, 0xff0c, 0x3001, 0x3002, 0xff0e, 0x30fb, 0xff1b, 0xff1a,
|
||||
0xff1f, 0xff01, 0xfe30, 0x2026, 0x2025, 0xfe50, 0xfe51, 0xfe52,
|
||||
0x00b7, 0xfe54, 0xfe55, 0xfe56, 0xfe57, 0xfe31, 0x2014, 0xfe32,
|
||||
0x2013, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xff08, 0xff09, 0xfe35,
|
||||
0xfe36, 0xff5b, 0xff5d, 0xfe37, 0xfe38, 0x3014, 0x3015, 0xfe39,
|
||||
0xfe3a, 0x3010, 0x3011, 0xfe3b, 0xfe3c, 0x300a, 0x300b, 0xfe3d,
|
||||
0xfe3e, 0x3008, 0x3009, 0xfe3f, 0xfe40, 0x300c, 0x300d, 0xfe41,
|
||||
0xfe42, 0x300e, 0x300f, 0xfe43, 0xfe44, 0xfe59, 0xfe5a, 0xfe5b,
|
||||
0xfe5c, 0xfe5d, 0xfe5e, 0x2018, 0x2019, 0x201c, 0x201d, 0x301d,
|
||||
0x301e, 0x2032, 0x2035, 0xff03, 0xff06, 0xff0a, 0x203b, 0x00a7,
|
||||
0x3003, 0x25cb, 0x25cf, 0x25b3, 0x25b2, 0x25ce, 0x2606, 0x2605,
|
||||
0x25c7, 0x25c6, 0x25a1, 0x25a0, 0x25bd, 0x25bc,
|
||||
/* 0x22 */
|
||||
0x32a3, 0x2105, 0x203e, 0xfffd, 0xff3f, 0xfffd, 0xfe49, 0xfe4a,
|
||||
0xfe4d, 0xfe4e, 0xfe4b, 0xfe4c, 0xfe5f, 0xfe60, 0xfe61, 0xff0b,
|
||||
0xff0d, 0x00d7, 0x00f7, 0x00b1, 0x221a, 0xff1c, 0xff1e, 0xff1d,
|
||||
0x2266, 0x2267, 0x2260, 0x221e, 0x2252, 0x2261, 0xfe62, 0xfe63,
|
||||
0xfe64, 0xfe66, 0xfe65, 0x223c, 0x2229, 0x222a, 0x22a5, 0x2220,
|
||||
0x221f, 0x22bf, 0x33d2, 0x33d1, 0x222b, 0x222e, 0x2235, 0x2234,
|
||||
0x2640, 0x2642, 0x2641, 0x2609, 0x2191, 0x2193, 0x2192, 0x2190,
|
||||
0x2196, 0x2197, 0x2199, 0x2198, 0x2016, 0xff5c, 0xff0f, 0xff3c,
|
||||
0x2215, 0xfe68, 0xff04, 0xffe5, 0x3012, 0xffe0, 0xffe1, 0xff05,
|
||||
0xff20, 0x2103, 0x2109, 0xfe69, 0xfe6a, 0xfe6b, 0x33d5, 0x339c,
|
||||
0x339d, 0x339e, 0x33ce, 0x33a1, 0x338e, 0x338f, 0x33c4, 0x00b0,
|
||||
0x5159, 0x515b, 0x515e, 0x515d, 0x5161, 0x5163,
|
||||
/* 0x23 */
|
||||
0x55e7, 0x74e9, 0x7cce, 0x2581, 0x2582, 0x2583, 0x2584, 0x2585,
|
||||
0x2586, 0x2587, 0x2588, 0x258f, 0x258e, 0x258d, 0x258c, 0x258b,
|
||||
0x258a, 0x2589, 0x253c, 0x2534, 0x252c, 0x2524, 0x251c, 0x2594,
|
||||
0x2500, 0x2502, 0x2595, 0x250c, 0x2510, 0x2514, 0x2518, 0x256d,
|
||||
0x256e, 0x2570, 0x256f, 0x2550, 0x255e, 0x256a, 0x2561, 0x25e2,
|
||||
0x25e3, 0x25e5, 0x25e4, 0x2571, 0x2572, 0x2573, 0xfffd, 0xfffd,
|
||||
0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd,
|
||||
0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd,
|
||||
0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd,
|
||||
0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd,
|
||||
0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd,
|
||||
0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd,
|
||||
/* 0x24 */
|
||||
0xff10, 0xff11, 0xff12, 0xff13, 0xff14, 0xff15, 0xff16, 0xff17,
|
||||
0xff18, 0xff19, 0x2160, 0x2161, 0x2162, 0x2163, 0x2164, 0x2165,
|
||||
0x2166, 0x2167, 0x2168, 0x2169, 0x3021, 0x3022, 0x3023, 0x3024,
|
||||
0x3025, 0x3026, 0x3027, 0x3028, 0x3029, 0xfffd, 0x5344, 0xfffd,
|
||||
0xff21, 0xff22, 0xff23, 0xff24, 0xff25, 0xff26, 0xff27, 0xff28,
|
||||
0xff29, 0xff2a, 0xff2b, 0xff2c, 0xff2d, 0xff2e, 0xff2f, 0xff30,
|
||||
0xff31, 0xff32, 0xff33, 0xff34, 0xff35, 0xff36, 0xff37, 0xff38,
|
||||
0xff39, 0xff3a, 0xff41, 0xff42, 0xff43, 0xff44, 0xff45, 0xff46,
|
||||
0xff47, 0xff48, 0xff49, 0xff4a, 0xff4b, 0xff4c, 0xff4d, 0xff4e,
|
||||
0xff4f, 0xff50, 0xff51, 0xff52, 0xff53, 0xff54, 0xff55, 0xff56,
|
||||
0xff57, 0xff58, 0xff59, 0xff5a, 0x0391, 0x0392, 0x0393, 0x0394,
|
||||
0x0395, 0x0396, 0x0397, 0x0398, 0x0399, 0x039a,
|
||||
/* 0x25 */
|
||||
0x039b, 0x039c, 0x039d, 0x039e, 0x039f, 0x03a0, 0x03a1, 0x03a3,
|
||||
0x03a4, 0x03a5, 0x03a6, 0x03a7, 0x03a8, 0x03a9, 0x03b1, 0x03b2,
|
||||
0x03b3, 0x03b4, 0x03b5, 0x03b6, 0x03b7, 0x03b8, 0x03b9, 0x03ba,
|
||||
0x03bb, 0x03bc, 0x03bd, 0x03be, 0x03bf, 0x03c0, 0x03c1, 0x03c3,
|
||||
0x03c4, 0x03c5, 0x03c6, 0x03c7, 0x03c8, 0x03c9, 0x3105, 0x3106,
|
||||
0x3107, 0x3108, 0x3109, 0x310a, 0x310b, 0x310c, 0x310d, 0x310e,
|
||||
0x310f, 0x3110, 0x3111, 0x3112, 0x3113, 0x3114, 0x3115, 0x3116,
|
||||
0x3117, 0x3118, 0x3119, 0x311a, 0x311b, 0x311c, 0x311d, 0x311e,
|
||||
0x311f, 0x3120, 0x3121, 0x3122, 0x3123, 0x3124, 0x3125, 0x3126,
|
||||
0x3127, 0x3128, 0x3129, 0x02d9, 0x02c9, 0x02ca, 0x02c7, 0x02cb,
|
||||
0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd,
|
||||
0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd,
|
||||
/* 0x26 */
|
||||
0x2460, 0x2461, 0x2462, 0x2463, 0x2464, 0x2465, 0x2466, 0x2467,
|
||||
0x2468, 0x2469, 0x2474, 0x2475, 0x2476, 0x2477, 0x2478, 0x2479,
|
||||
0x247a, 0x247b, 0x247c, 0x247d, 0x2170, 0x2171, 0x2172, 0x2173,
|
||||
0x2174, 0x2175, 0x2176, 0x2177, 0x2178, 0x2179,
|
||||
};
|
||||
static const unsigned short cns11643_1_2uni_page42[34] = {
|
||||
/* 0x42 */
|
||||
0x2400, 0x2401, 0x2402, 0x2403, 0x2404, 0x2405, 0x2406, 0x2407,
|
||||
0x2408, 0x2409, 0x240a, 0x240b, 0x240c, 0x240d, 0x240e, 0x240f,
|
||||
0x2410, 0x2411, 0x2412, 0x2413, 0x2414, 0x2415, 0x2416, 0x2417,
|
||||
0x2418, 0x2419, 0x241a, 0x241b, 0x241c, 0x241d, 0x241e, 0x241f,
|
||||
0x2421, 0x20ac,
|
||||
};
|
||||
static const unsigned short cns11643_1_2uni_page44[5401] = {
|
||||
/* 0x44 */
|
||||
0x4e00, 0x4e59, 0x4e01, 0x4e03, 0x4e43, 0x4e5d, 0x4e86, 0x4e8c,
|
||||
0x4eba, 0x513f, 0x5165, 0x516b, 0x51e0, 0x5200, 0x5201, 0x529b,
|
||||
0x5315, 0x5341, 0x535c, 0x53c8, 0x4e09, 0x4e0b, 0x4e08, 0x4e0a,
|
||||
0x4e2b, 0x4e38, 0x51e1, 0x4e45, 0x4e48, 0x4e5f, 0x4e5e, 0x4e8e,
|
||||
0x4ea1, 0x5140, 0x5203, 0x52fa, 0x5343, 0x53c9, 0x53e3, 0x571f,
|
||||
0x58eb, 0x5915, 0x5927, 0x5973, 0x5b50, 0x5b51, 0x5b53, 0x5bf8,
|
||||
0x5c0f, 0x5c22, 0x5c38, 0x5c71, 0x5ddd, 0x5de5, 0x5df1, 0x5df2,
|
||||
0x5df3, 0x5dfe, 0x5e72, 0x5efe, 0x5f0b, 0x5f13, 0x624d, 0x4e11,
|
||||
0x4e10, 0x4e0d, 0x4e2d, 0x4e30, 0x4e39, 0x4e4b, 0x5c39, 0x4e88,
|
||||
0x4e91, 0x4e95, 0x4e92, 0x4e94, 0x4ea2, 0x4ec1, 0x4ec0, 0x4ec3,
|
||||
0x4ec6, 0x4ec7, 0x4ecd, 0x4eca, 0x4ecb, 0x4ec4, 0x5143, 0x5141,
|
||||
0x5167, 0x516d, 0x516e, 0x516c, 0x5197, 0x51f6,
|
||||
/* 0x45 */
|
||||
0x5206, 0x5207, 0x5208, 0x52fb, 0x52fe, 0x52ff, 0x5316, 0x5339,
|
||||
0x5348, 0x5347, 0x5345, 0x535e, 0x5384, 0x53cb, 0x53ca, 0x53cd,
|
||||
0x58ec, 0x5929, 0x592b, 0x592a, 0x592d, 0x5b54, 0x5c11, 0x5c24,
|
||||
0x5c3a, 0x5c6f, 0x5df4, 0x5e7b, 0x5eff, 0x5f14, 0x5f15, 0x5fc3,
|
||||
0x6208, 0x6236, 0x624b, 0x624e, 0x652f, 0x6587, 0x6597, 0x65a4,
|
||||
0x65b9, 0x65e5, 0x66f0, 0x6708, 0x6728, 0x6b20, 0x6b62, 0x6b79,
|
||||
0x6bcb, 0x6bd4, 0x6bdb, 0x6c0f, 0x6c34, 0x706b, 0x722a, 0x7236,
|
||||
0x723b, 0x7247, 0x7259, 0x725b, 0x72ac, 0x738b, 0x4e19, 0x4e16,
|
||||
0x4e15, 0x4e14, 0x4e18, 0x4e3b, 0x4e4d, 0x4e4f, 0x4e4e, 0x4ee5,
|
||||
0x4ed8, 0x4ed4, 0x4ed5, 0x4ed6, 0x4ed7, 0x4ee3, 0x4ee4, 0x4ed9,
|
||||
0x4ede, 0x5145, 0x5144, 0x5189, 0x518a, 0x51ac, 0x51f9, 0x51fa,
|
||||
0x51f8, 0x520a, 0x52a0, 0x529f, 0x5305, 0x5306,
|
||||
/* 0x46 */
|
||||
0x5317, 0x531d, 0x4edf, 0x534a, 0x5349, 0x5361, 0x5360, 0x536f,
|
||||
0x536e, 0x53bb, 0x53ef, 0x53e4, 0x53f3, 0x53ec, 0x53ee, 0x53e9,
|
||||
0x53e8, 0x53fc, 0x53f8, 0x53f5, 0x53eb, 0x53e6, 0x53ea, 0x53f2,
|
||||
0x53f1, 0x53f0, 0x53e5, 0x53ed, 0x53fb, 0x56db, 0x56da, 0x5916,
|
||||
0x592e, 0x5931, 0x5974, 0x5976, 0x5b55, 0x5b83, 0x5c3c, 0x5de8,
|
||||
0x5de7, 0x5de6, 0x5e02, 0x5e03, 0x5e73, 0x5e7c, 0x5f01, 0x5f18,
|
||||
0x5f17, 0x5fc5, 0x620a, 0x6253, 0x6254, 0x6252, 0x6251, 0x65a5,
|
||||
0x65e6, 0x672e, 0x672c, 0x672a, 0x672b, 0x672d, 0x6b63, 0x6bcd,
|
||||
0x6c11, 0x6c10, 0x6c38, 0x6c41, 0x6c40, 0x6c3e, 0x72af, 0x7384,
|
||||
0x7389, 0x74dc, 0x74e6, 0x7518, 0x751f, 0x7528, 0x7529, 0x7530,
|
||||
0x7531, 0x7532, 0x7533, 0x758b, 0x767d, 0x76ae, 0x76bf, 0x76ee,
|
||||
0x77db, 0x77e2, 0x77f3, 0x793a, 0x79be, 0x7a74,
|
||||
/* 0x47 */
|
||||
0x7acb, 0x4e1e, 0x4e1f, 0x4e52, 0x4e53, 0x4e69, 0x4e99, 0x4ea4,
|
||||
0x4ea6, 0x4ea5, 0x4eff, 0x4f09, 0x4f19, 0x4f0a, 0x4f15, 0x4f0d,
|
||||
0x4f10, 0x4f11, 0x4f0f, 0x4ef2, 0x4ef6, 0x4efb, 0x4ef0, 0x4ef3,
|
||||
0x4efd, 0x4f01, 0x4f0b, 0x5149, 0x5147, 0x5146, 0x5148, 0x5168,
|
||||
0x5171, 0x518d, 0x51b0, 0x5217, 0x5211, 0x5212, 0x520e, 0x5216,
|
||||
0x52a3, 0x5308, 0x5321, 0x5320, 0x5370, 0x5371, 0x5409, 0x540f,
|
||||
0x540c, 0x540a, 0x5410, 0x5401, 0x540b, 0x5404, 0x5411, 0x540d,
|
||||
0x5408, 0x5403, 0x540e, 0x5406, 0x5412, 0x56e0, 0x56de, 0x56dd,
|
||||
0x5733, 0x5730, 0x5728, 0x572d, 0x572c, 0x572f, 0x5729, 0x5919,
|
||||
0x591a, 0x5937, 0x5938, 0x5984, 0x5978, 0x5983, 0x597d, 0x5979,
|
||||
0x5982, 0x5981, 0x5b57, 0x5b58, 0x5b87, 0x5b88, 0x5b85, 0x5b89,
|
||||
0x5bfa, 0x5c16, 0x5c79, 0x5dde, 0x5e06, 0x5e76,
|
||||
/* 0x48 */
|
||||
0x5e74, 0x5f0f, 0x5f1b, 0x5fd9, 0x5fd6, 0x620e, 0x620c, 0x620d,
|
||||
0x6210, 0x6263, 0x625b, 0x6258, 0x6536, 0x65e9, 0x65e8, 0x65ec,
|
||||
0x65ed, 0x66f2, 0x66f3, 0x6709, 0x673d, 0x6734, 0x6731, 0x6735,
|
||||
0x6b21, 0x6b64, 0x6b7b, 0x6c16, 0x6c5d, 0x6c57, 0x6c59, 0x6c5f,
|
||||
0x6c60, 0x6c50, 0x6c55, 0x6c61, 0x6c5b, 0x6c4d, 0x6c4e, 0x7070,
|
||||
0x725f, 0x725d, 0x767e, 0x7af9, 0x7c73, 0x7cf8, 0x7f36, 0x7f8a,
|
||||
0x7fbd, 0x8001, 0x8003, 0x800c, 0x8012, 0x8033, 0x807f, 0x8089,
|
||||
0x808b, 0x808c, 0x81e3, 0x81ea, 0x81f3, 0x81fc, 0x820c, 0x821b,
|
||||
0x821f, 0x826e, 0x8272, 0x827e, 0x866b, 0x8840, 0x884c, 0x8863,
|
||||
0x897f, 0x9621, 0x4e32, 0x4ea8, 0x4f4d, 0x4f4f, 0x4f47, 0x4f57,
|
||||
0x4f5e, 0x4f34, 0x4f5b, 0x4f55, 0x4f30, 0x4f50, 0x4f51, 0x4f3d,
|
||||
0x4f3a, 0x4f38, 0x4f43, 0x4f54, 0x4f3c, 0x4f46,
|
||||
/* 0x49 */
|
||||
0x4f63, 0x4f5c, 0x4f60, 0x4f2f, 0x4f4e, 0x4f36, 0x4f59, 0x4f5d,
|
||||
0x4f48, 0x4f5a, 0x514c, 0x514b, 0x514d, 0x5175, 0x51b6, 0x51b7,
|
||||
0x5225, 0x5224, 0x5229, 0x522a, 0x5228, 0x52ab, 0x52a9, 0x52aa,
|
||||
0x52ac, 0x5323, 0x5373, 0x5375, 0x541d, 0x542d, 0x541e, 0x543e,
|
||||
0x5426, 0x544e, 0x5427, 0x5446, 0x5443, 0x5433, 0x5448, 0x5442,
|
||||
0x541b, 0x5429, 0x544a, 0x5439, 0x543b, 0x5438, 0x542e, 0x5435,
|
||||
0x5436, 0x5420, 0x543c, 0x5440, 0x5431, 0x542b, 0x541f, 0x542c,
|
||||
0x56ea, 0x56f0, 0x56e4, 0x56eb, 0x574a, 0x5751, 0x5740, 0x574d,
|
||||
0x5747, 0x574e, 0x573e, 0x5750, 0x574f, 0x573b, 0x58ef, 0x593e,
|
||||
0x599d, 0x5992, 0x59a8, 0x599e, 0x59a3, 0x5999, 0x5996, 0x598d,
|
||||
0x59a4, 0x5993, 0x598a, 0x59a5, 0x5b5d, 0x5b5c, 0x5b5a, 0x5b5b,
|
||||
0x5b8c, 0x5b8b, 0x5b8f, 0x5c2c, 0x5c40, 0x5c41,
|
||||
/* 0x4a */
|
||||
0x5c3f, 0x5c3e, 0x5c90, 0x5c91, 0x5c94, 0x5c8c, 0x5deb, 0x5e0c,
|
||||
0x5e8f, 0x5e87, 0x5e8a, 0x5ef7, 0x5f04, 0x5f1f, 0x5f64, 0x5f62,
|
||||
0x5f77, 0x5f79, 0x5fd8, 0x5fcc, 0x5fd7, 0x5fcd, 0x5ff1, 0x5feb,
|
||||
0x5ff8, 0x5fea, 0x6212, 0x6211, 0x6284, 0x6297, 0x6296, 0x6280,
|
||||
0x6276, 0x6289, 0x626d, 0x628a, 0x627c, 0x627e, 0x6279, 0x6273,
|
||||
0x6292, 0x626f, 0x6298, 0x626e, 0x6295, 0x6293, 0x6291, 0x6286,
|
||||
0x6539, 0x653b, 0x6538, 0x65f1, 0x66f4, 0x675f, 0x674e, 0x674f,
|
||||
0x6750, 0x6751, 0x675c, 0x6756, 0x675e, 0x6749, 0x6746, 0x6760,
|
||||
0x6753, 0x6757, 0x6b65, 0x6bcf, 0x6c42, 0x6c5e, 0x6c99, 0x6c81,
|
||||
0x6c88, 0x6c89, 0x6c85, 0x6c9b, 0x6c6a, 0x6c7a, 0x6c90, 0x6c70,
|
||||
0x6c8c, 0x6c68, 0x6c96, 0x6c92, 0x6c7d, 0x6c83, 0x6c72, 0x6c7e,
|
||||
0x6c74, 0x6c86, 0x6c76, 0x6c8d, 0x6c94, 0x6c98,
|
||||
/* 0x4b */
|
||||
0x6c82, 0x7076, 0x707c, 0x707d, 0x7078, 0x7262, 0x7261, 0x7260,
|
||||
0x72c4, 0x72c2, 0x7396, 0x752c, 0x752b, 0x7537, 0x7538, 0x7682,
|
||||
0x76ef, 0x77e3, 0x79c1, 0x79c0, 0x79bf, 0x7a76, 0x7cfb, 0x7f55,
|
||||
0x8096, 0x8093, 0x809d, 0x8098, 0x809b, 0x809a, 0x80b2, 0x826f,
|
||||
0x8292, 0x828b, 0x828d, 0x898b, 0x89d2, 0x8a00, 0x8c37, 0x8c46,
|
||||
0x8c55, 0x8c9d, 0x8d64, 0x8d70, 0x8db3, 0x8eab, 0x8eca, 0x8f9b,
|
||||
0x8fb0, 0x8fc2, 0x8fc6, 0x8fc5, 0x8fc4, 0x5de1, 0x9091, 0x90a2,
|
||||
0x90aa, 0x90a6, 0x90a3, 0x9149, 0x91c6, 0x91cc, 0x9632, 0x962e,
|
||||
0x9631, 0x962a, 0x962c, 0x4e26, 0x4e56, 0x4e73, 0x4e8b, 0x4e9b,
|
||||
0x4e9e, 0x4eab, 0x4eac, 0x4f6f, 0x4f9d, 0x4f8d, 0x4f73, 0x4f7f,
|
||||
0x4f6c, 0x4f9b, 0x4f8b, 0x4f86, 0x4f83, 0x4f70, 0x4f75, 0x4f88,
|
||||
0x4f69, 0x4f7b, 0x4f96, 0x4f7e, 0x4f8f, 0x4f91,
|
||||
/* 0x4c */
|
||||
0x4f7a, 0x5154, 0x5152, 0x5155, 0x5169, 0x5177, 0x5176, 0x5178,
|
||||
0x51bd, 0x51fd, 0x523b, 0x5238, 0x5237, 0x523a, 0x5230, 0x522e,
|
||||
0x5236, 0x5241, 0x52be, 0x52bb, 0x5352, 0x5354, 0x5353, 0x5351,
|
||||
0x5366, 0x5377, 0x5378, 0x5379, 0x53d6, 0x53d4, 0x53d7, 0x5473,
|
||||
0x5475, 0x5496, 0x5478, 0x5495, 0x5480, 0x547b, 0x5477, 0x5484,
|
||||
0x5492, 0x5486, 0x547c, 0x5490, 0x5471, 0x5476, 0x548c, 0x549a,
|
||||
0x5462, 0x5468, 0x548b, 0x547d, 0x548e, 0x56fa, 0x5783, 0x5777,
|
||||
0x576a, 0x5769, 0x5761, 0x5766, 0x5764, 0x577c, 0x591c, 0x5949,
|
||||
0x5947, 0x5948, 0x5944, 0x5954, 0x59be, 0x59bb, 0x59d4, 0x59b9,
|
||||
0x59ae, 0x59d1, 0x59c6, 0x59d0, 0x59cd, 0x59cb, 0x59d3, 0x59ca,
|
||||
0x59af, 0x59b3, 0x59d2, 0x59c5, 0x5b5f, 0x5b64, 0x5b63, 0x5b97,
|
||||
0x5b9a, 0x5b98, 0x5b9c, 0x5b99, 0x5b9b, 0x5c1a,
|
||||
/* 0x4d */
|
||||
0x5c48, 0x5c45, 0x5c46, 0x5cb7, 0x5ca1, 0x5cb8, 0x5ca9, 0x5cab,
|
||||
0x5cb1, 0x5cb3, 0x5e18, 0x5e1a, 0x5e16, 0x5e15, 0x5e1b, 0x5e11,
|
||||
0x5e78, 0x5e9a, 0x5e97, 0x5e9c, 0x5e95, 0x5e96, 0x5ef6, 0x5f26,
|
||||
0x5f27, 0x5f29, 0x5f80, 0x5f81, 0x5f7f, 0x5f7c, 0x5fdd, 0x5fe0,
|
||||
0x5ffd, 0x5ff5, 0x5fff, 0x600f, 0x6014, 0x602f, 0x6035, 0x6016,
|
||||
0x602a, 0x6015, 0x6021, 0x6027, 0x6029, 0x602b, 0x601b, 0x6216,
|
||||
0x6215, 0x623f, 0x623e, 0x6240, 0x627f, 0x62c9, 0x62cc, 0x62c4,
|
||||
0x62bf, 0x62c2, 0x62b9, 0x62d2, 0x62db, 0x62ab, 0x62d3, 0x62d4,
|
||||
0x62cb, 0x62c8, 0x62a8, 0x62bd, 0x62bc, 0x62d0, 0x62d9, 0x62c7,
|
||||
0x62cd, 0x62b5, 0x62da, 0x62b1, 0x62d8, 0x62d6, 0x62d7, 0x62c6,
|
||||
0x62ac, 0x62ce, 0x653e, 0x65a7, 0x65bc, 0x65fa, 0x6614, 0x6613,
|
||||
0x660c, 0x6606, 0x6602, 0x660e, 0x6600, 0x660f,
|
||||
/* 0x4e */
|
||||
0x6615, 0x660a, 0x6607, 0x670d, 0x670b, 0x676d, 0x678b, 0x6795,
|
||||
0x6771, 0x679c, 0x6773, 0x6777, 0x6787, 0x679d, 0x6797, 0x676f,
|
||||
0x6770, 0x677f, 0x6789, 0x677e, 0x6790, 0x6775, 0x679a, 0x6793,
|
||||
0x677c, 0x676a, 0x6772, 0x6b23, 0x6b66, 0x6b67, 0x6b7f, 0x6c13,
|
||||
0x6c1b, 0x6ce3, 0x6ce8, 0x6cf3, 0x6cb1, 0x6ccc, 0x6ce5, 0x6cb3,
|
||||
0x6cbd, 0x6cbe, 0x6cbc, 0x6ce2, 0x6cab, 0x6cd5, 0x6cd3, 0x6cb8,
|
||||
0x6cc4, 0x6cb9, 0x6cc1, 0x6cae, 0x6cd7, 0x6cc5, 0x6cf1, 0x6cbf,
|
||||
0x6cbb, 0x6ce1, 0x6cdb, 0x6cca, 0x6cac, 0x6cef, 0x6cdc, 0x6cd6,
|
||||
0x6ce0, 0x7095, 0x708e, 0x7092, 0x708a, 0x7099, 0x722c, 0x722d,
|
||||
0x7238, 0x7248, 0x7267, 0x7269, 0x72c0, 0x72ce, 0x72d9, 0x72d7,
|
||||
0x72d0, 0x73a9, 0x73a8, 0x739f, 0x73ab, 0x73a5, 0x753d, 0x759d,
|
||||
0x7599, 0x759a, 0x7684, 0x76c2, 0x76f2, 0x76f4,
|
||||
/* 0x4f */
|
||||
0x77e5, 0x77fd, 0x793e, 0x7940, 0x7941, 0x79c9, 0x79c8, 0x7a7a,
|
||||
0x7a79, 0x7afa, 0x7cfe, 0x7f54, 0x7f8c, 0x7f8b, 0x8005, 0x80ba,
|
||||
0x80a5, 0x80a2, 0x80b1, 0x80a1, 0x80ab, 0x80a9, 0x80b4, 0x80aa,
|
||||
0x80af, 0x81e5, 0x81fe, 0x820d, 0x82b3, 0x829d, 0x8299, 0x82ad,
|
||||
0x82bd, 0x829f, 0x82b9, 0x82b1, 0x82ac, 0x82a5, 0x82af, 0x82b8,
|
||||
0x82a3, 0x82b0, 0x82be, 0x82b7, 0x864e, 0x8671, 0x521d, 0x8868,
|
||||
0x8ecb, 0x8fce, 0x8fd4, 0x8fd1, 0x90b5, 0x90b8, 0x90b1, 0x90b6,
|
||||
0x91c7, 0x91d1, 0x9577, 0x9580, 0x961c, 0x9640, 0x963f, 0x963b,
|
||||
0x9644, 0x9642, 0x96b9, 0x96e8, 0x9752, 0x975e, 0x4e9f, 0x4ead,
|
||||
0x4eae, 0x4fe1, 0x4fb5, 0x4faf, 0x4fbf, 0x4fe0, 0x4fd1, 0x4fcf,
|
||||
0x4fdd, 0x4fc3, 0x4fb6, 0x4fd8, 0x4fdf, 0x4fca, 0x4fd7, 0x4fae,
|
||||
0x4fd0, 0x4fc4, 0x4fc2, 0x4fda, 0x4fce, 0x4fde,
|
||||
/* 0x50 */
|
||||
0x4fb7, 0x5157, 0x5192, 0x5191, 0x51a0, 0x524e, 0x5243, 0x524a,
|
||||
0x524d, 0x524c, 0x524b, 0x5247, 0x52c7, 0x52c9, 0x52c3, 0x52c1,
|
||||
0x530d, 0x5357, 0x537b, 0x539a, 0x53db, 0x54ac, 0x54c0, 0x54a8,
|
||||
0x54ce, 0x54c9, 0x54b8, 0x54a6, 0x54b3, 0x54c7, 0x54c2, 0x54bd,
|
||||
0x54aa, 0x54c1, 0x54c4, 0x54c8, 0x54af, 0x54ab, 0x54b1, 0x54bb,
|
||||
0x54a9, 0x54a7, 0x54bf, 0x56ff, 0x5782, 0x578b, 0x57a0, 0x57a3,
|
||||
0x57a2, 0x57ce, 0x57ae, 0x5793, 0x5955, 0x5951, 0x594f, 0x594e,
|
||||
0x5950, 0x59dc, 0x59d8, 0x59ff, 0x59e3, 0x59e8, 0x5a03, 0x59e5,
|
||||
0x59ea, 0x59da, 0x59e6, 0x5a01, 0x59fb, 0x5b69, 0x5ba3, 0x5ba6,
|
||||
0x5ba4, 0x5ba2, 0x5ba5, 0x5c01, 0x5c4e, 0x5c4f, 0x5c4d, 0x5c4b,
|
||||
0x5cd9, 0x5cd2, 0x5df7, 0x5e1d, 0x5e25, 0x5e1f, 0x5e7d, 0x5ea0,
|
||||
0x5ea6, 0x5efa, 0x5f08, 0x5f2d, 0x5f65, 0x5f88,
|
||||
/* 0x51 */
|
||||
0x5f85, 0x5f8a, 0x5f8b, 0x5f87, 0x5f8c, 0x5f89, 0x6012, 0x601d,
|
||||
0x6020, 0x6025, 0x600e, 0x6028, 0x604d, 0x6070, 0x6068, 0x6062,
|
||||
0x6046, 0x6043, 0x606c, 0x606b, 0x606a, 0x6064, 0x6241, 0x62dc,
|
||||
0x6316, 0x6309, 0x62fc, 0x62ed, 0x6301, 0x62ee, 0x62fd, 0x6307,
|
||||
0x62f1, 0x62f7, 0x62ef, 0x62ec, 0x62fe, 0x62f4, 0x6311, 0x6302,
|
||||
0x653f, 0x6545, 0x65ab, 0x65bd, 0x65e2, 0x6625, 0x662d, 0x6620,
|
||||
0x6627, 0x662f, 0x661f, 0x6628, 0x6631, 0x6624, 0x66f7, 0x67ff,
|
||||
0x67d3, 0x67f1, 0x67d4, 0x67d0, 0x67ec, 0x67b6, 0x67af, 0x67f5,
|
||||
0x67e9, 0x67ef, 0x67c4, 0x67d1, 0x67b4, 0x67da, 0x67e5, 0x67b8,
|
||||
0x67cf, 0x67de, 0x67f3, 0x67b0, 0x67d9, 0x67e2, 0x67dd, 0x67d2,
|
||||
0x6b6a, 0x6b83, 0x6b86, 0x6bb5, 0x6bd2, 0x6bd7, 0x6c1f, 0x6cc9,
|
||||
0x6d0b, 0x6d32, 0x6d2a, 0x6d41, 0x6d25, 0x6d0c,
|
||||
/* 0x52 */
|
||||
0x6d31, 0x6d1e, 0x6d17, 0x6d3b, 0x6d3d, 0x6d3e, 0x6d36, 0x6d1b,
|
||||
0x6cf5, 0x6d39, 0x6d27, 0x6d38, 0x6d29, 0x6d2e, 0x6d35, 0x6d0e,
|
||||
0x6d2b, 0x70ab, 0x70ba, 0x70b3, 0x70ac, 0x70af, 0x70ad, 0x70b8,
|
||||
0x70ae, 0x70a4, 0x7230, 0x7272, 0x726f, 0x7274, 0x72e9, 0x72e0,
|
||||
0x72e1, 0x73b7, 0x73ca, 0x73bb, 0x73b2, 0x73cd, 0x73c0, 0x73b3,
|
||||
0x751a, 0x752d, 0x754f, 0x754c, 0x754e, 0x754b, 0x75ab, 0x75a4,
|
||||
0x75a5, 0x75a2, 0x75a3, 0x7678, 0x7686, 0x7687, 0x7688, 0x76c8,
|
||||
0x76c6, 0x76c3, 0x76c5, 0x7701, 0x76f9, 0x76f8, 0x7709, 0x770b,
|
||||
0x76fe, 0x76fc, 0x7707, 0x77dc, 0x7802, 0x7814, 0x780c, 0x780d,
|
||||
0x7946, 0x7949, 0x7948, 0x7947, 0x79b9, 0x79ba, 0x79d1, 0x79d2,
|
||||
0x79cb, 0x7a7f, 0x7a81, 0x7aff, 0x7afd, 0x7c7d, 0x7d02, 0x7d05,
|
||||
0x7d00, 0x7d09, 0x7d07, 0x7d04, 0x7d06, 0x7f38,
|
||||
/* 0x53 */
|
||||
0x7f8e, 0x7fbf, 0x8010, 0x800d, 0x8011, 0x8036, 0x80d6, 0x80e5,
|
||||
0x80da, 0x80c3, 0x80c4, 0x80cc, 0x80e1, 0x80db, 0x80ce, 0x80de,
|
||||
0x80e4, 0x80dd, 0x81f4, 0x8222, 0x82e7, 0x8303, 0x8305, 0x82e3,
|
||||
0x82db, 0x82e6, 0x8304, 0x82e5, 0x8302, 0x8309, 0x82d2, 0x82d7,
|
||||
0x82f1, 0x8301, 0x82dc, 0x82d4, 0x82d1, 0x82de, 0x82d3, 0x82df,
|
||||
0x82ef, 0x8306, 0x8650, 0x8679, 0x867b, 0x867a, 0x884d, 0x886b,
|
||||
0x8981, 0x89d4, 0x8a08, 0x8a02, 0x8a03, 0x8c9e, 0x8ca0, 0x8d74,
|
||||
0x8d73, 0x8db4, 0x8ecd, 0x8ecc, 0x8ff0, 0x8fe6, 0x8fe2, 0x8fea,
|
||||
0x8fe5, 0x8fed, 0x8feb, 0x8fe4, 0x8fe8, 0x90ca, 0x90ce, 0x90c1,
|
||||
0x90c3, 0x914b, 0x914a, 0x91cd, 0x9582, 0x9650, 0x964b, 0x964c,
|
||||
0x964d, 0x9762, 0x9769, 0x97cb, 0x97ed, 0x97f3, 0x9801, 0x98a8,
|
||||
0x98db, 0x98df, 0x9996, 0x9999, 0x4e58, 0x4eb3,
|
||||
/* 0x54 */
|
||||
0x500c, 0x500d, 0x5023, 0x4fef, 0x5026, 0x5025, 0x4ff8, 0x5029,
|
||||
0x5016, 0x5006, 0x503c, 0x501f, 0x501a, 0x5012, 0x5011, 0x4ffa,
|
||||
0x5000, 0x5014, 0x5028, 0x4ff1, 0x5021, 0x500b, 0x5019, 0x5018,
|
||||
0x4ff3, 0x4fee, 0x502d, 0x502a, 0x4ffe, 0x502b, 0x5009, 0x517c,
|
||||
0x51a4, 0x51a5, 0x51a2, 0x51cd, 0x51cc, 0x51c6, 0x51cb, 0x5256,
|
||||
0x525c, 0x5254, 0x525b, 0x525d, 0x532a, 0x537f, 0x539f, 0x539d,
|
||||
0x53df, 0x54e8, 0x5510, 0x5501, 0x5537, 0x54fc, 0x54e5, 0x54f2,
|
||||
0x5506, 0x54fa, 0x5514, 0x54e9, 0x54ed, 0x54e1, 0x5509, 0x54ee,
|
||||
0x54ea, 0x54e6, 0x5527, 0x5507, 0x54fd, 0x550f, 0x5703, 0x5704,
|
||||
0x57c2, 0x57d4, 0x57cb, 0x57c3, 0x5809, 0x590f, 0x5957, 0x5958,
|
||||
0x595a, 0x5a11, 0x5a18, 0x5a1c, 0x5a1f, 0x5a1b, 0x5a13, 0x59ec,
|
||||
0x5a20, 0x5a23, 0x5a29, 0x5a25, 0x5a0c, 0x5a09,
|
||||
/* 0x55 */
|
||||
0x5b6b, 0x5c58, 0x5bb0, 0x5bb3, 0x5bb6, 0x5bb4, 0x5bae, 0x5bb5,
|
||||
0x5bb9, 0x5bb8, 0x5c04, 0x5c51, 0x5c55, 0x5c50, 0x5ced, 0x5cfd,
|
||||
0x5cfb, 0x5cea, 0x5ce8, 0x5cf0, 0x5cf6, 0x5d01, 0x5cf4, 0x5dee,
|
||||
0x5e2d, 0x5e2b, 0x5eab, 0x5ead, 0x5ea7, 0x5f31, 0x5f92, 0x5f91,
|
||||
0x5f90, 0x6059, 0x6063, 0x6065, 0x6050, 0x6055, 0x606d, 0x6069,
|
||||
0x606f, 0x6084, 0x609f, 0x609a, 0x608d, 0x6094, 0x608c, 0x6085,
|
||||
0x6096, 0x6247, 0x62f3, 0x6308, 0x62ff, 0x634e, 0x633e, 0x632f,
|
||||
0x6355, 0x6342, 0x6346, 0x634f, 0x6349, 0x633a, 0x6350, 0x633d,
|
||||
0x632a, 0x632b, 0x6328, 0x634d, 0x634c, 0x6548, 0x6549, 0x6599,
|
||||
0x65c1, 0x65c5, 0x6642, 0x6649, 0x664f, 0x6643, 0x6652, 0x664c,
|
||||
0x6645, 0x6641, 0x66f8, 0x6714, 0x6715, 0x6717, 0x6821, 0x6838,
|
||||
0x6848, 0x6846, 0x6853, 0x6839, 0x6842, 0x6854,
|
||||
/* 0x56 */
|
||||
0x6829, 0x68b3, 0x6817, 0x684c, 0x6851, 0x683d, 0x67f4, 0x6850,
|
||||
0x6840, 0x683c, 0x6843, 0x682a, 0x6845, 0x6813, 0x6818, 0x6841,
|
||||
0x6b8a, 0x6b89, 0x6bb7, 0x6c23, 0x6c27, 0x6c28, 0x6c26, 0x6c24,
|
||||
0x6cf0, 0x6d6a, 0x6d95, 0x6d88, 0x6d87, 0x6d66, 0x6d78, 0x6d77,
|
||||
0x6d59, 0x6d93, 0x6d6c, 0x6d89, 0x6d6e, 0x6d5a, 0x6d74, 0x6d69,
|
||||
0x6d8c, 0x6d8a, 0x6d79, 0x6d85, 0x6d65, 0x6d94, 0x70ca, 0x70d8,
|
||||
0x70e4, 0x70d9, 0x70c8, 0x70cf, 0x7239, 0x7279, 0x72fc, 0x72f9,
|
||||
0x72fd, 0x72f8, 0x72f7, 0x7386, 0x73ed, 0x7409, 0x73ee, 0x73e0,
|
||||
0x73ea, 0x73de, 0x7554, 0x755d, 0x755c, 0x755a, 0x7559, 0x75be,
|
||||
0x75c5, 0x75c7, 0x75b2, 0x75b3, 0x75bd, 0x75bc, 0x75b9, 0x75c2,
|
||||
0x75b8, 0x768b, 0x76b0, 0x76ca, 0x76cd, 0x76ce, 0x7729, 0x771f,
|
||||
0x7720, 0x7728, 0x77e9, 0x7830, 0x7827, 0x7838,
|
||||
/* 0x57 */
|
||||
0x781d, 0x7834, 0x7837, 0x7825, 0x782d, 0x7820, 0x781f, 0x7832,
|
||||
0x7955, 0x7950, 0x7960, 0x795f, 0x7956, 0x795e, 0x795d, 0x7957,
|
||||
0x795a, 0x79e4, 0x79e3, 0x79e7, 0x79df, 0x79e6, 0x79e9, 0x79d8,
|
||||
0x7a84, 0x7a88, 0x7ad9, 0x7b06, 0x7b11, 0x7c89, 0x7d21, 0x7d17,
|
||||
0x7d0b, 0x7d0a, 0x7d20, 0x7d22, 0x7d14, 0x7d10, 0x7d15, 0x7d1a,
|
||||
0x7d1c, 0x7d0d, 0x7d19, 0x7d1b, 0x7f3a, 0x7f5f, 0x7f94, 0x7fc5,
|
||||
0x7fc1, 0x8006, 0x8004, 0x8018, 0x8015, 0x8019, 0x8017, 0x803d,
|
||||
0x803f, 0x80f1, 0x8102, 0x80f0, 0x8105, 0x80ed, 0x80f4, 0x8106,
|
||||
0x80f8, 0x80f3, 0x8108, 0x80fd, 0x810a, 0x80fc, 0x80ef, 0x81ed,
|
||||
0x81ec, 0x8200, 0x8210, 0x822a, 0x822b, 0x8228, 0x822c, 0x82bb,
|
||||
0x832b, 0x8352, 0x8354, 0x834a, 0x8338, 0x8350, 0x8349, 0x8335,
|
||||
0x8334, 0x834f, 0x8332, 0x8339, 0x8336, 0x8317,
|
||||
/* 0x58 */
|
||||
0x8340, 0x8331, 0x8328, 0x8343, 0x8654, 0x868a, 0x86aa, 0x8693,
|
||||
0x86a4, 0x86a9, 0x868c, 0x86a3, 0x869c, 0x8870, 0x8877, 0x8881,
|
||||
0x8882, 0x887d, 0x8879, 0x8a18, 0x8a10, 0x8a0e, 0x8a0c, 0x8a15,
|
||||
0x8a0a, 0x8a17, 0x8a13, 0x8a16, 0x8a0f, 0x8a11, 0x8c48, 0x8c7a,
|
||||
0x8c79, 0x8ca1, 0x8ca2, 0x8d77, 0x8eac, 0x8ed2, 0x8ed4, 0x8ecf,
|
||||
0x8fb1, 0x9001, 0x9006, 0x8ff7, 0x9000, 0x8ffa, 0x8ff4, 0x9003,
|
||||
0x8ffd, 0x9005, 0x8ff8, 0x9095, 0x90e1, 0x90dd, 0x90e2, 0x9152,
|
||||
0x914d, 0x914c, 0x91d8, 0x91dd, 0x91d7, 0x91dc, 0x91d9, 0x9583,
|
||||
0x9662, 0x9663, 0x9661, 0x965b, 0x965d, 0x9664, 0x9658, 0x965e,
|
||||
0x96bb, 0x98e2, 0x99ac, 0x9aa8, 0x9ad8, 0x9b25, 0x9b32, 0x9b3c,
|
||||
0x4e7e, 0x507a, 0x507d, 0x505c, 0x5047, 0x5043, 0x504c, 0x505a,
|
||||
0x5049, 0x5065, 0x5076, 0x504e, 0x5055, 0x5075,
|
||||
/* 0x59 */
|
||||
0x5074, 0x5077, 0x504f, 0x500f, 0x506f, 0x506d, 0x515c, 0x5195,
|
||||
0x51f0, 0x526a, 0x526f, 0x52d2, 0x52d9, 0x52d8, 0x52d5, 0x5310,
|
||||
0x530f, 0x5319, 0x533f, 0x5340, 0x533e, 0x53c3, 0x66fc, 0x5546,
|
||||
0x556a, 0x5566, 0x5544, 0x555e, 0x5561, 0x5543, 0x554a, 0x5531,
|
||||
0x5556, 0x554f, 0x5555, 0x552f, 0x5564, 0x5538, 0x552e, 0x555c,
|
||||
0x552c, 0x5563, 0x5533, 0x5541, 0x5557, 0x5708, 0x570b, 0x5709,
|
||||
0x57df, 0x5805, 0x580a, 0x5806, 0x57e0, 0x57e4, 0x57fa, 0x5802,
|
||||
0x5835, 0x57f7, 0x57f9, 0x5920, 0x5962, 0x5a36, 0x5a41, 0x5a49,
|
||||
0x5a66, 0x5a6a, 0x5a40, 0x5a3c, 0x5a62, 0x5a5a, 0x5a46, 0x5a4a,
|
||||
0x5b70, 0x5bc7, 0x5bc5, 0x5bc4, 0x5bc2, 0x5bbf, 0x5bc6, 0x5c09,
|
||||
0x5c08, 0x5c07, 0x5c60, 0x5c5c, 0x5c5d, 0x5d07, 0x5d06, 0x5d0e,
|
||||
0x5d1b, 0x5d16, 0x5d22, 0x5d11, 0x5d29, 0x5d14,
|
||||
/* 0x5a */
|
||||
0x5d19, 0x5d24, 0x5d27, 0x5d17, 0x5de2, 0x5e38, 0x5e36, 0x5e33,
|
||||
0x5e37, 0x5eb7, 0x5eb8, 0x5eb6, 0x5eb5, 0x5ebe, 0x5f35, 0x5f37,
|
||||
0x5f57, 0x5f6c, 0x5f69, 0x5f6b, 0x5f97, 0x5f99, 0x5f9e, 0x5f98,
|
||||
0x5fa1, 0x5fa0, 0x5f9c, 0x607f, 0x60a3, 0x6089, 0x60a0, 0x60a8,
|
||||
0x60cb, 0x60b4, 0x60e6, 0x60bd, 0x60c5, 0x60bb, 0x60b5, 0x60dc,
|
||||
0x60bc, 0x60d8, 0x60d5, 0x60c6, 0x60df, 0x60b8, 0x60da, 0x60c7,
|
||||
0x621a, 0x621b, 0x6248, 0x63a0, 0x63a7, 0x6372, 0x6396, 0x63a2,
|
||||
0x63a5, 0x6377, 0x6367, 0x6398, 0x63aa, 0x6371, 0x63a9, 0x6389,
|
||||
0x6383, 0x639b, 0x636b, 0x63a8, 0x6384, 0x6388, 0x6399, 0x63a1,
|
||||
0x63ac, 0x6392, 0x638f, 0x6380, 0x637b, 0x6369, 0x6368, 0x637a,
|
||||
0x655d, 0x6556, 0x6551, 0x6559, 0x6557, 0x555f, 0x654f, 0x6558,
|
||||
0x6555, 0x6554, 0x659c, 0x659b, 0x65ac, 0x65cf,
|
||||
/* 0x5b */
|
||||
0x65cb, 0x65cc, 0x65ce, 0x665d, 0x665a, 0x6664, 0x6668, 0x6666,
|
||||
0x665e, 0x66f9, 0x52d7, 0x671b, 0x6881, 0x68af, 0x68a2, 0x6893,
|
||||
0x68b5, 0x687f, 0x6876, 0x68b1, 0x68a7, 0x6897, 0x68b0, 0x6883,
|
||||
0x68c4, 0x68ad, 0x6886, 0x6885, 0x6894, 0x689d, 0x68a8, 0x689f,
|
||||
0x68a1, 0x6882, 0x6b32, 0x6bba, 0x6beb, 0x6bec, 0x6c2b, 0x6d8e,
|
||||
0x6dbc, 0x6df3, 0x6dd9, 0x6db2, 0x6de1, 0x6dcc, 0x6de4, 0x6dfb,
|
||||
0x6dfa, 0x6e05, 0x6dc7, 0x6dcb, 0x6daf, 0x6dd1, 0x6dae, 0x6dde,
|
||||
0x6df9, 0x6db8, 0x6df7, 0x6df5, 0x6dc5, 0x6dd2, 0x6e1a, 0x6db5,
|
||||
0x6dda, 0x6deb, 0x6dd8, 0x6dea, 0x6df1, 0x6dee, 0x6de8, 0x6dc6,
|
||||
0x6dc4, 0x6daa, 0x6dec, 0x6dbf, 0x6de6, 0x70f9, 0x7109, 0x710a,
|
||||
0x70fd, 0x70ef, 0x723d, 0x727d, 0x7281, 0x731c, 0x731b, 0x7316,
|
||||
0x7313, 0x7319, 0x7387, 0x7405, 0x740a, 0x7403,
|
||||
/* 0x5c */
|
||||
0x7406, 0x73fe, 0x740d, 0x74e0, 0x74f6, 0x74f7, 0x751c, 0x7522,
|
||||
0x7565, 0x7566, 0x7562, 0x7570, 0x758f, 0x75d4, 0x75d5, 0x75b5,
|
||||
0x75ca, 0x75cd, 0x768e, 0x76d4, 0x76d2, 0x76db, 0x7737, 0x773e,
|
||||
0x773c, 0x7736, 0x7738, 0x773a, 0x786b, 0x7843, 0x784e, 0x7965,
|
||||
0x7968, 0x796d, 0x79fb, 0x7a92, 0x7a95, 0x7b20, 0x7b28, 0x7b1b,
|
||||
0x7b2c, 0x7b26, 0x7b19, 0x7b1e, 0x7b2e, 0x7c92, 0x7c97, 0x7c95,
|
||||
0x7d46, 0x7d43, 0x7d71, 0x7d2e, 0x7d39, 0x7d3c, 0x7d40, 0x7d30,
|
||||
0x7d33, 0x7d44, 0x7d2f, 0x7d42, 0x7d32, 0x7d31, 0x7f3d, 0x7f9e,
|
||||
0x7f9a, 0x7fcc, 0x7fce, 0x7fd2, 0x801c, 0x804a, 0x8046, 0x812f,
|
||||
0x8116, 0x8123, 0x812b, 0x8129, 0x8130, 0x8124, 0x8202, 0x8235,
|
||||
0x8237, 0x8236, 0x8239, 0x838e, 0x839e, 0x8398, 0x8378, 0x83a2,
|
||||
0x8396, 0x83bd, 0x83ab, 0x8392, 0x838a, 0x8393,
|
||||
/* 0x5d */
|
||||
0x8389, 0x83a0, 0x8377, 0x837b, 0x837c, 0x8386, 0x83a7, 0x8655,
|
||||
0x5f6a, 0x86c7, 0x86c0, 0x86b6, 0x86c4, 0x86b5, 0x86c6, 0x86cb,
|
||||
0x86b1, 0x86af, 0x86c9, 0x8853, 0x889e, 0x8888, 0x88ab, 0x8892,
|
||||
0x8896, 0x888d, 0x888b, 0x8993, 0x898f, 0x8a2a, 0x8a1d, 0x8a23,
|
||||
0x8a25, 0x8a31, 0x8a2d, 0x8a1f, 0x8a1b, 0x8a22, 0x8c49, 0x8c5a,
|
||||
0x8ca9, 0x8cac, 0x8cab, 0x8ca8, 0x8caa, 0x8ca7, 0x8d67, 0x8d66,
|
||||
0x8dbe, 0x8dba, 0x8edb, 0x8edf, 0x9019, 0x900d, 0x901a, 0x9017,
|
||||
0x9023, 0x901f, 0x901d, 0x9010, 0x9015, 0x901e, 0x9020, 0x900f,
|
||||
0x9022, 0x9016, 0x901b, 0x9014, 0x90e8, 0x90ed, 0x90fd, 0x9157,
|
||||
0x91ce, 0x91f5, 0x91e6, 0x91e3, 0x91e7, 0x91ed, 0x91e9, 0x9589,
|
||||
0x966a, 0x9675, 0x9673, 0x9678, 0x9670, 0x9674, 0x9676, 0x9677,
|
||||
0x966c, 0x96c0, 0x96ea, 0x96e9, 0x7ae0, 0x7adf,
|
||||
/* 0x5e */
|
||||
0x9802, 0x9803, 0x9b5a, 0x9ce5, 0x9e75, 0x9e7f, 0x9ea5, 0x9ebb,
|
||||
0x50a2, 0x508d, 0x5085, 0x5099, 0x5091, 0x5080, 0x5096, 0x5098,
|
||||
0x509a, 0x6700, 0x51f1, 0x5272, 0x5274, 0x5275, 0x5269, 0x52de,
|
||||
0x52dd, 0x52db, 0x535a, 0x53a5, 0x557b, 0x5580, 0x55a7, 0x557c,
|
||||
0x558a, 0x559d, 0x5598, 0x5582, 0x559c, 0x55aa, 0x5594, 0x5587,
|
||||
0x558b, 0x5583, 0x55b3, 0x55ae, 0x559f, 0x553e, 0x55b2, 0x559a,
|
||||
0x55bb, 0x55ac, 0x55b1, 0x557e, 0x5589, 0x55ab, 0x5599, 0x570d,
|
||||
0x582f, 0x582a, 0x5834, 0x5824, 0x5830, 0x5831, 0x5821, 0x581d,
|
||||
0x5820, 0x58f9, 0x58fa, 0x5960, 0x5a77, 0x5a9a, 0x5a7f, 0x5a92,
|
||||
0x5a9b, 0x5aa7, 0x5b73, 0x5b71, 0x5bd2, 0x5bcc, 0x5bd3, 0x5bd0,
|
||||
0x5c0a, 0x5c0b, 0x5c31, 0x5d4c, 0x5d50, 0x5d34, 0x5d47, 0x5dfd,
|
||||
0x5e45, 0x5e3d, 0x5e40, 0x5e43, 0x5e7e, 0x5eca,
|
||||
/* 0x5f */
|
||||
0x5ec1, 0x5ec2, 0x5ec4, 0x5f3c, 0x5f6d, 0x5fa9, 0x5faa, 0x5fa8,
|
||||
0x60d1, 0x60e1, 0x60b2, 0x60b6, 0x60e0, 0x611c, 0x6123, 0x60fa,
|
||||
0x6115, 0x60f0, 0x60fb, 0x60f4, 0x6168, 0x60f1, 0x610e, 0x60f6,
|
||||
0x6109, 0x6100, 0x6112, 0x621f, 0x6249, 0x63a3, 0x638c, 0x63cf,
|
||||
0x63c0, 0x63e9, 0x63c9, 0x63c6, 0x63cd, 0x63d2, 0x63e3, 0x63d0,
|
||||
0x63e1, 0x63d6, 0x63ed, 0x63ee, 0x6376, 0x63f4, 0x63ea, 0x63db,
|
||||
0x6452, 0x63da, 0x63f9, 0x655e, 0x6566, 0x6562, 0x6563, 0x6591,
|
||||
0x6590, 0x65af, 0x666e, 0x6670, 0x6674, 0x6676, 0x666f, 0x6691,
|
||||
0x667a, 0x667e, 0x6677, 0x66fe, 0x66ff, 0x671f, 0x671d, 0x68fa,
|
||||
0x68d5, 0x68e0, 0x68d8, 0x68d7, 0x6905, 0x68df, 0x68f5, 0x68ee,
|
||||
0x68e7, 0x68f9, 0x68d2, 0x68f2, 0x68e3, 0x68cb, 0x68cd, 0x690d,
|
||||
0x6912, 0x690e, 0x68c9, 0x68da, 0x696e, 0x68fb,
|
||||
/* 0x60 */
|
||||
0x6b3e, 0x6b3a, 0x6b3d, 0x6b98, 0x6b96, 0x6bbc, 0x6bef, 0x6c2e,
|
||||
0x6c2f, 0x6c2c, 0x6e2f, 0x6e38, 0x6e54, 0x6e21, 0x6e32, 0x6e67,
|
||||
0x6e4a, 0x6e20, 0x6e25, 0x6e23, 0x6e1b, 0x6e5b, 0x6e58, 0x6e24,
|
||||
0x6e56, 0x6e6e, 0x6e2d, 0x6e26, 0x6e6f, 0x6e34, 0x6e4d, 0x6e3a,
|
||||
0x6e2c, 0x6e43, 0x6e1d, 0x6e3e, 0x6ecb, 0x6e89, 0x6e19, 0x6e4e,
|
||||
0x6e63, 0x6e44, 0x6e72, 0x6e69, 0x6e5f, 0x7119, 0x711a, 0x7126,
|
||||
0x7130, 0x7121, 0x7136, 0x716e, 0x711c, 0x724c, 0x7284, 0x7280,
|
||||
0x7336, 0x7325, 0x7334, 0x7329, 0x743a, 0x742a, 0x7433, 0x7422,
|
||||
0x7425, 0x7435, 0x7436, 0x7434, 0x742f, 0x741b, 0x7426, 0x7428,
|
||||
0x7525, 0x7526, 0x756b, 0x756a, 0x75e2, 0x75db, 0x75e3, 0x75d9,
|
||||
0x75d8, 0x75de, 0x75e0, 0x767b, 0x767c, 0x7696, 0x7693, 0x76b4,
|
||||
0x76dc, 0x774f, 0x77ed, 0x785d, 0x786c, 0x786f,
|
||||
/* 0x61 */
|
||||
0x7a0d, 0x7a08, 0x7a0b, 0x7a05, 0x7a00, 0x7a98, 0x7a97, 0x7a96,
|
||||
0x7ae5, 0x7ae3, 0x7b49, 0x7b56, 0x7b46, 0x7b50, 0x7b52, 0x7b54,
|
||||
0x7b4d, 0x7b4b, 0x7b4f, 0x7b51, 0x7c9f, 0x7ca5, 0x7d5e, 0x7d50,
|
||||
0x7d68, 0x7d55, 0x7d2b, 0x7d6e, 0x7d72, 0x7d61, 0x7d66, 0x7d62,
|
||||
0x7d70, 0x7d73, 0x5584, 0x7fd4, 0x7fd5, 0x800b, 0x8052, 0x8085,
|
||||
0x8155, 0x8154, 0x814b, 0x8151, 0x814e, 0x8139, 0x8146, 0x813e,
|
||||
0x814c, 0x8153, 0x8174, 0x8212, 0x821c, 0x83e9, 0x8403, 0x83f8,
|
||||
0x840d, 0x83e0, 0x83c5, 0x840b, 0x83c1, 0x83ef, 0x83f1, 0x83f4,
|
||||
0x8457, 0x840a, 0x83f0, 0x840c, 0x83cc, 0x83fd, 0x83f2, 0x83ca,
|
||||
0x8438, 0x840e, 0x8404, 0x83dc, 0x8407, 0x83d4, 0x83df, 0x865b,
|
||||
0x86df, 0x86d9, 0x86ed, 0x86d4, 0x86db, 0x86e4, 0x86d0, 0x86de,
|
||||
0x8857, 0x88c1, 0x88c2, 0x88b1, 0x8983, 0x8996,
|
||||
/* 0x62 */
|
||||
0x8a3b, 0x8a60, 0x8a55, 0x8a5e, 0x8a3c, 0x8a41, 0x8a54, 0x8a5b,
|
||||
0x8a50, 0x8a46, 0x8a34, 0x8a3a, 0x8a36, 0x8a56, 0x8c61, 0x8c82,
|
||||
0x8caf, 0x8cbc, 0x8cb3, 0x8cbd, 0x8cc1, 0x8cbb, 0x8cc0, 0x8cb4,
|
||||
0x8cb7, 0x8cb6, 0x8cbf, 0x8cb8, 0x8d8a, 0x8d85, 0x8d81, 0x8dce,
|
||||
0x8ddd, 0x8dcb, 0x8dda, 0x8dd1, 0x8dcc, 0x8ddb, 0x8dc6, 0x8efb,
|
||||
0x8ef8, 0x8efc, 0x8f9c, 0x902e, 0x9035, 0x9031, 0x9038, 0x9032,
|
||||
0x9036, 0x9102, 0x90f5, 0x9109, 0x90fe, 0x9163, 0x9165, 0x91cf,
|
||||
0x9214, 0x9215, 0x9223, 0x9209, 0x921e, 0x920d, 0x9210, 0x9207,
|
||||
0x9211, 0x9594, 0x958f, 0x958b, 0x9591, 0x9593, 0x9592, 0x958e,
|
||||
0x968a, 0x968e, 0x968b, 0x967d, 0x9685, 0x9686, 0x968d, 0x9672,
|
||||
0x9684, 0x96c1, 0x96c5, 0x96c4, 0x96c6, 0x96c7, 0x96ef, 0x96f2,
|
||||
0x97cc, 0x9805, 0x9806, 0x9808, 0x98e7, 0x98ea,
|
||||
/* 0x63 */
|
||||
0x98ef, 0x98e9, 0x98f2, 0x98ed, 0x99ae, 0x99ad, 0x9ec3, 0x9ecd,
|
||||
0x9ed1, 0x4e82, 0x50ad, 0x50b5, 0x50b2, 0x50b3, 0x50c5, 0x50be,
|
||||
0x50ac, 0x50b7, 0x50bb, 0x50af, 0x50c7, 0x527f, 0x5277, 0x527d,
|
||||
0x52df, 0x52e6, 0x52e4, 0x52e2, 0x52e3, 0x532f, 0x55df, 0x55e8,
|
||||
0x55d3, 0x55e6, 0x55ce, 0x55dc, 0x55c7, 0x55d1, 0x55e3, 0x55e4,
|
||||
0x55ef, 0x55da, 0x55e1, 0x55c5, 0x55c6, 0x55e5, 0x55c9, 0x5712,
|
||||
0x5713, 0x585e, 0x5851, 0x5858, 0x5857, 0x585a, 0x5854, 0x586b,
|
||||
0x584c, 0x586d, 0x584a, 0x5862, 0x5852, 0x584b, 0x5967, 0x5ac1,
|
||||
0x5ac9, 0x5acc, 0x5abe, 0x5abd, 0x5abc, 0x5ab3, 0x5ac2, 0x5ab2,
|
||||
0x5d69, 0x5d6f, 0x5e4c, 0x5e79, 0x5ec9, 0x5ec8, 0x5f12, 0x5f59,
|
||||
0x5fac, 0x5fae, 0x611a, 0x610f, 0x6148, 0x611f, 0x60f3, 0x611b,
|
||||
0x60f9, 0x6101, 0x6108, 0x614e, 0x614c, 0x6144,
|
||||
/* 0x64 */
|
||||
0x614d, 0x613e, 0x6134, 0x6127, 0x610d, 0x6106, 0x6137, 0x6221,
|
||||
0x6222, 0x6413, 0x643e, 0x641e, 0x642a, 0x642d, 0x643d, 0x642c,
|
||||
0x640f, 0x641c, 0x6414, 0x640d, 0x6436, 0x6416, 0x6417, 0x6406,
|
||||
0x656c, 0x659f, 0x65b0, 0x6697, 0x6689, 0x6687, 0x6688, 0x6696,
|
||||
0x6684, 0x6698, 0x668d, 0x6703, 0x6994, 0x696d, 0x695a, 0x6977,
|
||||
0x6960, 0x6954, 0x6975, 0x6930, 0x6982, 0x694a, 0x6968, 0x696b,
|
||||
0x695e, 0x6953, 0x6979, 0x6986, 0x695d, 0x6963, 0x695b, 0x6b47,
|
||||
0x6b72, 0x6bc0, 0x6bbf, 0x6bd3, 0x6bfd, 0x6ea2, 0x6eaf, 0x6ed3,
|
||||
0x6eb6, 0x6ec2, 0x6e90, 0x6e9d, 0x6ec7, 0x6ec5, 0x6ea5, 0x6e98,
|
||||
0x6ebc, 0x6eba, 0x6eab, 0x6ed1, 0x6e96, 0x6e9c, 0x6ec4, 0x6ed4,
|
||||
0x6eaa, 0x6ea7, 0x6eb4, 0x714e, 0x7159, 0x7169, 0x7164, 0x7149,
|
||||
0x7167, 0x715c, 0x716c, 0x7166, 0x714c, 0x7165,
|
||||
/* 0x65 */
|
||||
0x715e, 0x7146, 0x7168, 0x7156, 0x723a, 0x7252, 0x7337, 0x7345,
|
||||
0x733f, 0x733e, 0x746f, 0x745a, 0x7455, 0x745f, 0x745e, 0x7441,
|
||||
0x743f, 0x7459, 0x745b, 0x745c, 0x7576, 0x7578, 0x7600, 0x75f0,
|
||||
0x7601, 0x75f2, 0x75f1, 0x75fa, 0x75ff, 0x75f4, 0x75f3, 0x76de,
|
||||
0x76df, 0x775b, 0x776b, 0x7766, 0x775e, 0x7763, 0x7779, 0x776a,
|
||||
0x776c, 0x775c, 0x7765, 0x7768, 0x7762, 0x77ee, 0x788e, 0x78b0,
|
||||
0x7897, 0x7898, 0x788c, 0x7889, 0x787c, 0x7891, 0x7893, 0x787f,
|
||||
0x797a, 0x797f, 0x7981, 0x842c, 0x79bd, 0x7a1c, 0x7a1a, 0x7a20,
|
||||
0x7a14, 0x7a1f, 0x7a1e, 0x7a9f, 0x7aa0, 0x7b77, 0x7bc0, 0x7b60,
|
||||
0x7b6e, 0x7b67, 0x7cb1, 0x7cb3, 0x7cb5, 0x7d93, 0x7d79, 0x7d91,
|
||||
0x7d81, 0x7d8f, 0x7d5b, 0x7f6e, 0x7f69, 0x7f6a, 0x7f72, 0x7fa9,
|
||||
0x7fa8, 0x7fa4, 0x8056, 0x8058, 0x8086, 0x8084,
|
||||
/* 0x66 */
|
||||
0x8171, 0x8170, 0x8178, 0x8165, 0x816e, 0x8173, 0x816b, 0x8179,
|
||||
0x817a, 0x8166, 0x8205, 0x8247, 0x8482, 0x8477, 0x843d, 0x8431,
|
||||
0x8475, 0x8466, 0x846b, 0x8449, 0x846c, 0x845b, 0x843c, 0x8435,
|
||||
0x8461, 0x8463, 0x8469, 0x846d, 0x8446, 0x865e, 0x865c, 0x865f,
|
||||
0x86f9, 0x8713, 0x8708, 0x8707, 0x8700, 0x86fe, 0x86fb, 0x8702,
|
||||
0x8703, 0x8706, 0x870a, 0x8859, 0x88df, 0x88d4, 0x88d9, 0x88dc,
|
||||
0x88d8, 0x88dd, 0x88e1, 0x88ca, 0x88d5, 0x88d2, 0x899c, 0x89e3,
|
||||
0x8a6b, 0x8a72, 0x8a73, 0x8a66, 0x8a69, 0x8a70, 0x8a87, 0x8a7c,
|
||||
0x8a63, 0x8aa0, 0x8a71, 0x8a85, 0x8a6d, 0x8a62, 0x8a6e, 0x8a6c,
|
||||
0x8a79, 0x8a7b, 0x8a3e, 0x8a68, 0x8c62, 0x8c8a, 0x8c89, 0x8cca,
|
||||
0x8cc7, 0x8cc8, 0x8cc4, 0x8cb2, 0x8cc3, 0x8cc2, 0x8cc5, 0x8de1,
|
||||
0x8ddf, 0x8de8, 0x8def, 0x8df3, 0x8dfa, 0x8dea,
|
||||
/* 0x67 */
|
||||
0x8de4, 0x8de6, 0x8eb2, 0x8f03, 0x8f09, 0x8efe, 0x8f0a, 0x8f9f,
|
||||
0x8fb2, 0x904b, 0x904a, 0x9053, 0x9042, 0x9054, 0x903c, 0x9055,
|
||||
0x9050, 0x9047, 0x904f, 0x904e, 0x904d, 0x9051, 0x903e, 0x9041,
|
||||
0x9112, 0x9117, 0x916c, 0x916a, 0x9169, 0x91c9, 0x9237, 0x9257,
|
||||
0x9238, 0x923d, 0x9240, 0x923e, 0x925b, 0x924b, 0x9264, 0x9251,
|
||||
0x9234, 0x9249, 0x924d, 0x9245, 0x9239, 0x923f, 0x925a, 0x9598,
|
||||
0x9698, 0x9694, 0x9695, 0x96cd, 0x96cb, 0x96c9, 0x96ca, 0x96f7,
|
||||
0x96fb, 0x96f9, 0x96f6, 0x9756, 0x9774, 0x9776, 0x9810, 0x9811,
|
||||
0x9813, 0x980a, 0x9812, 0x980c, 0x98fc, 0x98f4, 0x98fd, 0x98fe,
|
||||
0x99b3, 0x99b1, 0x99b4, 0x9ae1, 0x9ce9, 0x9e82, 0x9f0e, 0x9f13,
|
||||
0x9f20, 0x50e7, 0x50ee, 0x50e5, 0x50d6, 0x50ed, 0x50da, 0x50d5,
|
||||
0x50cf, 0x50d1, 0x50f1, 0x50ce, 0x50e9, 0x5162,
|
||||
/* 0x68 */
|
||||
0x51f3, 0x5283, 0x5282, 0x5331, 0x53ad, 0x55fe, 0x5600, 0x561b,
|
||||
0x5617, 0x55fd, 0x5614, 0x5606, 0x5609, 0x560d, 0x560e, 0x55f7,
|
||||
0x5616, 0x561f, 0x5608, 0x5610, 0x55f6, 0x5718, 0x5716, 0x5875,
|
||||
0x587e, 0x5883, 0x5893, 0x588a, 0x5879, 0x5885, 0x587d, 0x58fd,
|
||||
0x5925, 0x5922, 0x5924, 0x596a, 0x5969, 0x5ae1, 0x5ae6, 0x5ae9,
|
||||
0x5ad7, 0x5ad6, 0x5ad8, 0x5ae3, 0x5b75, 0x5bde, 0x5be7, 0x5be1,
|
||||
0x5be5, 0x5be6, 0x5be8, 0x5be2, 0x5be4, 0x5bdf, 0x5c0d, 0x5c62,
|
||||
0x5d84, 0x5d87, 0x5e5b, 0x5e63, 0x5e55, 0x5e57, 0x5e54, 0x5ed3,
|
||||
0x5ed6, 0x5f0a, 0x5f46, 0x5f70, 0x5fb9, 0x6147, 0x613f, 0x614b,
|
||||
0x6177, 0x6162, 0x6163, 0x615f, 0x615a, 0x6158, 0x6175, 0x622a,
|
||||
0x6487, 0x6458, 0x6454, 0x64a4, 0x6478, 0x645f, 0x647a, 0x6451,
|
||||
0x6467, 0x6434, 0x646d, 0x647b, 0x6572, 0x65a1,
|
||||
/* 0x69 */
|
||||
0x65d7, 0x65d6, 0x66a2, 0x66a8, 0x669d, 0x699c, 0x69a8, 0x6995,
|
||||
0x69c1, 0x69ae, 0x69d3, 0x69cb, 0x699b, 0x69b7, 0x69bb, 0x69ab,
|
||||
0x69b4, 0x69d0, 0x69cd, 0x69ad, 0x69cc, 0x69a6, 0x69c3, 0x69a3,
|
||||
0x6b49, 0x6b4c, 0x6c33, 0x6f33, 0x6f14, 0x6efe, 0x6f13, 0x6ef4,
|
||||
0x6f29, 0x6f3e, 0x6f20, 0x6f2c, 0x6f0f, 0x6f02, 0x6f22, 0x6eff,
|
||||
0x6eef, 0x6f06, 0x6f31, 0x6f38, 0x6f32, 0x6f23, 0x6f15, 0x6f2b,
|
||||
0x6f2f, 0x6f88, 0x6f2a, 0x6eec, 0x6f01, 0x6ef2, 0x6ecc, 0x6ef7,
|
||||
0x7194, 0x7199, 0x717d, 0x718a, 0x7184, 0x7192, 0x723e, 0x7292,
|
||||
0x7296, 0x7344, 0x7350, 0x7464, 0x7463, 0x746a, 0x7470, 0x746d,
|
||||
0x7504, 0x7591, 0x7627, 0x760d, 0x760b, 0x7609, 0x7613, 0x76e1,
|
||||
0x76e3, 0x7784, 0x777d, 0x777f, 0x7761, 0x78c1, 0x789f, 0x78a7,
|
||||
0x78b3, 0x78a9, 0x78a3, 0x798e, 0x798f, 0x798d,
|
||||
/* 0x6a */
|
||||
0x7a2e, 0x7a31, 0x7aaa, 0x7aa9, 0x7aed, 0x7aef, 0x7ba1, 0x7b95,
|
||||
0x7b8b, 0x7b75, 0x7b97, 0x7b9d, 0x7b94, 0x7b8f, 0x7bb8, 0x7b87,
|
||||
0x7b84, 0x7cb9, 0x7cbd, 0x7cbe, 0x7dbb, 0x7db0, 0x7d9c, 0x7dbd,
|
||||
0x7dbe, 0x7da0, 0x7dca, 0x7db4, 0x7db2, 0x7db1, 0x7dba, 0x7da2,
|
||||
0x7dbf, 0x7db5, 0x7db8, 0x7dad, 0x7dd2, 0x7dc7, 0x7dac, 0x7f70,
|
||||
0x7fe0, 0x7fe1, 0x7fdf, 0x805e, 0x805a, 0x8087, 0x8150, 0x8180,
|
||||
0x818f, 0x8188, 0x818a, 0x817f, 0x8182, 0x81e7, 0x81fa, 0x8207,
|
||||
0x8214, 0x821e, 0x824b, 0x84c9, 0x84bf, 0x84c6, 0x84c4, 0x8499,
|
||||
0x849e, 0x84b2, 0x849c, 0x84cb, 0x84b8, 0x84c0, 0x84d3, 0x8490,
|
||||
0x84bc, 0x84d1, 0x84ca, 0x873f, 0x871c, 0x873b, 0x8722, 0x8725,
|
||||
0x8734, 0x8718, 0x8755, 0x8737, 0x8729, 0x88f3, 0x8902, 0x88f4,
|
||||
0x88f9, 0x88f8, 0x88fd, 0x88e8, 0x891a, 0x88ef,
|
||||
/* 0x6b */
|
||||
0x8aa6, 0x8a8c, 0x8a9e, 0x8aa3, 0x8a8d, 0x8aa1, 0x8a93, 0x8aa4,
|
||||
0x8aaa, 0x8aa5, 0x8aa8, 0x8a98, 0x8a91, 0x8a9a, 0x8aa7, 0x8c6a,
|
||||
0x8c8d, 0x8c8c, 0x8cd3, 0x8cd1, 0x8cd2, 0x8d6b, 0x8d99, 0x8d95,
|
||||
0x8dfc, 0x8f14, 0x8f12, 0x8f15, 0x8f13, 0x8fa3, 0x9060, 0x9058,
|
||||
0x905c, 0x9063, 0x9059, 0x905e, 0x9062, 0x905d, 0x905b, 0x9119,
|
||||
0x9118, 0x911e, 0x9175, 0x9178, 0x9177, 0x9174, 0x9278, 0x92ac,
|
||||
0x9280, 0x9285, 0x9298, 0x9296, 0x927b, 0x9293, 0x929c, 0x92a8,
|
||||
0x927c, 0x9291, 0x95a1, 0x95a8, 0x95a9, 0x95a3, 0x95a5, 0x95a4,
|
||||
0x9699, 0x969c, 0x969b, 0x96cc, 0x96d2, 0x9700, 0x977c, 0x9785,
|
||||
0x97f6, 0x9817, 0x9818, 0x98af, 0x98b1, 0x9903, 0x9905, 0x990c,
|
||||
0x9909, 0x99c1, 0x9aaf, 0x9ab0, 0x9ae6, 0x9b41, 0x9b42, 0x9cf4,
|
||||
0x9cf6, 0x9cf3, 0x9ebc, 0x9f3b, 0x9f4a, 0x5104,
|
||||
/* 0x6c */
|
||||
0x5100, 0x50fb, 0x50f5, 0x50f9, 0x5102, 0x5108, 0x5109, 0x5105,
|
||||
0x51dc, 0x5287, 0x5288, 0x5289, 0x528d, 0x528a, 0x52f0, 0x53b2,
|
||||
0x562e, 0x563b, 0x5639, 0x5632, 0x563f, 0x5634, 0x5629, 0x5653,
|
||||
0x564e, 0x5657, 0x5674, 0x5636, 0x562f, 0x5630, 0x5880, 0x589f,
|
||||
0x589e, 0x58b3, 0x589c, 0x58ae, 0x58a9, 0x58a6, 0x596d, 0x5b09,
|
||||
0x5afb, 0x5b0b, 0x5af5, 0x5b0c, 0x5b08, 0x5bee, 0x5bec, 0x5be9,
|
||||
0x5beb, 0x5c64, 0x5c65, 0x5d9d, 0x5d94, 0x5e62, 0x5e5f, 0x5e61,
|
||||
0x5ee2, 0x5eda, 0x5edf, 0x5edd, 0x5ee3, 0x5ee0, 0x5f48, 0x5f71,
|
||||
0x5fb7, 0x5fb5, 0x6176, 0x6167, 0x616e, 0x615d, 0x6155, 0x6182,
|
||||
0x617c, 0x6170, 0x616b, 0x617e, 0x61a7, 0x6190, 0x61ab, 0x618e,
|
||||
0x61ac, 0x619a, 0x61a4, 0x6194, 0x61ae, 0x622e, 0x6469, 0x646f,
|
||||
0x6479, 0x649e, 0x64b2, 0x6488, 0x6490, 0x64b0,
|
||||
/* 0x6d */
|
||||
0x64a5, 0x6493, 0x6495, 0x64a9, 0x6492, 0x64ae, 0x64ad, 0x64ab,
|
||||
0x649a, 0x64ac, 0x6499, 0x64a2, 0x64b3, 0x6575, 0x6577, 0x6578,
|
||||
0x66ae, 0x66ab, 0x66b4, 0x66b1, 0x6a23, 0x6a1f, 0x69e8, 0x6a01,
|
||||
0x6a1e, 0x6a19, 0x69fd, 0x6a21, 0x6a13, 0x6a0a, 0x69f3, 0x6a02,
|
||||
0x6a05, 0x69ed, 0x6a11, 0x6b50, 0x6b4e, 0x6ba4, 0x6bc5, 0x6bc6,
|
||||
0x6f3f, 0x6f7c, 0x6f84, 0x6f51, 0x6f66, 0x6f54, 0x6f86, 0x6f6d,
|
||||
0x6f5b, 0x6f78, 0x6f6e, 0x6f8e, 0x6f7a, 0x6f70, 0x6f64, 0x6f97,
|
||||
0x6f58, 0x6ed5, 0x6f6f, 0x6f60, 0x6f5f, 0x719f, 0x71ac, 0x71b1,
|
||||
0x71a8, 0x7256, 0x729b, 0x734e, 0x7357, 0x7469, 0x748b, 0x7483,
|
||||
0x747e, 0x7480, 0x757f, 0x7620, 0x7629, 0x761f, 0x7624, 0x7626,
|
||||
0x7621, 0x7622, 0x769a, 0x76ba, 0x76e4, 0x778e, 0x7787, 0x778c,
|
||||
0x7791, 0x778b, 0x78cb, 0x78c5, 0x78ba, 0x78ca,
|
||||
/* 0x6e */
|
||||
0x78be, 0x78d5, 0x78bc, 0x78d0, 0x7a3f, 0x7a3c, 0x7a40, 0x7a3d,
|
||||
0x7a37, 0x7a3b, 0x7aaf, 0x7aae, 0x7bad, 0x7bb1, 0x7bc4, 0x7bb4,
|
||||
0x7bc6, 0x7bc7, 0x7bc1, 0x7ba0, 0x7bcc, 0x7cca, 0x7de0, 0x7df4,
|
||||
0x7def, 0x7dfb, 0x7dd8, 0x7dec, 0x7ddd, 0x7de8, 0x7de3, 0x7dda,
|
||||
0x7dde, 0x7de9, 0x7d9e, 0x7dd9, 0x7df2, 0x7df9, 0x7f75, 0x7f77,
|
||||
0x7faf, 0x7fe9, 0x8026, 0x819b, 0x819c, 0x819d, 0x81a0, 0x819a,
|
||||
0x8198, 0x8517, 0x853d, 0x851a, 0x84ee, 0x852c, 0x852d, 0x8513,
|
||||
0x8511, 0x8523, 0x8521, 0x8514, 0x84ec, 0x8525, 0x84ff, 0x8506,
|
||||
0x8782, 0x8774, 0x8776, 0x8760, 0x8766, 0x8778, 0x8768, 0x8759,
|
||||
0x8757, 0x874c, 0x8753, 0x885b, 0x885d, 0x8910, 0x8907, 0x8912,
|
||||
0x8913, 0x8915, 0x890a, 0x8abc, 0x8ad2, 0x8ac7, 0x8ac4, 0x8a95,
|
||||
0x8acb, 0x8af8, 0x8ab2, 0x8ac9, 0x8ac2, 0x8abf,
|
||||
/* 0x6f */
|
||||
0x8ab0, 0x8ad6, 0x8acd, 0x8ab6, 0x8ab9, 0x8adb, 0x8c4c, 0x8c4e,
|
||||
0x8c6c, 0x8ce0, 0x8cde, 0x8ce6, 0x8ce4, 0x8cec, 0x8ced, 0x8ce2,
|
||||
0x8ce3, 0x8cdc, 0x8cea, 0x8ce1, 0x8d6d, 0x8d9f, 0x8da3, 0x8e2b,
|
||||
0x8e10, 0x8e1d, 0x8e22, 0x8e0f, 0x8e29, 0x8e1f, 0x8e21, 0x8e1e,
|
||||
0x8eba, 0x8f1d, 0x8f1b, 0x8f1f, 0x8f29, 0x8f26, 0x8f2a, 0x8f1c,
|
||||
0x8f1e, 0x8f25, 0x9069, 0x906e, 0x9068, 0x906d, 0x9077, 0x9130,
|
||||
0x912d, 0x9127, 0x9131, 0x9187, 0x9189, 0x918b, 0x9183, 0x92c5,
|
||||
0x92bb, 0x92b7, 0x92ea, 0x92e4, 0x92c1, 0x92b3, 0x92bc, 0x92d2,
|
||||
0x92c7, 0x92f0, 0x92b2, 0x95ad, 0x95b1, 0x9704, 0x9706, 0x9707,
|
||||
0x9709, 0x9760, 0x978d, 0x978b, 0x978f, 0x9821, 0x982b, 0x981c,
|
||||
0x98b3, 0x990a, 0x9913, 0x9912, 0x9918, 0x99dd, 0x99d0, 0x99df,
|
||||
0x99db, 0x99d1, 0x99d5, 0x99d2, 0x99d9, 0x9ab7,
|
||||
/* 0x70 */
|
||||
0x9aee, 0x9aef, 0x9b27, 0x9b45, 0x9b44, 0x9b77, 0x9b6f, 0x9d06,
|
||||
0x9d09, 0x9d03, 0x9ea9, 0x9ebe, 0x9ece, 0x58a8, 0x9f52, 0x5112,
|
||||
0x5118, 0x5114, 0x5110, 0x5115, 0x5180, 0x51aa, 0x51dd, 0x5291,
|
||||
0x5293, 0x52f3, 0x5659, 0x566b, 0x5679, 0x5669, 0x5664, 0x5678,
|
||||
0x566a, 0x5668, 0x5665, 0x5671, 0x566f, 0x566c, 0x5662, 0x5676,
|
||||
0x58c1, 0x58be, 0x58c7, 0x58c5, 0x596e, 0x5b1d, 0x5b34, 0x5b78,
|
||||
0x5bf0, 0x5c0e, 0x5f4a, 0x61b2, 0x6191, 0x61a9, 0x618a, 0x61cd,
|
||||
0x61b6, 0x61be, 0x61ca, 0x61c8, 0x6230, 0x64c5, 0x64c1, 0x64cb,
|
||||
0x64bb, 0x64bc, 0x64da, 0x64c4, 0x64c7, 0x64c2, 0x64cd, 0x64bf,
|
||||
0x64d2, 0x64d4, 0x64be, 0x6574, 0x66c6, 0x66c9, 0x66b9, 0x66c4,
|
||||
0x66c7, 0x66b8, 0x6a3d, 0x6a38, 0x6a3a, 0x6a59, 0x6a6b, 0x6a58,
|
||||
0x6a39, 0x6a44, 0x6a62, 0x6a61, 0x6a4b, 0x6a47,
|
||||
/* 0x71 */
|
||||
0x6a35, 0x6a5f, 0x6a48, 0x6b59, 0x6b77, 0x6c05, 0x6fc2, 0x6fb1,
|
||||
0x6fa1, 0x6fc3, 0x6fa4, 0x6fc1, 0x6fa7, 0x6fb3, 0x6fc0, 0x6fb9,
|
||||
0x6fb6, 0x6fa6, 0x6fa0, 0x6fb4, 0x71be, 0x71c9, 0x71d0, 0x71d2,
|
||||
0x71c8, 0x71d5, 0x71b9, 0x71ce, 0x71d9, 0x71dc, 0x71c3, 0x71c4,
|
||||
0x7368, 0x749c, 0x74a3, 0x7498, 0x749f, 0x749e, 0x74e2, 0x750c,
|
||||
0x750d, 0x7634, 0x7638, 0x763a, 0x76e7, 0x76e5, 0x77a0, 0x779e,
|
||||
0x779f, 0x77a5, 0x78e8, 0x78da, 0x78ec, 0x78e7, 0x79a6, 0x7a4d,
|
||||
0x7a4e, 0x7a46, 0x7a4c, 0x7a4b, 0x7aba, 0x7bd9, 0x7c11, 0x7bc9,
|
||||
0x7be4, 0x7bdb, 0x7be1, 0x7be9, 0x7be6, 0x7cd5, 0x7cd6, 0x7e0a,
|
||||
0x7e11, 0x7e08, 0x7e1b, 0x7e23, 0x7e1e, 0x7e1d, 0x7e09, 0x7e10,
|
||||
0x7f79, 0x7fb2, 0x7ff0, 0x7ff1, 0x7fee, 0x8028, 0x81b3, 0x81a9,
|
||||
0x81a8, 0x81fb, 0x8208, 0x8258, 0x8259, 0x854a,
|
||||
/* 0x72 */
|
||||
0x8559, 0x8548, 0x8568, 0x8569, 0x8543, 0x8549, 0x856d, 0x856a,
|
||||
0x855e, 0x8783, 0x879f, 0x879e, 0x87a2, 0x878d, 0x8861, 0x892a,
|
||||
0x8932, 0x8925, 0x892b, 0x8921, 0x89aa, 0x89a6, 0x8ae6, 0x8afa,
|
||||
0x8aeb, 0x8af1, 0x8b00, 0x8adc, 0x8ae7, 0x8aee, 0x8afe, 0x8b01,
|
||||
0x8b02, 0x8af7, 0x8aed, 0x8af3, 0x8af6, 0x8afc, 0x8c6b, 0x8c6d,
|
||||
0x8c93, 0x8cf4, 0x8e44, 0x8e31, 0x8e34, 0x8e42, 0x8e39, 0x8e35,
|
||||
0x8f3b, 0x8f2f, 0x8f38, 0x8f33, 0x8fa8, 0x8fa6, 0x9075, 0x9074,
|
||||
0x9078, 0x9072, 0x907c, 0x907a, 0x9134, 0x9192, 0x9320, 0x9336,
|
||||
0x92f8, 0x9333, 0x932f, 0x9322, 0x92fc, 0x932b, 0x9304, 0x931a,
|
||||
0x9310, 0x9326, 0x9321, 0x9315, 0x932e, 0x9319, 0x95bb, 0x96a7,
|
||||
0x96a8, 0x96aa, 0x96d5, 0x970e, 0x9711, 0x9716, 0x970d, 0x9713,
|
||||
0x970f, 0x975b, 0x975c, 0x9766, 0x9798, 0x9830,
|
||||
/* 0x73 */
|
||||
0x9838, 0x983b, 0x9837, 0x982d, 0x9839, 0x9824, 0x9910, 0x9928,
|
||||
0x991e, 0x991b, 0x9921, 0x991a, 0x99ed, 0x99e2, 0x99f1, 0x9ab8,
|
||||
0x9abc, 0x9afb, 0x9aed, 0x9b28, 0x9b91, 0x9d15, 0x9d23, 0x9d26,
|
||||
0x9d28, 0x9d12, 0x9d1b, 0x9ed8, 0x9ed4, 0x9f8d, 0x9f9c, 0x512a,
|
||||
0x511f, 0x5121, 0x5132, 0x52f5, 0x568e, 0x5680, 0x5690, 0x5685,
|
||||
0x5687, 0x568f, 0x58d5, 0x58d3, 0x58d1, 0x58ce, 0x5b30, 0x5b2a,
|
||||
0x5b24, 0x5b7a, 0x5c37, 0x5c68, 0x5dbc, 0x5dba, 0x5dbd, 0x5db8,
|
||||
0x5e6b, 0x5f4c, 0x5fbd, 0x61c9, 0x61c2, 0x61c7, 0x61e6, 0x61cb,
|
||||
0x6232, 0x6234, 0x64ce, 0x64ca, 0x64d8, 0x64e0, 0x64f0, 0x64e6,
|
||||
0x64ec, 0x64f1, 0x64e2, 0x64ed, 0x6582, 0x6583, 0x66d9, 0x66d6,
|
||||
0x6a80, 0x6a94, 0x6a84, 0x6aa2, 0x6a9c, 0x6adb, 0x6aa3, 0x6a7e,
|
||||
0x6a97, 0x6a90, 0x6aa0, 0x6b5c, 0x6bae, 0x6bda,
|
||||
/* 0x74 */
|
||||
0x6c08, 0x6fd8, 0x6ff1, 0x6fdf, 0x6fe0, 0x6fdb, 0x6fe4, 0x6feb,
|
||||
0x6fef, 0x6f80, 0x6fec, 0x6fe1, 0x6fe9, 0x6fd5, 0x6fee, 0x6ff0,
|
||||
0x71e7, 0x71df, 0x71ee, 0x71e6, 0x71e5, 0x71ed, 0x71ec, 0x71f4,
|
||||
0x71e0, 0x7235, 0x7246, 0x7370, 0x7372, 0x74a9, 0x74b0, 0x74a6,
|
||||
0x74a8, 0x7646, 0x7642, 0x764c, 0x76ea, 0x77b3, 0x77aa, 0x77b0,
|
||||
0x77ac, 0x77a7, 0x77ad, 0x77ef, 0x78f7, 0x78fa, 0x78f4, 0x78ef,
|
||||
0x7901, 0x79a7, 0x79aa, 0x7a57, 0x7abf, 0x7c07, 0x7c0d, 0x7bfe,
|
||||
0x7bf7, 0x7c0c, 0x7be0, 0x7ce0, 0x7cdc, 0x7cde, 0x7ce2, 0x7cdf,
|
||||
0x7cd9, 0x7cdd, 0x7e2e, 0x7e3e, 0x7e46, 0x7e37, 0x7e32, 0x7e43,
|
||||
0x7e2b, 0x7e3d, 0x7e31, 0x7e45, 0x7e41, 0x7e34, 0x7e39, 0x7e48,
|
||||
0x7e35, 0x7e3f, 0x7e2f, 0x7f44, 0x7ff3, 0x7ffc, 0x8071, 0x8072,
|
||||
0x8070, 0x806f, 0x8073, 0x81c6, 0x81c3, 0x81ba,
|
||||
/* 0x75 */
|
||||
0x81c2, 0x81c0, 0x81bf, 0x81bd, 0x81c9, 0x81be, 0x81e8, 0x8209,
|
||||
0x8271, 0x85aa, 0x8584, 0x857e, 0x859c, 0x8591, 0x8594, 0x85af,
|
||||
0x859b, 0x8587, 0x85a8, 0x858a, 0x85a6, 0x8667, 0x87c0, 0x87d1,
|
||||
0x87b3, 0x87d2, 0x87c6, 0x87ab, 0x87bb, 0x87ba, 0x87c8, 0x87cb,
|
||||
0x893b, 0x8936, 0x8944, 0x8938, 0x893d, 0x89ac, 0x8b0e, 0x8b17,
|
||||
0x8b19, 0x8b1b, 0x8b0a, 0x8b20, 0x8b1d, 0x8b04, 0x8b10, 0x8c41,
|
||||
0x8c3f, 0x8c73, 0x8cfa, 0x8cfd, 0x8cfc, 0x8cf8, 0x8cfb, 0x8da8,
|
||||
0x8e49, 0x8e4b, 0x8e48, 0x8e4a, 0x8f44, 0x8f3e, 0x8f42, 0x8f45,
|
||||
0x8f3f, 0x907f, 0x907d, 0x9084, 0x9081, 0x9082, 0x9080, 0x9139,
|
||||
0x91a3, 0x919e, 0x919c, 0x934d, 0x9382, 0x9328, 0x9375, 0x934a,
|
||||
0x9365, 0x934b, 0x9318, 0x937e, 0x936c, 0x935b, 0x9370, 0x935a,
|
||||
0x9354, 0x95ca, 0x95cb, 0x95cc, 0x95c8, 0x95c6,
|
||||
/* 0x76 */
|
||||
0x96b1, 0x96b8, 0x96d6, 0x971c, 0x971e, 0x97a0, 0x97d3, 0x9846,
|
||||
0x98b6, 0x9935, 0x9a01, 0x99ff, 0x9bae, 0x9bab, 0x9baa, 0x9bad,
|
||||
0x9d3b, 0x9d3f, 0x9e8b, 0x9ecf, 0x9ede, 0x9edc, 0x9edd, 0x9edb,
|
||||
0x9f3e, 0x9f4b, 0x53e2, 0x5695, 0x56ae, 0x58d9, 0x58d8, 0x5b38,
|
||||
0x5f5e, 0x61e3, 0x6233, 0x64f4, 0x64f2, 0x64fe, 0x6506, 0x64fa,
|
||||
0x64fb, 0x64f7, 0x65b7, 0x66dc, 0x6726, 0x6ab3, 0x6aac, 0x6ac3,
|
||||
0x6abb, 0x6ab8, 0x6ac2, 0x6aae, 0x6aaf, 0x6b5f, 0x6b78, 0x6baf,
|
||||
0x7009, 0x700b, 0x6ffe, 0x7006, 0x6ffa, 0x7011, 0x700f, 0x71fb,
|
||||
0x71fc, 0x71fe, 0x71f8, 0x7377, 0x7375, 0x74a7, 0x74bf, 0x7515,
|
||||
0x7656, 0x7658, 0x7652, 0x77bd, 0x77bf, 0x77bb, 0x77bc, 0x790e,
|
||||
0x79ae, 0x7a61, 0x7a62, 0x7a60, 0x7ac4, 0x7ac5, 0x7c2b, 0x7c27,
|
||||
0x7c2a, 0x7c1e, 0x7c23, 0x7c21, 0x7ce7, 0x7e54,
|
||||
/* 0x77 */
|
||||
0x7e55, 0x7e5e, 0x7e5a, 0x7e61, 0x7e52, 0x7e59, 0x7f48, 0x7ff9,
|
||||
0x7ffb, 0x8077, 0x8076, 0x81cd, 0x81cf, 0x820a, 0x85cf, 0x85a9,
|
||||
0x85cd, 0x85d0, 0x85c9, 0x85b0, 0x85ba, 0x85b9, 0x87ef, 0x87ec,
|
||||
0x87f2, 0x87e0, 0x8986, 0x89b2, 0x89f4, 0x8b28, 0x8b39, 0x8b2c,
|
||||
0x8b2b, 0x8c50, 0x8d05, 0x8e59, 0x8e63, 0x8e66, 0x8e64, 0x8e5f,
|
||||
0x8e55, 0x8ec0, 0x8f49, 0x8f4d, 0x9087, 0x9083, 0x9088, 0x91ab,
|
||||
0x91ac, 0x91d0, 0x9394, 0x938a, 0x9396, 0x93a2, 0x93b3, 0x93ae,
|
||||
0x93ac, 0x93b0, 0x9398, 0x939a, 0x9397, 0x95d4, 0x95d6, 0x95d0,
|
||||
0x95d5, 0x96e2, 0x96dc, 0x96d9, 0x96db, 0x96de, 0x9724, 0x97a3,
|
||||
0x97a6, 0x97ad, 0x97f9, 0x984d, 0x984f, 0x984c, 0x984e, 0x9853,
|
||||
0x98ba, 0x993e, 0x993f, 0x993d, 0x992e, 0x99a5, 0x9a0e, 0x9ac1,
|
||||
0x9b03, 0x9b06, 0x9b4f, 0x9b4e, 0x9b4d, 0x9bca,
|
||||
/* 0x78 */
|
||||
0x9bc9, 0x9bfd, 0x9bc8, 0x9bc0, 0x9d51, 0x9d5d, 0x9d60, 0x9ee0,
|
||||
0x9f15, 0x9f2c, 0x5133, 0x56a5, 0x56a8, 0x58de, 0x58df, 0x58e2,
|
||||
0x5bf5, 0x9f90, 0x5eec, 0x61f2, 0x61f7, 0x61f6, 0x61f5, 0x6500,
|
||||
0x650f, 0x66e0, 0x66dd, 0x6ae5, 0x6add, 0x6ada, 0x6ad3, 0x701b,
|
||||
0x701f, 0x7028, 0x701a, 0x701d, 0x7015, 0x7018, 0x7206, 0x720d,
|
||||
0x7258, 0x72a2, 0x7378, 0x737a, 0x74bd, 0x74ca, 0x74e3, 0x7587,
|
||||
0x7586, 0x765f, 0x7661, 0x77c7, 0x7919, 0x79b1, 0x7a6b, 0x7a69,
|
||||
0x7c3e, 0x7c3f, 0x7c38, 0x7c3d, 0x7c37, 0x7c40, 0x7e6b, 0x7e6d,
|
||||
0x7e79, 0x7e69, 0x7e6a, 0x7e73, 0x7f85, 0x7fb6, 0x7fb9, 0x7fb8,
|
||||
0x81d8, 0x85e9, 0x85dd, 0x85ea, 0x85d5, 0x85e4, 0x85e5, 0x85f7,
|
||||
0x87fb, 0x8805, 0x880d, 0x87f9, 0x87fe, 0x8960, 0x895f, 0x8956,
|
||||
0x895e, 0x8b41, 0x8b5c, 0x8b58, 0x8b49, 0x8b5a,
|
||||
/* 0x79 */
|
||||
0x8b4e, 0x8b4f, 0x8b46, 0x8b59, 0x8d08, 0x8d0a, 0x8e7c, 0x8e72,
|
||||
0x8e87, 0x8e76, 0x8e6c, 0x8e7a, 0x8e74, 0x8f54, 0x8f4e, 0x8fad,
|
||||
0x908a, 0x908b, 0x91b1, 0x91ae, 0x93e1, 0x93d1, 0x93df, 0x93c3,
|
||||
0x93c8, 0x93dc, 0x93dd, 0x93d6, 0x93e2, 0x93cd, 0x93d8, 0x93e4,
|
||||
0x93d7, 0x93e8, 0x95dc, 0x96b4, 0x96e3, 0x972a, 0x9727, 0x9761,
|
||||
0x97dc, 0x97fb, 0x985e, 0x9858, 0x985b, 0x98bc, 0x9945, 0x9949,
|
||||
0x9a16, 0x9a19, 0x9b0d, 0x9be8, 0x9be7, 0x9bd6, 0x9bdb, 0x9d89,
|
||||
0x9d61, 0x9d72, 0x9d6a, 0x9d6c, 0x9e92, 0x9e97, 0x9e93, 0x9eb4,
|
||||
0x52f8, 0x56b7, 0x56b6, 0x56b4, 0x56bc, 0x58e4, 0x5b40, 0x5b43,
|
||||
0x5b7d, 0x5bf6, 0x5dc9, 0x61f8, 0x61fa, 0x6518, 0x6514, 0x6519,
|
||||
0x66e6, 0x6727, 0x6aec, 0x703e, 0x7030, 0x7032, 0x7210, 0x737b,
|
||||
0x74cf, 0x7662, 0x7665, 0x7926, 0x792a, 0x792c,
|
||||
/* 0x7a */
|
||||
0x792b, 0x7ac7, 0x7af6, 0x7c4c, 0x7c43, 0x7c4d, 0x7cef, 0x7cf0,
|
||||
0x8fae, 0x7e7d, 0x7e7c, 0x7e82, 0x7f4c, 0x8000, 0x81da, 0x8266,
|
||||
0x85fb, 0x85f9, 0x8611, 0x85fa, 0x8606, 0x860b, 0x8607, 0x860a,
|
||||
0x8814, 0x8815, 0x8964, 0x89ba, 0x89f8, 0x8b70, 0x8b6c, 0x8b66,
|
||||
0x8b6f, 0x8b5f, 0x8b6b, 0x8d0f, 0x8d0d, 0x8e89, 0x8e81, 0x8e85,
|
||||
0x8e82, 0x91b4, 0x91cb, 0x9418, 0x9403, 0x93fd, 0x95e1, 0x9730,
|
||||
0x98c4, 0x9952, 0x9951, 0x99a8, 0x9a2b, 0x9a30, 0x9a37, 0x9a35,
|
||||
0x9c13, 0x9c0d, 0x9e79, 0x9eb5, 0x9ee8, 0x9f2f, 0x9f5f, 0x9f63,
|
||||
0x9f61, 0x5137, 0x5138, 0x56c1, 0x56c0, 0x56c2, 0x5914, 0x5c6c,
|
||||
0x5dcd, 0x61fc, 0x61fe, 0x651d, 0x651c, 0x6595, 0x66e9, 0x6afb,
|
||||
0x6b04, 0x6afa, 0x6bb2, 0x704c, 0x721b, 0x72a7, 0x74d6, 0x74d4,
|
||||
0x7669, 0x77d3, 0x7c50, 0x7e8f, 0x7e8c, 0x7fbc,
|
||||
/* 0x7b */
|
||||
0x8617, 0x862d, 0x861a, 0x8823, 0x8822, 0x8821, 0x881f, 0x896a,
|
||||
0x896c, 0x89bd, 0x8b74, 0x8b77, 0x8b7d, 0x8d13, 0x8e8a, 0x8e8d,
|
||||
0x8e8b, 0x8f5f, 0x8faf, 0x91ba, 0x942e, 0x9433, 0x9435, 0x943a,
|
||||
0x9438, 0x9432, 0x942b, 0x95e2, 0x9738, 0x9739, 0x9732, 0x97ff,
|
||||
0x9867, 0x9865, 0x9957, 0x9a45, 0x9a43, 0x9a40, 0x9a3e, 0x9acf,
|
||||
0x9b54, 0x9b51, 0x9c2d, 0x9c25, 0x9daf, 0x9db4, 0x9dc2, 0x9db8,
|
||||
0x9e9d, 0x9eef, 0x9f19, 0x9f5c, 0x9f66, 0x9f67, 0x513c, 0x513b,
|
||||
0x56c8, 0x56ca, 0x56c9, 0x5b7f, 0x5dd4, 0x5dd2, 0x5f4e, 0x61ff,
|
||||
0x6524, 0x6b0a, 0x6b61, 0x7051, 0x7058, 0x7380, 0x74e4, 0x758a,
|
||||
0x766e, 0x766c, 0x79b3, 0x7c60, 0x7c5f, 0x807e, 0x807d, 0x81df,
|
||||
0x8972, 0x896f, 0x89fc, 0x8b80, 0x8d16, 0x8d17, 0x8e91, 0x8e93,
|
||||
0x8f61, 0x9148, 0x9444, 0x9451, 0x9452, 0x973d,
|
||||
/* 0x7c */
|
||||
0x973e, 0x97c3, 0x97c1, 0x986b, 0x9955, 0x9a55, 0x9a4d, 0x9ad2,
|
||||
0x9b1a, 0x9c49, 0x9c31, 0x9c3e, 0x9c3b, 0x9dd3, 0x9dd7, 0x9f34,
|
||||
0x9f6c, 0x9f6a, 0x9f94, 0x56cc, 0x5dd6, 0x6200, 0x6523, 0x652b,
|
||||
0x652a, 0x66ec, 0x6b10, 0x74da, 0x7aca, 0x7c64, 0x7c63, 0x7c65,
|
||||
0x7e93, 0x7e96, 0x7e94, 0x81e2, 0x8638, 0x863f, 0x8831, 0x8b8a,
|
||||
0x9090, 0x908f, 0x9463, 0x9460, 0x9464, 0x9768, 0x986f, 0x995c,
|
||||
0x9a5a, 0x9a5b, 0x9a57, 0x9ad3, 0x9ad4, 0x9ad1, 0x9c54, 0x9c57,
|
||||
0x9c56, 0x9de5, 0x9e9f, 0x9ef4, 0x56d1, 0x58e9, 0x652c, 0x705e,
|
||||
0x7671, 0x7672, 0x77d7, 0x7f50, 0x7f88, 0x8836, 0x8839, 0x8862,
|
||||
0x8b93, 0x8b92, 0x8b96, 0x8277, 0x8d1b, 0x91c0, 0x946a, 0x9742,
|
||||
0x9748, 0x9744, 0x97c6, 0x9870, 0x9a5f, 0x9b22, 0x9b58, 0x9c5f,
|
||||
0x9df9, 0x9dfa, 0x9e7c, 0x9e7d, 0x9f07, 0x9f77,
|
||||
/* 0x7d */
|
||||
0x9f72, 0x5ef3, 0x6b16, 0x7063, 0x7c6c, 0x7c6e, 0x883b, 0x89c0,
|
||||
0x8ea1, 0x91c1, 0x9472, 0x9470, 0x9871, 0x995e, 0x9ad6, 0x9b23,
|
||||
0x9ecc, 0x7064, 0x77da, 0x8b9a, 0x9477, 0x97c9, 0x9a62, 0x9a65,
|
||||
0x7e9c, 0x8b9c, 0x8eaa, 0x91c5, 0x947d, 0x947e, 0x947c, 0x9c77,
|
||||
0x9c78, 0x9ef7, 0x8c54, 0x947f, 0x9e1a, 0x7228, 0x9a6a, 0x9b31,
|
||||
0x9e1b, 0x9e1e, 0x7c72,
|
||||
};
|
||||
|
||||
static int
|
||||
cns11643_1_mbtowc (conv_t conv, ucs4_t *pwc, const unsigned char *s, size_t n)
|
||||
{
|
||||
unsigned char c1 = s[0];
|
||||
if ((c1 >= 0x21 && c1 <= 0x27) || (c1 == 0x42) || (c1 >= 0x44 && c1 <= 0x7d)) {
|
||||
if (n >= 2) {
|
||||
unsigned char c2 = s[1];
|
||||
if (c2 >= 0x21 && c2 < 0x7f) {
|
||||
unsigned int i = 94 * (c1 - 0x21) + (c2 - 0x21);
|
||||
unsigned short wc = 0xfffd;
|
||||
if (i < 3102) {
|
||||
if (i < 500)
|
||||
wc = cns11643_1_2uni_page21[i];
|
||||
else if (i == 571)
|
||||
wc = 0x4ea0;
|
||||
else if (i == 578)
|
||||
wc = 0x51ab;
|
||||
else if (i == 583)
|
||||
wc = 0x52f9;
|
||||
} else if (i < 3290) {
|
||||
if (i < 3136)
|
||||
wc = cns11643_1_2uni_page42[i-3102];
|
||||
} else {
|
||||
if (i < 8691)
|
||||
wc = cns11643_1_2uni_page44[i-3290];
|
||||
}
|
||||
if (wc != 0xfffd) {
|
||||
*pwc = (ucs4_t) wc;
|
||||
return 2;
|
||||
}
|
||||
}
|
||||
return RET_ILSEQ;
|
||||
}
|
||||
return RET_TOOFEW(0);
|
||||
}
|
||||
return RET_ILSEQ;
|
||||
}
|
||||
|
1083
libiconv/lib/cns11643_15.h
Normal file
1083
libiconv/lib/cns11643_15.h
Normal file
File diff suppressed because it is too large
Load Diff
1112
libiconv/lib/cns11643_2.h
Normal file
1112
libiconv/lib/cns11643_2.h
Normal file
File diff suppressed because it is too large
Load Diff
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user