Received: from mail.proteosys.com ([213.139.130.197]) by nummer-3.proteosys with Microsoft SMTPSVC(6.0.3790.3959); Wed, 18 Mar 2009 03:17:51 +0100 Received: by mail.proteosys.com (8.14.3/8.14.3) with ESMTP id n2I2HpZR023356 for ; Wed, 18 Mar 2009 03:17:51 +0100 Received: from listserv.uni-heidelberg.de (listserv.uni-heidelberg.de [129.206.100.94]) by relay.uni-heidelberg.de (8.14.1/8.14.1) with ESMTP id n2I27NL7029096 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 18 Mar 2009 03:07:24 +0100 Received: from listserv.uni-heidelberg.de (localhost.localdomain [127.0.0.1]) by listserv.uni-heidelberg.de (8.13.1/8.13.1) with ESMTP id n2HN14hd026976; Wed, 18 Mar 2009 03:07:17 +0100 Received: by LISTSERV.UNI-HEIDELBERG.DE (LISTSERV-TCP/IP release 15.5) with spool id 206178 for LATEX-L@LISTSERV.UNI-HEIDELBERG.DE; Wed, 18 Mar 2009 03:07:17 +0100 Received: from relay.uni-heidelberg.de (relay.uni-heidelberg.de [129.206.100.212]) by listserv.uni-heidelberg.de (8.13.1/8.13.1) with ESMTP id n2I27H98007413 for ; Wed, 18 Mar 2009 03:07:17 +0100 Received: from atlas.informatik.uni-freiburg.de (atlas.informatik.uni-freiburg.de [132.230.150.3]) by relay.uni-heidelberg.de (8.14.1/8.14.1) with ESMTP id n2I276hv028976 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL) for ; Wed, 18 Mar 2009 03:07:09 +0100 Received: from remote239-04.home.uni-freiburg.de ([132.230.239.4] helo=irwin.vpn.uni-freiburg.de) by atlas.informatik.uni-freiburg.de with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.68) (envelope-from ) id 1LjlBQ-0007lK-Qg for LATEX-L@LISTSERV.UNI-HEIDELBERG.DE; Wed, 18 Mar 2009 03:07:06 +0100 Received: by irwin.vpn.uni-freiburg.de (Postfix, from userid 500) id C0CB518429; Wed, 18 Mar 2009 02:59:26 +0100 (CET) Mail-Followup-To: LATEX-L@LISTSERV.UNI-HEIDELBERG.DE References: <553234443@web.de> <49C01E4B.4020604@elzevir.fr> <18880.10491.482905.22434@morse.mittelbach-online.de> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit Message-ID: <20090318015925.GA29765@irwin.vpn.uni-freiburg.de> Date: Wed, 18 Mar 2009 02:59:26 +0100 Reply-To: Mailing list for the LaTeX3 project Sender: Mailing list for the LaTeX3 project From: Heiko Oberdiek Subject: Re: inputenc for XeTeX and LuaTeX To: LATEX-L@LISTSERV.UNI-HEIDELBERG.DE In-Reply-To: <18880.10491.482905.22434@morse.mittelbach-online.de> Precedence: list List-Help: , List-Unsubscribe: List-Subscribe: List-Owner: List-Archive: X-ProteoSys-SPAM-Score: -4 () RCVD_IN_DNSWL_MED X-Scanned-By: MIMEDefang 2.65 on 213.139.130.197 Return-Path: owner-latex-l@LISTSERV.UNI-HEIDELBERG.DE X-OriginalArrivalTime: 18 Mar 2009 02:17:51.0452 (UTC) FILETIME=[BD37A9C0:01C9A76F] Status: R X-Status: X-Keywords: X-UID: 5719 On Tue, Mar 17, 2009 at 11:49:31PM +0100, Frank Mittelbach wrote: > Manuel Pégourié-Gonnard writes: > > James Cloos a écrit : > > > As for utf-8 or other, it may be useful to default to the character set > > > specified for the current $LOCALE. Maybe. :-/ > > > > > Please don't do anything in the compilation of the document depend on the > > locale! It would completely ruin portability of the source files. > > perhaps. it might be a straight path into long-term disaster.On the other > hand the whole area is a disaster in the first place. When we started out with > inputenc in 2e I also thought that it is really good to keep the encoding with > the file (which you do by stating \usepackage[latin1]{inputenc} and the like) > and that worked for a while fairly good. But then OSes started to convert on > the fly so by cut-n-paste sometimes even on the same machine an old latin1 got > translated into something else (except for the string specifying the encoding > inside)... so ... not easy really It's addressed by package selinput. > ps interestingly enough, in 2e on top of anormal TeX engine that problem was > properly solved as we ensured that internally written files were always > written in LICR which is unicode in 7bit so it was always coming back > properly. For similar reasons I have converted arbitrary user data into hex when writing them to auxiliary files and decoded them reading back. This solves problems like unmatched curly braces, characters with special catcodes, ... Yours sincerely Heiko