#include "gedcom.h"
#include "multilex.h"
#include "encoding.h"
+
+#define YY_NO_UNPUT
%}
%s NORMAL
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));