Tcl Source Code

View Ticket
Login
Ticket UUID: 2906752
Title: Retrieving current OEM encoding
Type: RFE Created on: 2009-12-01 13:02:35
Submitter: mickey_knox Assigned to: kennykb
Subsystem: 10. Objects Severity:
Priority: 7 High Last modified: 2009-12-02 23:42:10
Status: Open Closed by:
Resolution: None Closed on:
Version: None
Description:
OEM encoding is used on Windows by the console (.bat, .cmd files). If a string contains diacritical characters, it must be converted from ANSI to OEM encoding prior to writing it to a .bat file.

Currently there's no way of getting the current OEM encoding in Tcl.

I suggest extending the "encoding" command to accept the "oem" parameter, that will return the current OEM encoding (just as the "system" parameter returns the current ANSI encoding).

I have no knowledge of OEM encoding on non-Windows systems, so I leave it to the experts (my first thought was it would just return the system encoding).
User Comments:
dkf added on 2009-12-02 23:42:10:
Probably easiest to make a windows-specific "oem" encoding. If such a thing is needed and not covered by one of our existing encodings, that is.