X-Git-Url: https://git.dlugolecki.net.pl/?a=blobdiff_plain;f=gedcom%2Fgedcom_lex_common.c;h=68db840b4f645da43fcbd372fd474111bd95d99c;hb=3d1822cb295202993c11564f7dd64442d8b67d2f;hp=703a9de9d3f21987ec3b22f51d267218603b596e;hpb=84f96f49d14f1bae8a7f58a25bfd3b0f9d31f34b;p=gedcom-parse.git diff --git a/gedcom/gedcom_lex_common.c b/gedcom/gedcom_lex_common.c index 703a9de..68db840 100644 --- a/gedcom/gedcom_lex_common.c +++ b/gedcom/gedcom_lex_common.c @@ -26,6 +26,7 @@ #include "gedcom_internal.h" #include "multilex.h" #include "encoding.h" +#include "encoding_state.h" #include "gedcom.h" #include "gedcom.tabgen.h" #include "compat.h" @@ -337,7 +338,7 @@ static int dummy_conv = 0; { CHECK_LINE_LEN; \ INIT_LINE_LEN; \ if (line_no == 1) \ - set_encoding_terminator(TO_INTERNAL(yytext, str_buffer)); \ + set_read_encoding_terminator(TO_INTERNAL(yytext, str_buffer)); \ BEGIN(INITIAL); \ }