X-Git-Url: https://git.dlugolecki.net.pl/?a=blobdiff_plain;f=gedcom%2Fmultilex.c;h=cff8608f049337a143c1dca78265807dfc7bcdad;hb=d831ac6ddba5b5940e0c3a7a1581e57188d84053;hp=1b9ce6f27a7b4b496ea7f8abbf2abffd24d29f35;hpb=e85a34a722825e38c89e974263f3a946b0dcbada;p=gedcom-parse.git diff --git a/gedcom/multilex.c b/gedcom/multilex.c index 1b9ce6f..cff8608 100644 --- a/gedcom/multilex.c +++ b/gedcom/multilex.c @@ -114,12 +114,13 @@ int gedcom_parse_file(char* file_name) setlocale(LC_ALL, ""); /* In fact only necessary if main program doesn't do this */ bindtextdomain(PACKAGE, LOCALEDIR); + bind_textdomain_codeset(PACKAGE, INTERNAL_ENCODING); textdomain(PACKAGE); line_no = 1; file = fopen(file_name, "r"); if (!file) { - gedcom_error(_("Could not open file '%s'\n"), file_name); + gedcom_error(_("Could not open file '%s'"), file_name); } else { init_encodings();