+/* 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. *
+
+ (C) 2001 by The Genes Development Team
+ Original author: Peter Verthez (Peter.Verthez@advalvas.be)
+*/
+
/* $Id$ */
/* $Name$ */
}
else if (level_diff == 1) {
level_diff++;
+ gedcom_lval.number = current_level;
return OPEN;
}
else {
}
else if (level_diff == 1) {
level_diff++;
+ gedcom_lval.number = current_level;
return OPEN;
}
else {
{
int tok, res;
init_encodings();
- res = open_conv_to_internal("UNICODE(LOHI)");
+ set_encoding_width(TWO_BYTE_LOHI);
+ res = open_conv_to_internal("UNICODE");
if (!res) {
gedcom_error("Unable to open conversion context: %s",
strerror(errno));
while (tok) {
switch(tok) {
case BADTOKEN: printf("BADTOKEN "); break;
- case OPEN: printf("OPEN "); break;
+ case OPEN: printf("OPEN(%d) ", gedcom_lval.number); break;
case CLOSE: printf("CLOSE "); break;
case ESCAPE: printf("ESCAPE(%s) ", gedcom_lval.string); break;
case DELIM: printf("DELIM "); break;