mirror of
https://github.com/zint/zint
synced 2024-11-16 20:57:25 +13:00
eci: All ECIs: update CLI main.c and tcl zint.c
This commit is contained in:
18
backend_tcl/configure
vendored
18
backend_tcl/configure
vendored
@ -1,6 +1,6 @@
|
||||
#! /bin/sh
|
||||
# Guess values for system-dependent variables and create Makefiles.
|
||||
# Generated by GNU Autoconf 2.69 for zint 2.9.1.9.
|
||||
# Generated by GNU Autoconf 2.69 for zint 2.9.1.
|
||||
#
|
||||
#
|
||||
# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
|
||||
@ -577,8 +577,8 @@ MAKEFLAGS=
|
||||
# Identity of this package.
|
||||
PACKAGE_NAME='zint'
|
||||
PACKAGE_TARNAME='zint'
|
||||
PACKAGE_VERSION='2.9.1.9'
|
||||
PACKAGE_STRING='zint 2.9.1.9'
|
||||
PACKAGE_VERSION='2.9.1'
|
||||
PACKAGE_STRING='zint 2.9.1'
|
||||
PACKAGE_BUGREPORT=''
|
||||
PACKAGE_URL=''
|
||||
|
||||
@ -1318,7 +1318,7 @@ if test "$ac_init_help" = "long"; then
|
||||
# Omit some internal or obsolete options to make the list less imposing.
|
||||
# This message is too long to be a string in the A/UX 3.1 sh.
|
||||
cat <<_ACEOF
|
||||
\`configure' configures zint 2.9.1.9 to adapt to many kinds of systems.
|
||||
\`configure' configures zint 2.9.1 to adapt to many kinds of systems.
|
||||
|
||||
Usage: $0 [OPTION]... [VAR=VALUE]...
|
||||
|
||||
@ -1380,7 +1380,7 @@ fi
|
||||
|
||||
if test -n "$ac_init_help"; then
|
||||
case $ac_init_help in
|
||||
short | recursive ) echo "Configuration of zint 2.9.1.9:";;
|
||||
short | recursive ) echo "Configuration of zint 2.9.1:";;
|
||||
esac
|
||||
cat <<\_ACEOF
|
||||
|
||||
@ -1482,7 +1482,7 @@ fi
|
||||
test -n "$ac_init_help" && exit $ac_status
|
||||
if $ac_init_version; then
|
||||
cat <<\_ACEOF
|
||||
zint configure 2.9.1.9
|
||||
zint configure 2.9.1
|
||||
generated by GNU Autoconf 2.69
|
||||
|
||||
Copyright (C) 2012 Free Software Foundation, Inc.
|
||||
@ -1847,7 +1847,7 @@ cat >config.log <<_ACEOF
|
||||
This file contains any messages produced by compilers while
|
||||
running configure, to aid debugging if configure makes a mistake.
|
||||
|
||||
It was created by zint $as_me 2.9.1.9, which was
|
||||
It was created by zint $as_me 2.9.1, which was
|
||||
generated by GNU Autoconf 2.69. Invocation command line was
|
||||
|
||||
$ $0 $@
|
||||
@ -9595,7 +9595,7 @@ cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
|
||||
# report actual input values of CONFIG_FILES etc. instead of their
|
||||
# values after options handling.
|
||||
ac_log="
|
||||
This file was extended by zint $as_me 2.9.1.9, which was
|
||||
This file was extended by zint $as_me 2.9.1, which was
|
||||
generated by GNU Autoconf 2.69. Invocation command line was
|
||||
|
||||
CONFIG_FILES = $CONFIG_FILES
|
||||
@ -9648,7 +9648,7 @@ _ACEOF
|
||||
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
|
||||
ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
|
||||
ac_cs_version="\\
|
||||
zint config.status 2.9.1.9
|
||||
zint config.status 2.9.1
|
||||
configured by $0, generated by GNU Autoconf 2.69,
|
||||
with options \\"\$ac_cs_config\\"
|
||||
|
||||
|
@ -384,17 +384,17 @@ static char *s_eci_list[] = {
|
||||
"iso8859-14", /*16: ISO-8859-14 - Latin alphabet No. 8 (Celtic)*/
|
||||
"iso8859-15", /*17: ISO-8859-15 - Latin alphabet No. 9*/
|
||||
"iso8859-16", /*18: ISO-8859-16 - Latin alphabet No. 10*/
|
||||
"jis0208", /*20: ** Shift-JIS (JISX 0208 amd JISX 0201)*/
|
||||
"jis0208", /*20: Shift JIS (JIS X 0208 and JIS X 0201)*/
|
||||
"cp1250", /*21: Windows-1250*/
|
||||
"cp1251", /*22: Windows-1251*/
|
||||
"cp1252", /*23: Windows-1252*/
|
||||
"cp1256", /*24: Windows-1256*/
|
||||
"unicode", /*25: ** UCS-2 Unicode (High order byte first)*/
|
||||
"unicode", /*25: UCS-2BE (High order byte first) Unicode BMP*/
|
||||
"utf-8", /*26: Unicode (UTF-8)*/
|
||||
"ascii", /*27: ISO-646:1991 7-bit character set*/
|
||||
"big5", /*28: ** Big-5 (Taiwan) Chinese Character Set*/
|
||||
"euc-cn", /*29: ** GB (PRC) Chinese Character Set*/
|
||||
"iso2022-kr", /*30: ** Korean Character Set (KSX1001:1998)*/
|
||||
"big5", /*28: Big5 (Taiwan) Chinese Character Set*/
|
||||
"euc-cn", /*29: GB (PRC) Chinese Character Set*/
|
||||
"iso2022-kr", /*30: Korean Character Set (KS X 1001:2002)*/
|
||||
NULL
|
||||
};
|
||||
|
||||
@ -403,15 +403,6 @@ static int s_eci_number[] = {
|
||||
3,4,5,6,7,8,9,10,11,12,13,15,16,17,18,20,21,22,23,24,25,26,27,28,29,30
|
||||
};
|
||||
|
||||
/* Flag if an encoding is delivered as unicode. If not, native encoding is
|
||||
* required.
|
||||
* Those encodings are marked with "**" in the upper comments.
|
||||
*/
|
||||
static int s_eci_unicode_input[] = {
|
||||
/* 3,4,5,6,7,8,9,10,11,12,13,15,16,17,18,20,21,22,23,24,25,26,27,28,29,30 */
|
||||
1,1,1,1,1,1,1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 0, 1, 1, 0, 0, 0
|
||||
};
|
||||
|
||||
|
||||
/* Version information */
|
||||
static char version_string[] = VERSION;
|
||||
@ -1100,24 +1091,11 @@ static int Encode(Tcl_Interp *interp, int objc,
|
||||
/* Binary data */
|
||||
pStr = (char *) Tcl_GetByteArrayFromObj(objv[2], &lStr);
|
||||
} else {
|
||||
/* UTF8 Data (or ECI encoding) */
|
||||
if ( ! s_eci_unicode_input[ECIIndex]) {
|
||||
/* For this ECI, the Data must be encoded in the ECI encoding */
|
||||
Tcl_FreeEncoding(hZINTEncoding);
|
||||
hZINTEncoding = Tcl_GetEncoding(interp, s_eci_list[ECIIndex]);
|
||||
if (NULL == hZINTEncoding) {
|
||||
/* Interpreter has error message */
|
||||
fError = 1;
|
||||
}
|
||||
/* we must indicate binary data */
|
||||
my_symbol->input_mode = DATA_MODE;
|
||||
}
|
||||
if (! fError ) {
|
||||
pStr = Tcl_GetStringFromObj(objv[2], &lStr);
|
||||
Tcl_UtfToExternalDString( hZINTEncoding, pStr, lStr, &dsInput);
|
||||
pStr = Tcl_DStringValue( &dsInput );
|
||||
lStr = Tcl_DStringLength( &dsInput );
|
||||
}
|
||||
/* UTF8 Data */
|
||||
pStr = Tcl_GetStringFromObj(objv[2], &lStr);
|
||||
Tcl_UtfToExternalDString( hZINTEncoding, pStr, lStr, &dsInput);
|
||||
pStr = Tcl_DStringValue( &dsInput );
|
||||
lStr = Tcl_DStringLength( &dsInput );
|
||||
}
|
||||
}
|
||||
/*------------------------------------------------------------------------*/
|
||||
|
Reference in New Issue
Block a user