X-Git-Url: https://git.dlugolecki.net.pl/?a=blobdiff_plain;f=gedcom%2Fgedcom_lex_common.c;h=703a9de9d3f21987ec3b22f51d267218603b596e;hb=84f96f49d14f1bae8a7f58a25bfd3b0f9d31f34b;hp=4949346bb9b903a5f891e887b87ebd74aa1a18fe;hpb=32002ea8d471295f49c4e7e4789afd9feacc96b5;p=gedcom-parse.git 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); \ }