diff options
author | dgp@users.sourceforge.net <dgp> | 2014-01-30 18:31:39 (GMT) |
---|---|---|
committer | dgp@users.sourceforge.net <dgp> | 2014-01-30 18:31:39 (GMT) |
commit | 62e6be8e07532cf20b58f6417fd2acced4c75c7f (patch) | |
tree | e970b45612132535990a45fa725565f91e4f89b6 /generic/tclEncoding.c | |
parent | 285ed9d76baa87837657340489233dcd37797152 (diff) | |
download | tcl-62e6be8e07532cf20b58f6417fd2acced4c75c7f.zip tcl-62e6be8e07532cf20b58f6417fd2acced4c75c7f.tar.gz tcl-62e6be8e07532cf20b58f6417fd2acced4c75c7f.tar.bz2 |
Refactor WriteChars() and WriteBytes() into simple wrappers of a common
routine Write().
Diffstat (limited to 'generic/tclEncoding.c')
-rw-r--r-- | generic/tclEncoding.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/generic/tclEncoding.c b/generic/tclEncoding.c index c2f1b4b..c303dd1 100644 --- a/generic/tclEncoding.c +++ b/generic/tclEncoding.c @@ -182,6 +182,7 @@ TCL_DECLARE_MUTEX(encodingMutex) static Tcl_Encoding defaultEncoding; static Tcl_Encoding systemEncoding; +Tcl_Encoding tclIdentityEncoding; /* * The following variable is used in the sparse matrix code for a @@ -566,6 +567,7 @@ TclInitEncodingSubsystem(void) type.clientData = NULL; defaultEncoding = Tcl_CreateEncoding(&type); + tclIdentityEncoding = Tcl_GetEncoding(NULL, type.encodingName); systemEncoding = Tcl_GetEncoding(NULL, type.encodingName); type.encodingName = "utf-8"; |