чување d6ecee886d234051bdd1647ce53ae0e1f5abf0e3
родитељ 06d5a2d30ec1fcb812c785452ef4486cb1cf868a
Аутор: Страхиња Радић <sr@strahinja.org>
Датум: Fri, 20 Feb 2026 15:09:37 +0100
po.c(load_file): Fix binary file detection
Diffstat:
измењених датотека: 1, додавања: 4(+), брисања: 0(-)
diff --git a/po.c b/po.c
@@ -226,7 +226,11 @@ load_file(struct DrawState* dstate, long* lineno, long* col)
if (parse_po_line(input_line, dstate, &entry, &pstate, col,
&msgstr_index))
+ {
+ if (possible_nulbyte && dstate->error == ERR_SYNTAX)
+ dstate->error = ERR_NOTPO_FILE;
goto load_file_cleanup;
+ }
if (entry && entry->msgid_plural)
has_plural_msgid = 1;