|
2022-05-11
| ||
| 19:13 | • Closed ticket [6898f9cb71]: shiftjis is presumably misspelled in http 2.7.7 ... artifact: e61050512f user: jan.nijtmans | |
| 19:06 | Fix [6898f9cb71]: shiftjis is presumably misspelled in http 2.7.7. Also add more testcases for http:... check-in: 18a5284076 user: jan.nijtmans tags: core-8-6-branch | |
|
2022-05-10
| ||
| 21:00 | • Ticket [6898f9cb71] shiftjis is presumably misspelled in http 2.7.7 status s... artifact: 0d90bed27b user: kjnash | |
|
2014-01-03
| ||
| 02:15 | • New ticket [6898f9cb71]. artifact: 4e75aa0ffb user: anonymous | |
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.