X-Git-Url: https://git.dlugolecki.net.pl/?a=blobdiff_plain;f=gedcom_lohi.lex;h=2545343cb351e0e3137d53011f22533eccab1826;hb=d2233f145e24a310889e4cc650365077786da3d9;hp=6d88b435ed979f3daa309bc10e96417fd0cf354a;hpb=a2f7d56476e81f8689d56e6a5641469f6497c487;p=gedcom-parse.git diff --git a/gedcom_lohi.lex b/gedcom_lohi.lex index 6d88b43..2545343 100644 --- a/gedcom_lohi.lex +++ b/gedcom_lohi.lex @@ -1,3 +1,12 @@ +/* This program is free software; you can redistribute it and/or modify * + * it under the terms of the GNU General Public License as published by * + * the Free Software Foundation; either version 2 of the License, or * + * (at your option) any later version. * + + (C) 2001 by The Genes Development Team + Original author: Peter Verthez (Peter.Verthez@advalvas.be) +*/ + /* $Id$ */ /* $Name$ */ @@ -9,6 +18,8 @@ #include "gedcom.h" #include "multilex.h" #include "encoding.h" + +#define YY_NO_UNPUT %} %s NORMAL @@ -328,8 +339,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));