Skip to content

Commit 3e8356a

Browse files
committed
Support "UTF-8"
This is an additional fix for PR #86.
1 parent 47e0aeb commit 3e8356a

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/po/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ ja.sjis.po: $(MASTER_PO)
2525

2626
ja.euc-jp.po: $(MASTER_PO)
2727
iconv -f utf-8 -t euc-jp $< | \
28-
sed -e 's/charset=utf-8/charset=euc-jp/' -e 's/# Original translations/# Generated from ja.po, DO NOT EDIT/' > $@
28+
sed -e 's/charset=[uU][tT][fF]-8/charset=euc-jp/' -e 's/# Original translations/# Generated from ja.po, DO NOT EDIT/' > $@
2929

3030
sjiscorr: sjiscorr.c
3131
$(CC) -o $@ $<

src/po/sjiscorr.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@ main(int argc, char **argv)
1616
{
1717
for (p = buffer; *p != 0; p++)
1818
{
19-
if (strncmp(p, "charset=utf-8", 13) == 0)
19+
if (strncmp(p, "charset=utf-8", 13) == 0
20+
|| strncmp(p, "charset=UTF-8", 13) == 0)
2021
{
2122
fputs("charset=cp932", stdout);
2223
p += 12;

0 commit comments

Comments
 (0)