[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Po4a-dev]Po4a Po.pm and write_to_filehandle
From: |
Martin Quinson |
Subject: |
Re: [Po4a-dev]Po4a Po.pm and write_to_filehandle |
Date: |
Mon, 18 Nov 2002 15:59:01 +0100 |
User-agent: |
Mutt/1.4i |
On Mon, Nov 18, 2002 at 11:20:13AM +0100, Denis Barbier wrote:
> On Fri, Nov 15, 2002 at 10:29:28AM -0500, Martin Quinson wrote:
> > CVSROOT: /cvsroot/po4a
> > Module name: Po4a
> > Changes by: Martin Quinson <address@hidden> 02/11/15 10:29:27
> >
> > Modified files:
> > . : Po.pm
> >
> > Log message:
> > Seems to work
>
> IMO having {read,write}_from_filehandle method is a very bad idea,
> because of recent changes in Perl (>= 5.8) interaction with UTF-8.
> When in UTF-8 locales, Perl can read and write files only if
> * some black magic is performed when opening files (which cannot be
> done on filehandles)
> or
> * files are UTF-8 encoded
>
> Testing this module in a UTF-8 locale with perl >= 5.8 and latin-1 files
> should certainly exhibit some problems.
I did remove this functions from 0.8.2 (0.8.1 was to fix a bug in
pod-translate: when a translation is discarded, no need to write empty
files, but need to remove the file if present).
The 0.8.2 present on my page is signed (with a key itself signed by a DD,
available from keyserver.be).
Mt.
--
Hi! I'm a .signature virus! Copy me into your ~/.signature, please!