From: Peter Verthez Date: Sat, 25 Jan 2003 14:14:27 +0000 (+0000) Subject: Pass encoding terminator to encoding state. X-Git-Url: https://git.dlugolecki.net.pl/?a=commitdiff_plain;h=84f96f49d14f1bae8a7f58a25bfd3b0f9d31f34b;hp=03b5e1e83ef68195cf25ca2741a6ad9bdf6f027c;p=gedcom-parse.git Pass encoding terminator to encoding state. --- diff --git a/gedcom/gedcom_lex_common.c b/gedcom/gedcom_lex_common.c index 4949346..703a9de 100644 --- a/gedcom/gedcom_lex_common.c +++ b/gedcom/gedcom_lex_common.c @@ -336,6 +336,8 @@ static int dummy_conv = 0; #define ACTION_TERMINATOR \ { CHECK_LINE_LEN; \ INIT_LINE_LEN; \ + if (line_no == 1) \ + set_encoding_terminator(TO_INTERNAL(yytext, str_buffer)); \ BEGIN(INITIAL); \ }