shiftjis is presumably misspelled in http 2.7.7
Closed / Fixed6898f9cb71b90c92bbae2d08e20ee7c5a2588b88Created 13 years agoUpdated 5 years ago
Descriptionplain2014-01-03 02:15:02
This code:
1390 } elseif {[regexp {shift[-_]?js} $charset]} {
1391 set encoding "shiftjis"
looks like shiftjis is misspelled in the regexp. If it isn't, the code should be commented accordingly
Referenced by1
18a5284076Fix [6898f9cb71]: shiftjis is presumably misspelled in http 2.7.7. Also add more testcases for http::CharsetToEncoding, revealing one more bug check-in2022-05-11 19:06:56
kjnashplain2022-05-10 21:00:19
Yes, this does seem to be a typo. I don't know if anyone still uses shift_jis rather than utf-8, but if nobody objects I will change the regexp to {shift[-_]?jis}
jan.nijtmanswiki2022-05-11 19:13:18
Another related bug: 'http::CharsetToEncoding latin4' gives an exception, because the switch-statement only handles number 1,2,3 and 5.
All should be fixed now. More test-cases added, to prove that it now works as expected.
Thanks, @kjnash, for digging up this oooooooold bug!
Log in (anonymous is fine) to add a comment.