Re: [poedit-users] Problem with utf-8 encoding

Vaclav Slavik <[email protected]>
Newsgroups gmane.editors.poedit.user
Message-ID <[email protected]>
Hi,

David Bolen wrote:
> to explain failing to handle even a pure-ASCII case.  One reference
> commented about the lack of a BOM, but to my understanding a BOM is
> not required for UTF-8 files

In fact it _shouldn't_ be present in UTF-8 files, because it doesn't 
makes sense for UTF-{8,7}. The comment was the other way around: I 
suspected there was some BOM mark that confused conversion...

> (although I did try manually adding 
> one to no effect - a UTF-8 bom as the 8-bit characters
> 0xEF,0xBB,0xBF). Another person had a reference to upgrading their
> Win2K system to SP4 and the problem going away - I happen to be on
> SP3 but can't do a full system upgrade at the moment to test that
> theory.

I _think_ I found the underlying bug in wxWidgets -- it 
unconditionally uses MB_ERR_INVALID_CHARS, which is documented as 
available on (w2k-sp4 or xp)+ and UTF-8 is documented as having only 
this flag allowed, so presumably older versions of Windows check if 
the flag is 0 and fail...

> I also find that attempting to create a brand new catalog from
> within poEdit itself (and indicating that it should be UTF-8)
> generates errors on any attempt to save the catalog of (filename
> shortened to <file>):
>
> 19:38:10: msgfmt: <file>.po: warning: PO file header missing or
> invalid 19:38:10:                    warning: charset conversion
> will not work 19:38:10: msgfmt: found 1 fatal error

I don't see this either -- so either it's specific to w2k-sp3 as well 
or I need more detailed instructions on reproducing it.

Regards,
Vaclav

-- 
PGP key: 0x465264C9, available from http://pgp.mit.edu/
signature.asc (application/pgp-signature, 189 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (GNU/Linux)

iD8DBQBD1Q9CxDYa/UZSZMkRAsfXAJ9LLeJIESVKMj+wkNVBgrxVQTGDVACfXS5I
OMvvE8LkLLhV/8BGhmYTr00=
=Efoj
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.