[rt-devel] Localization

Autrijus Tang autrijus at autrijus.org
Fri Nov 29 00:43:15 EST 2002


On Thu, Jun 06, 2002 at 11:49:09AM -0500, Christian Gilmore wrote:
> What in perl-5.6.1 isn't able to support unicode? We've not yet found
> issues, but I'd very much like to hear if there are.

Actually, with my Encode::compat (and Text::Iconv) Perl 5.6.1 seems
to be happy with RT's unicode support, as far as I know.  I'd also
like to hear if there's anything still broken or missing.

Oh, by the way, 5.8-using people may encounter a random 'invalid
header: Content-C0c0' error on web-submitted tickets or comments
that contain unicode characters.  This is the result of a utf8
bug detailed below:

    http://rt.perl.org/rt2/Ticket/Display.html?id=18107

Anyway, the following patch should cure it, and is submitted
to MailTool's author for inclusion in the next version.

Thanks,
/Autrijus/

--- /usr/home/samba/Common/perl/site/lib/Mail/Header.pm	Thu Oct  3 15:50:58 2002
+++ /usr/local/lib/perl5/site_perl/5.8.0/Mail/Header.pm	Fri Nov 29 13:35:47 2002
@@ -156,8 +156,8 @@
 
  # Change the case of the tag
  # eq Message-Id
- $tag =~ s/\b([a-z]+)/\L\u$1/gio;
- $tag =~ s/\b([b-df-hj-np-tv-z]+|MIME)\b/\U$1/gio
+ $tag =~ s/\b([a-z+])/\L\u\u$1/gio;
+ $tag =~ s/\b([b-df-hj-np-tv-z]+|MIME)\b/\U\u$1/gio
 	if $tag =~ /-/;
 
  $tag;
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://pallas.eruditorum.org/pipermail/rt-devel/attachments/20021129/6c2dd2f7/attachment.pgp


More information about the Rt-devel mailing list