Re: Source code encoding detection modifications for intltool
Abel Cheung <[email protected]> Wed, 16 Jul 2003 18:52:33 +0800
| Newsgroups | gmane.comp.gnome.lib.xml.internationalization,gmane.comp.gnome.internationalization.general |
|---|---|
| Message-ID | <[email protected]> |
--Nq2Wo0NMKNjxTN9z Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On 2003-07-16(Wed) 10:42:29 +0200, Carlos Perell=C3=B3 Mar=C3=ADn wrote: > > > Well, if it's detected as an ASCII file, we can use without problems = the > > > UTF-8 encoding, the problem is if it detects it as an ISO-* because > > > there are characters that are not valid UTF-8 characters... [.........] > > That is, explicitly specify the encoding of source files in POTFILES.in, > > so that intltool can use this value to avoid autodetecting file > > encoding. Is there any better possible solution? >=20 > I was doing it this way, but xgettext gets only one encoding for all > files, so all files should use the same encoding, thus if you have one > file as UTF-8 all files should use UTF-8. Yes, I know it, and that's why there's no filename following my proposed [encoding:...] tag. It effectively means all files are assumed to be in specified encoding, and take it for granted. If there is none, use "file" command to autodetect it (as fallback). In this way, module maintainers can manually specify the encoding inside POTFILES.in. Abel >=20 > Cheers. >=20 > >=20 > > Abel > --=20 > Carlos Perell=C3=B3 Mar=C3=ADn > Debian GNU/Linux Sid (PowerPC) > Linux Registered User #121232 > mailto:[email protected] || mailto:[email protected] > http://carlos.pemas.net > Valencia - Spain --=20 Abel Cheung Linux counter #256983 | http://counter.li.org GPG Key: (0xC67186FF) | http://deaddog.org/gpg.asc Key fingerprint: 671C C7AE EFB5 110C D6D1 41EE 4152 E1F1 C671 86FF --Nq2Wo0NMKNjxTN9z Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.2 (GNU/Linux) iD8DBQE/FS5xQVLh8cZxhv8RAotAAJ9uhbiLs9l9JLdBYwRGABM0KE7J8gCfQ2lv EZedpSharY+w+j4cPWkY1hI= =8tlj -----END PGP SIGNATURE----- --Nq2Wo0NMKNjxTN9z--