Skip to content
Tcl Source Code View Ticket
Login

View Ticket

Euro/Tail-sign missing from cp864 encoding

Closed / Fixedecafd8611dd7665a6376c9c35b092d7d1a8e61c8Created 1 year agoUpdated 1 year ago
Descriptionwiki2025-06-24 14:51:15
Example:
$ tclsh9.0
% scan [encoding convertfrom cp864 \xA7] %c
unexpected byte sequence starting at index 0: '\xA7'

According to Wikipedia, the EURO-sign was assigned to this code point in 1999

Referenced by3
  • 60981196dbFix [ecafd8611d]: Euro/Tail-sign missing from cp864 encoding check-in2025-06-25 11:51:09
  • 089e9b68cdFix [ecafd8611d]: Euro/Tail-sign missing from cp864 encoding check-in2025-06-25 11:15:53
  • 7dd57ba178Fix [ecafd8611d]: Euro-sign missing from cp864 encoding. While on it, add cp165 which is very similar to cp864 check-in2025-06-24 14:54:48
jan.nijtmanswiki2025-06-24 15:01:18

Proposed fix [here]

While on it, add cp165 which is very similar to cp864

apnadkarniplain2025-06-24 16:03:38
Are the .enc files supposed to be generated using the txt2enc.c tool or manually edited? I was under the assumption the former.
jan.nijtmanswiki2025-06-24 16:14:37

The latest encoding source file for cp864 is here, it isn't updated for the EURO character.

Therefore, it's just as good to hand-edit the .enc-file: It never will be re-generated. And if someone does, the failing testcase will detect the problem.

There are some more .enc-file which were hand-edited after generation.

jan.nijtmanswiki2025-06-25 11:11:55

Just discovered that the arabic tail sign (ﹳ) was missing as well. The reason is that this code entry was introduced in Unicode 3.2, which didn't exist yet at the time. Fixed that too.

jan.nijtmanswiki2025-06-25 11:58:06

Fixed [here]

Log in (anonymous is fine) to add a comment.