Skip to content

Commit 77ed658

Browse files
Koan-Botclaude
authored andcommitted
fix: add missing diacritical marks in Italian day names
Italian weekday names require a grave accent (ì) on five of seven days: Lunedì, Martedì, Mercoledì, Giovedì, Venerdì. The module had plain ASCII approximations without accents since its original contribution. Add `use utf8` pragma and correct the @Dow array. Update test expectations in format.t and lang-data.t accordingly. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 685a452 commit 77ed658

3 files changed

Lines changed: 4 additions & 3 deletions

File tree

lib/Date/Language/Italian.pm

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ package Date::Language::Italian;
66

77
use strict;
88
use warnings;
9+
use utf8;
910
use Date::Language ();
1011
use base 'Date::Language';
1112

@@ -17,7 +18,7 @@ our (@DoW, @DoWs, @MoY, @MoYs, @AMPM, @Dsuf, %MoY, %DoW);
1718
@MoY = qw(Gennaio Febbraio Marzo Aprile Maggio Giugno
1819
Luglio Agosto Settembre Ottobre Novembre Dicembre);
1920
@MoYs = qw(Gen Feb Mar Apr Mag Giu Lug Ago Set Ott Nov Dic);
20-
@DoW = qw(Domenica Lunedi Martedi Mercoledi Giovedi Venerdi Sabato);
21+
@DoW = qw(Domenica Lunedì Martedì Mercoledì Giovedì Venerdì Sabato);
2122
@DoWs = qw(Dom Lun Mar Mer Gio Ven Sab);
2223

2324
use Date::Language::English ();

t/format.t

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ Italian
174174
%Y 1999
175175
%% %
176176
%a Mar
177-
%A Martedi
177+
%A Martedì
178178
%b Set
179179
%B Settembre
180180
%c 09/07/99 13:02:42

t/lang-data.t

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ my %expected = (
2929
Greek => { A => "\x{3a4}\x{3c1}\x{3af}\x{3c4}\x{3b7}", a => "\x{3a4}\x{3c1}", B => "\x{3a3}\x{3b5}\x{3c0}\x{3c4}\x{3b5}\x{3bc}\x{3b2}\x{3c1}\x{3af}\x{3bf}\x{3c5}", b => "\x{3a3}\x{3b5}\x{3c0}" },
3030
Hungarian => { A => "Kedd", a => "Ked", B => "Szeptember", b => "Sze" },
3131
Icelandic => { A => "\x{de}ri\x{f0}judagur", a => "\x{de}ri", B => "September", b => "Sep" },
32-
Italian => { A => "Martedi", a => "Mar", B => "Settembre", b => "Set" },
32+
Italian => { A => "Marted\x{ec}", a => "Mar", B => "Settembre", b => "Set" },
3333
Norwegian => { A => "Tirsdag", a => "Tir", B => "September", b => "Sep" },
3434
Occitan => { A => "dimars", a => "dim", B => "setembre", b => "set" },
3535
Portuguese => { A => "ter\x{e7}a-feira", a => "ter", B => "setembro", b => "set" },

0 commit comments

Comments
 (0)