X-Git-Url: https://git.dlugolecki.net.pl/?a=blobdiff_plain;f=gedcom_lohi.lex;h=bc8546851b26851c6d2ee1f3aa2e7523187adae2;hb=845f7ac49d5e63b96aca7a4cd1f60ac5e3230033;hp=6d88b435ed979f3daa309bc10e96417fd0cf354a;hpb=2594076ab65a0960ff4edaf0e8dd38d5ff15e7ec;p=gedcom-parse.git diff --git a/gedcom_lohi.lex b/gedcom_lohi.lex index 6d88b43..bc85468 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,9 @@ int yywrap() int main() { - int tok; - int res = open_conv_to_internal("UTF16LE"); + int tok, res; + init_encodings(); + res = open_conv_to_internal("UNICODE(LOHI)"); if (!res) { gedcom_error("Unable to open conversion context: %s", strerror(errno));