Tcl Source Code

View Ticket
Login
Ticket UUID: 1374695
Title: better support for common encoding names
Type: RFE Created on: 2005-12-06 18:33:46
Submitter: dgp Assigned to: dgp
Subsystem: 10. Objects Severity:
Priority: 5 Medium Last modified: 2006-09-30 01:00:56
Status: Open Closed by:
Resolution: None Closed on:
Version: None
Description:
Tcl's routines that accept a
encoding name values -- such
as Tcl_GetEncoding and
Tcl_SetSystemEncoding and
the script level
[fconfigure ... -encoding] --
accept only those names
corresponding to data files
in Tcl's library/encoding
directory, plus a few built-in
encodings, plus whatever encodings
are added by Tcl_CreateEncoding.

There are many more names
for encodings that Tcl does not
accept, including many listed
in

 http://www.iana.org/assignments/character-sets

which many Tcl programmers take to
be the "standard names" for encodings.

We should look for ways to better
support the names for encodings that
are familar to programmers instead
of forcing them to learn our quirky
aggregated encoding names.

Some work in the direction is already
done on unix systems when determining
the inital [encoding system] value.
User Comments:
dgp added on 2006-06-21 03:35:31:
Logged In: YES 
user_id=80530

see also Patch 522192