New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
broken Locale::Language in a UTF environment #5943
Comments
From marty@kasei.comCreated by marty@kasei.comThis is a bug report for perl from marty@kasei.com, ----------------------------------------------------------------- LANG=en_GB.utf8 perl -we 'use Locale::Language' Malformed UTF-8 character (unexpected end of string) at /usr/share/perl/5.8.0/Locale/Language.pm line 115, <DATA> line 109. The fix: Inline Patch--- lib/Locale/Language.pm.orig 2002-09-19 15:17:16.000000000 +0200
+++ lib/Locale/Language.pm 2002-09-19 15:17:41.000000000 +0200
@@ -231,7 +231,7 @@
my:Burmese
na:Nauru
-nb:Norwegian Bokmål
+nb:Norwegian Bokmal
nd:Ndebele, North
ne:Nepali
ng:Ndonga
@@ -300,7 +300,7 @@
uz:Uzbek
vi:Vietnamese
-vo:Volapük
+vo:Volapuk
wo:Wolof Perl Info
|
From marty+p5p@kasei.comI should have added a better explanation to this bug report and the The DATA is Locale::Language contains 2 Latin-1 characters. Adding 'use bytes' to Locale::Language would stop the death, but the Here's my suggested patch. I've tried to ensure I've included the Inline Patch--- lib/Locale/Language.pm.orig 2002-09-19 15:17:16.000000000 +0200
+++ lib/Locale/Language.pm 2002-09-19 15:17:41.000000000 +0200
@@ -231,7 +231,7 @@
my:Burmese
na:Nauru
-nb:Norwegian Bokm?l
+nb:Norwegian Bokmal
nd:Ndebele, North
ne:Nepali
ng:Ndonga
@@ -300,7 +300,7 @@
uz:Uzbek
vi:Vietnamese
-vo:Volap?k
+vo:Volapuk
wo:Wolof
--- ./lib/Locale/Codes/t/languages.t.orig 2002-09-19 15:17:16.000000000 +0200
+++ ./lib/Locale/Codes/t/languages.t 2002-09-19 15:17:16.000000000 +0200
@@ -47,7 +47,7 @@
'code2language("nd") eq "Ndebele, North"',
'code2language("ng") eq "Ndonga"',
'code2language("nn") eq "Norwegian Nynorsk"',
- 'code2language("nb") eq "Norwegian Bokm?l"',
+ 'code2language("nb") eq "Norwegian Bokmal"',
'code2language("ny") eq "Chichewa; Nyanja"',
'code2language("oc") eq "Occitan (post 1500)"',
'code2language("os") eq "Ossetian; Ossetic"',
-- Marty |
From nick.ing-simmons@elixent.comMarty Pauley <marty+p5p@kasei.com> writes:
Why not \x{00xx} escape ? - would be more robust for patching as well.
|
From marty+p5p@kasei.comOn Fri Sep 20 16:22:02 2002, Nick Ing-Simmons wrote:
The Language.pm file contains the Latin1 characters in the DATA section -- |
From @hvdsMarty Pauley <marty+p5p@kasei.com> wrote: Thanks, applied as change #17927. Sending the patch as an attachment, either instead of or as well as Hugo |
@cwest - Status changed from 'new' to 'resolved' |
Migrated from rt.perl.org#17439 (status was 'resolved')
Searchable as RT17439$
The text was updated successfully, but these errors were encountered: