Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the DateTime-Locale CPAN distribution.

Report information
The Basics
Id: 52337
Status: resolved
Priority: 0/
Queue: DateTime-Locale

People
Owner: Nobody in particular
Requestors: domm [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 0.44
Fixed in: 1.00



Subject: wrong month name for de_AT
Hi! I just discovered that DateTime::Locale::de_AT returns the German value for January (i.e. "Januar") instead of the Austrian "Jänner". As some Austrians are rather picky, I'd love to have this fixed... As far as I found my way round CLDR, the data is correct in there: http://www.unicode.org/repos/cldr/tags/release-1-7-1-2/common/main/de_AT.xml (the same is true for 1.7.1, but I could only find a zip-file (core.zip) that makes linking rather annoying..) Anyway, I figure there's a problem in the code that transforms the CLDR into DT:L:foo_BAR, but as I've never looked into the internals of either, I though maybe somebody with more experience could fix the bug faster. (If not, I'd appreciate pointers to fix it myself) I've also attached a test demonstrating the wrong behaviour ("10de_AT.t" but feel free to rename/move/dump this test to wherever it fits best into the test suite). Thanks for DateTime and friends! Greeting, Thomas Klausner
Subject: 10de_AT.t
use strict; use warnings; use Test::More tests => 1; use utf8; use DateTime; my $date = DateTime->new( year=>2009, month=>01, day=>01, locale=>'de_AT', ); is($date->month_name,'Jänner','correct austrian month name for jan');
Funny, I just spotted this too and luckily saw DOMMs report. A fix would really by welcome! -Florian
On Wed Dec 23 16:22:12 2009, FLORIAN wrote: Show quoted text
> Funny, I just spotted this too and luckily saw DOMMs report. > > A fix would really by welcome! > > -Florian
And of course I forgot the link: http://en.wikipedia.org/wiki/Austrian_German#Vocabulary
Subject: Re: [rt.cpan.org #52337] wrong month name for de_AT
Date: Thu, 24 Dec 2009 13:49:03 -0600 (CST)
To: Florian Helmberger via RT <bug-DateTime-Locale [...] rt.cpan.org>
From: Dave Rolsky <autarch [...] urth.org>
On Wed, 23 Dec 2009, Florian Helmberger via RT wrote: Show quoted text
> A fix would really by welcome!
It's on my todo list, but it's actually fairly complex. To make matters worse, there are changes in DateTime::Locale that are pending, but can't be released until another module on CPAN is updated (DateTime::Format::Strptime), because I don't want to break that module. -dave /*============================================================ http://VegGuide.org http://blog.urth.org Your guide to all that's veg House Absolute(ly Pointless) ============================================================*/
Encountered it today when parsing documents issued by the austrian government. I'd pretty much appreciate it if this bug could be fixed. Best Regards, Stefan Kopetzky