|
Packit Service |
f95697 |
use warnings;
|
|
Packit Service |
f95697 |
use strict;
|
|
Packit Service |
f95697 |
|
|
Packit Service |
f95697 |
use Test::More tests => 2;
|
|
Packit Service |
f95697 |
|
|
Packit Service |
f95697 |
require_ok "DateTime::TimeZone::Tzfile";
|
|
Packit Service |
f95697 |
|
|
Packit Service |
f95697 |
# This tests for proper binary mode handling of tzfiles. Specifically,
|
|
Packit Service |
f95697 |
# if a tzfile is read in text mode then it may get mangled by translation
|
|
Packit Service |
f95697 |
# of CRLF to LF. This Kaliningrad.tz file happens to contain a byte
|
|
Packit Service |
f95697 |
# sequence that would be interpreted as CRLF in text mode.
|
|
Packit Service |
f95697 |
my $tz = DateTime::TimeZone::Tzfile->new("t/Kaliningrad.tz");
|
|
Packit Service |
f95697 |
ok 1;
|
|
Packit Service |
f95697 |
|
|
Packit Service |
f95697 |
1;
|