projects
/
yaz-moved-to-github.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Make sure this compiles even without Libxml2.
[yaz-moved-to-github.git]
/
test
/
tsticonv.c
diff --git
a/test/tsticonv.c
b/test/tsticonv.c
index
b7e9704
..
61492b5
100644
(file)
--- a/
test/tsticonv.c
+++ b/
test/tsticonv.c
@@
-2,7
+2,7
@@
* Copyright (C) 1995-2005, Index Data ApS
* See the file LICENSE for details.
*
* Copyright (C) 1995-2005, Index Data ApS
* See the file LICENSE for details.
*
- * $Id: tsticonv.c,v 1.10 2005-06-25 15:46:07 adam Exp $
+ * $Id: tsticonv.c,v 1.12 2005-10-28 18:36:59 adam Exp $
*/
#if HAVE_CONFIG_H
*/
#if HAVE_CONFIG_H
@@
-17,8
+17,8
@@
#include <yaz/yaz-util.h>
static int compare_buffers(char *msg, int no,
#include <yaz/yaz-util.h>
static int compare_buffers(char *msg, int no,
- int expect_len, const unsigned char *expect_buf,
- int got_len, const unsigned char *got_buf)
+ int expect_len, const char *expect_buf,
+ int got_len, const char *got_buf)
{
int i;
if (expect_len == got_len
{
int i;
if (expect_len == got_len
@@
-108,9
+108,9
@@
static void tst_marc8_to_iso_8859_1()
static void tst_marc8_to_ucs4b()
{
static struct {
static void tst_marc8_to_ucs4b()
{
static struct {
- const unsigned char *marc8_b;
+ const char *marc8_b;
int len;
int len;
- const unsigned char *ucs4_b;
+ const char *ucs4_b;
} ar[] = {
{
"\033$1" "\x21\x2B\x3B" /* FF1F */ "\033(B" "o",
} ar[] = {
{
"\033$1" "\x21\x2B\x3B" /* FF1F */ "\033(B" "o",
@@
-159,6
+159,14
@@
static void tst_marc8_to_ucs4b()
"\xe5\xe8\x41",
12, "\x00\x00\x00\x41" "\x00\x00\x03\x04" "\x00\x00\x03\x08"
},
"\xe5\xe8\x41",
12, "\x00\x00\x00\x41" "\x00\x00\x03\x04" "\x00\x00\x03\x08"
},
+ { /* bug #416 */
+ "\xEB\x74\xEC\x73",
+ 12, "\x00\x00\x00\x74" "\x00\x00\x03\x61" "\x00\x00\x00\x73"
+ },
+ { /* bug #416 */
+ "\xFA\x74\xFB\x73",
+ 12, "\x00\x00\x00\x74" "\x00\x00\x03\x60" "\x00\x00\x00\x73"
+ },
{
0, 0, 0
}
{
0, 0, 0
}