Closed 0-wiz-0 closed 4 years ago
The problem seems to be that the "shift-jis" alias isn't supported by your system iconv.
Do you happen to know what the correct alias is on NetBSD?
You may notice at the toplevel of the gmime source directory, there is a file called iconv-detect.c - this program gets compiled & run during ./configure
to try and auto-detect the correct alias names to use for some charsets that don't always map to the same name on each platform.
I'll add some logic to try and detect the correct alias for "shift-jis".
In the meantime, what does iconv --list
give you as the list of supported charset aliases? Can you paste that in a comment so that I can take a look and try to figure out what the correct mapping might be? (there's no guarantee that the iconv
program supports the same set of charsets as your system libiconv/libc, but there's a good chance they do).
I guess it's shift_jis
.
iconv -l
(there is no --list
) shows this:
437
646
850
851
852
853
855
857
858
860
861
862
863
865
869
904
ansi_x3.4-1968
ansi_x3.4-1986
arabic
armscii-7
armscii-8
armscii-8a
ascii
asmo-708
ast166-7
ast166-8
ast166-a
ast_34.002
ast_34.002_a
ast_34.005
atarist
big-5+
big-5e
big5
big5+
big5-2003
big5-e
big5-eten
big5-hkscs
big5-ibm
big5-plus
big5e
big5eten
big5hkscs
bs_4730
c99
ca
cbm-international
cbmint
cn
cns11643
cp-ar
cp-gr
cp-is
cp037
cp038
cp10000
cp10000_macroman
cp10006
cp10006_macgreek
cp10007
cp10007_maccyrillic
cp10029
cp10029_maclatin2
cp1006
cp10079
cp10079_macicelandic
cp10081
cp10081_macturkish
cp1026
cp1046
cp1089
cp1124
cp1125
cp1129
cp1131
cp1133
cp1140
cp1141
cp1142
cp1143
cp1144
cp1145
cp1146
cp1147
cp1148
cp1149
cp1161
cp1162
cp1163
cp1250
cp1251
cp1252
cp1253
cp1254
cp1255
cp1256
cp1257
cp1258
cp1361
cp154
cp273
cp274
cp275
cp277
cp278
cp280
cp281
cp284
cp285
cp290
cp297
cp367
cp420
cp423
cp424
cp437
cp500
cp50220
cp50221
cp50222
cp51932
cp737
cp775
cp813
cp819
cp850
cp851
cp852
cp853
cp855
cp856
cp857
cp858
cp860
cp861
cp862
cp863
cp864
cp865
cp866
cp868
cp869
cp870
cp871
cp874
cp875
cp878
cp880
cp891
cp903
cp904
cp905
cp912
cp913
cp914
cp915
cp916
cp918
cp920
cp922
cp923
cp932
cp936
cp942
cp942c
cp943
cp943c
cp949
cp950
csa7-1
csa7-2
csa_z243.4-1985-1
csa_z243.4-1985-2
csmacintosh
csptcp154
ctext
cuba
cyrillic
cyrillic-asian
de
dec-hanyu
dec-mcs
dec_hanyu
dec_mcs
dechanyu
decmcs
din_66003
dk
ds2089
ds_2089
ebcdic-at-de
ebcdic-at-de-a
ebcdic-be
ebcdic-br
ebcdic-ca-fr
ebcdic-cp-ar1
ebcdic-cp-ar2
ebcdic-cp-be
ebcdic-cp-ca
ebcdic-cp-ch
ebcdic-cp-dk
ebcdic-cp-es
ebcdic-cp-fi
ebcdic-cp-fr
ebcdic-cp-gb
ebcdic-cp-gr
ebcdic-cp-he
ebcdic-cp-is
ebcdic-cp-it
ebcdic-cp-nl
ebcdic-cp-no
ebcdic-cp-roece
ebcdic-cp-se
ebcdic-cp-tr
ebcdic-cp-us
ebcdic-cp-wt
ebcdic-cp-yu
ebcdic-cyrillic
ebcdic-dk-no
ebcdic-dk-no-a
ebcdic-es
ebcdic-es-a
ebcdic-es-s
ebcdic-fi-se
ebcdic-fi-se-a
ebcdic-fr
ebcdic-int
ebcdic-it
ebcdic-jp-e
ebcdic-jp-kana
ebcdic-pt
ebcdic-uk
ebcdic-us
ecma-114
ecma-118
ecma-cyrillic
elot_928
es
es2
euc-cn
euc-jis-2004
euc-jisx0213
euc-jp
euc-jp-2004
euc-jp-ms
euc-kr
euc-tw
euccn
eucjp
eucjp-ms
euckr
euctw
fi
fr
gb12345
gb18030
gb2312
gb_1988-80
gbk
geo8-bpg
geo8-gov
geo8std
georgian-academy
georgian-academy-oldcapital
georgian-ilia
georgian-ps
georgian-ps-oldcapital
georgian-rs
georgian-std
greek
greek8
hebrew
hp-roman8
hu
hz
hz-gb2312
hz8
ibm-932
ibm-943
ibm037
ibm038
ibm1026
ibm1046
ibm1089
ibm1124
ibm1125
ibm1129
ibm1131
ibm1133
ibm1140
ibm1141
ibm1142
ibm1143
ibm1144
ibm1145
ibm1146
ibm1147
ibm1148
ibm1149
ibm1161
ibm1162
ibm1163
ibm273
ibm274
ibm275
ibm277
ibm278
ibm280
ibm281
ibm284
ibm285
ibm290
ibm297
ibm367
ibm420
ibm423
ibm424
ibm437
ibm500
ibm813
ibm819
ibm850
ibm851
ibm852
ibm853
ibm855
ibm857
ibm858
ibm860
ibm861
ibm862
ibm863
ibm864
ibm865
ibm868
ibm869
ibm870
ibm871
ibm874
ibm880
ibm891
ibm903
ibm904
ibm905
ibm912
ibm913
ibm914
ibm915
ibm916
ibm918
ibm920
ibm922
ibm923
ibm932
ibm943
irv
iso-2022-cn
iso-2022-cn-ext
iso-2022-jp
iso-2022-jp-1
iso-2022-jp-2
iso-2022-jp-2004
iso-2022-jp-3
iso-2022-kr
iso-5427
iso-8859-1
iso-8859-10
iso-8859-11
iso-8859-13
iso-8859-14
iso-8859-15
iso-8859-16
iso-8859-2
iso-8859-3
iso-8859-4
iso-8859-5
iso-8859-6
iso-8859-6-e
iso-8859-6-i
iso-8859-7
iso-8859-8
iso-8859-8-e
iso-8859-8-i
iso-8859-9
iso-ir-10
iso-ir-100
iso-ir-101
iso-ir-109
iso-ir-11
iso-ir-110
iso-ir-111
iso-ir-121
iso-ir-122
iso-ir-126
iso-ir-127
iso-ir-138
iso-ir-14
iso-ir-141
iso-ir-144
iso-ir-148
iso-ir-15
iso-ir-151
iso-ir-157
iso-ir-16
iso-ir-166
iso-ir-17
iso-ir-199
iso-ir-2
iso-ir-21
iso-ir-230
iso-ir-25
iso-ir-37
iso-ir-4
iso-ir-57
iso-ir-6
iso-ir-60
iso-ir-61
iso-ir-69
iso-ir-84
iso-ir-85
iso-ir-86
iso-ir-92
iso2022-cn
iso2022-cnext
iso2022-jp
iso2022-jp1
iso2022-jp2
iso2022-jp2004
iso2022-jp3
iso2022-kr
iso646-basic:1983
iso646-ca
iso646-ca2
iso646-cn
iso646-cu
iso646-de
iso646-dk
iso646-es
iso646-es2
iso646-fi
iso646-fr
iso646-fr1
iso646-gb
iso646-hu
iso646-irv:1983
iso646-it
iso646-jp
iso646-jp-ocr-b
iso646-kr
iso646-no
iso646-no2
iso646-pt
iso646-pt2
iso646-se
iso646-se2
iso646-us
iso646-yu
iso8859-1
iso8859-10
iso8859-11
iso8859-13
iso8859-14
iso8859-15
iso8859-16
iso8859-2
iso8859-3
iso8859-4
iso8859-5
iso8859-6
iso8859-7
iso8859-8
iso8859-9
iso_5427
iso_646.basic:1983
iso_646.irv:1991
iso_8859-1
iso_8859-10
iso_8859-10:1992
iso_8859-11
iso_8859-13
iso_8859-13:1998
iso_8859-14
iso_8859-14:1998
iso_8859-15
iso_8859-16
iso_8859-16:2001
iso_8859-1:1987
iso_8859-2
iso_8859-2:1987
iso_8859-3
iso_8859-3:1988
iso_8859-4
iso_8859-4:1988
iso_8859-5
iso_8859-5:1988
iso_8859-6
iso_8859-6:1987
iso_8859-7
iso_8859-7:1987
iso_8859-8
iso_8859-8:1988
iso_8859-9
iso_8859-9:1989
it
java
jis_c6220-1969-ro
jis_c6229-1984-b
johab
jp
jp-ocr-b
js
jus_i.b1.002
koi-7
koi-8
koi7
koi7-switched
koi8
koi8-c
koi8-e
koi8-r
koi8-ru
koi8-t
koi8-u
ksc5636
kz-1048
kz1048
l1
l10
l2
l3
l4
l5
l6
l7
l8
l9
latin1
latin10
latin2
latin3
latin4
latin5
latin6
latin7
latin8
latin9
mac
mac-cyrillic
macceltic
maccenteuro
maccentraleurope
maccroatian
maccyrillic
macdingbats
macgaelic
macgreek
maciceland
macintosh
macinuit
macroman
macromanian
macthai
macturkish
macukraine
macukrainian
ms-mac-cyrillic
ms932
mscp1006
mscp1250
mscp1251
mscp1252
mscp1253
mscp1254
mscp1255
mscp1256
mscp1257
mscp1258
mscp50220
mscp50221
mscp50222
mscp51932
mscp737
mscp775
mscp856
mscp866
mscp874
mscp875
mscp932
mscp936
mscp949
mscp950
msz_7795.3
mulelao-1
nc_nc00-10:81
nextstep
nf_z_62-010
nf_z_62-010_(1973)
no
no2
ns_4551-1
ns_4551-2
paratype-154
pt
pt-154
pt154
pt2
ptcp154
ref
riscos-latin1
rk1048
se
se2
sen_850200_b
sen_850200_c
shift_jis
shift_jis-2004
shift_jisx0213
sjis
strk1048-2022
tcvn
tcvn5712-1
tds565
tis620
tis620-0
ucs-2
ucs-2be
ucs-2le
ucs-4
ucs-4be
ucs-4le
uhc
unicode
unicodebig
unicodelittle
us
us-ascii
utf-16
utf-16be
utf-16le
utf-32
utf-32be
utf-32le
utf-7
utf-8
utf8
viqr
viscii
vn-1
vscii
windows-1250
windows-1251
windows-1252
windows-1253
windows-1254
windows-1255
windows-1256
windows-1257
windows-1258
windows-31j
windows-50220
windows-50221
windows-50222
windows-51932
windows-874
yu
zw
awesome, thank you!
I think the above commit should fix this. Any chance you could test it out for me?
Thanks, git head works!
...
Testing GMimeFilter: passed
...
Results: 13 tests passed; 0 tests failed.
When running the self tests for 3.2.6 on NetBSD-9.99.47/amd64 I see one test failure: