File tree Expand file tree Collapse file tree 2 files changed +4
-5
lines changed
Expand file tree Collapse file tree 2 files changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ ja.sjis.po: $(MASTER_PO)
2525
2626ja.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
3030sjiscorr : sjiscorr.c
3131 $(CC ) -o $@ $<
Original file line number Diff line number Diff line change 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 ;
You can’t perform that action at this time.
0 commit comments