X-Git-Url: https://git.dlugolecki.net.pl/?a=blobdiff_plain;f=gedcom_lohi.lex;h=3b315839ed5db01cf46b2536ebdb23300d94b70c;hb=ddc3f9bae410f154d60b478b36ef4128b58c565c;hp=6d88b435ed979f3daa309bc10e96417fd0cf354a;hpb=a2f7d56476e81f8689d56e6a5641469f6497c487;p=gedcom-parse.git diff --git a/gedcom_lohi.lex b/gedcom_lohi.lex index 6d88b43..3b31583 100644 --- a/gedcom_lohi.lex +++ b/gedcom_lohi.lex @@ -9,6 +9,8 @@ #include "gedcom.h" #include "multilex.h" #include "encoding.h" + +#define YY_NO_UNPUT %} %s NORMAL @@ -328,8 +330,10 @@ int yywrap() int main() { - int tok; - int res = open_conv_to_internal("UTF16LE"); + int tok, res; + init_encodings(); + set_encoding_width(TWO_BYTE_LOHI); + res = open_conv_to_internal("UNICODE"); if (!res) { gedcom_error("Unable to open conversion context: %s", strerror(errno));