Return-Path: Mailing-List: contact mod_dtcl-help@tcl.apache.org; run by ezmlm Delivered-To: mailing list mod_dtcl@tcl.apache.org Received: (qmail 22479 invoked from network); 24 Jul 2001 20:06:35 -0000 Received: from bart.nowiny.net (mail@213.25.140.2) by h31.sny.collab.net with SMTP; 24 Jul 2001 20:06:35 -0000 Received: from malenstwo.robi.muu.pl ([213.25.140.71] helo=nowiny.net) by bart.nowiny.net with esmtp (Exim 3.12 #1 (Debian)) id 15P7hJ-0000k3-00 for ; Tue, 24 Jul 2001 21:18:26 +0200 Date: Tue, 24 Jul 2001 21:14:34 +0200 (CEST) From: Wojciech Kocjan Subject: Tcl_Read() To: mod_dtcl@tcl.apache.org MIME-Version: 1.0 Content-Type: TEXT/plain; charset=iso-8859-1 Content-Transfer-Encoding: QUOTED-PRINTABLE Message-Id: X-Spam-Rating: h31.sny.collab.net 1.6.2 0/1000/N Hello. I've been playing with i18n support int mod_dtcl (on Linux). I set LANG to pl.iso8859-2 (for those who do not know - this sets system encoding to iso8859-2). Tcl_Read is similar to Tcl_ReadChars, except that it | doesn't do encoding conversions, regardless of the chan=AD | nel's encoding. It is deprecated and exists for backwards | compatibility with non-internationalized Tcl extensions. | It consumes bytes from channel and stores them in buf, | performing end-of-line translations on the way. The | return value of Tcl_Read is the number of bytes, up to | toRead, written in buf. The buffer produced by Tcl_Read | is not NULL terminated. Its contents are valid from the | zeroth position up to and excluding the position indicated | by the return value. | Note the fact that it's depreciated and does not handle UTF-8 the way it should. This is a fact - when I changed system_encoding=3DTcl_GetEncoding(...) to Tcl_GetEncoding(interp,NULL), some Polish fonts failed. I'd try and convert it to Tcl_ReadChars(), but I'm a bit afraid I'll mess sth up. David, care to make it use Tcl_ReadChars()? I'll go back to the i18n problem again. -- WK