Skip to content

Commit 8ecdc7d

Browse files
authored
Merge pull request #90 from vim-jp/update-for-pr86-2
Additional update for PR #86
2 parents 9ef7c12 + 3e8356a commit 8ecdc7d

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
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: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,7 @@
77
#include <string.h>
88

99
int
10-
main(argc, argv)
11-
int argc;
12-
char **argv;
10+
main(int argc, char **argv)
1311
{
1412
char buffer[BUFSIZ];
1513
char *p;
@@ -18,7 +16,8 @@ main(argc, argv)
1816
{
1917
for (p = buffer; *p != 0; p++)
2018
{
21-
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)
2221
{
2322
fputs("charset=cp932", stdout);
2423
p += 12;

0 commit comments

Comments
 (0)