Tcl Library Source Code

View Ticket
Login
Ticket UUID: 1968777
Title: Locale problems
Type: Bug Version: None
Submitter: lars_h Created on: 2008-05-21 14:23:47
Subsystem: doctools Assigned To: andreas_kupries
Priority: 5 Medium Severity:
Status: Open Last Modified: 2008-05-21 14:23:47
Resolution: None Closed By:
    Closed on:
Description:
When validating a man page I'm writing, I kept getting error messages such as:

/Library/Tcl/bin/dtplite: Doctools Error in macro at line 51, column 4:
[call [cmd format_bytes]  [arg ...]
--> (FmtError) Manpage error (deflist), "call  " : unknown error code "deflist" (for locale sv_se).

(The error turned out to be that [call] cannot be used in a "commands" list, which strikes me as somewhat illogical, but that's a separate matter.) This report is about the fact that I don't get an error message -- only the msgcat code for the message, if I understand it right.

Msgcat isn't a package I'm familiar with (locales generally seem to be a neverending source of trouble, so I try to stay clear of having code depend on them), but it appears there is something wrong with the way Doctools is using them here, since the message is missing.

One possible solution, that occurs to me after reading the msgcat manpage, is to declare messages for the root locale (empty string). Possibly the C locale messages should be moved there?

Otherwise you'd have to do something clever using [mcunknown].