File: crlf.t

package info (click to toggle)
libdatetime-timezone-tzfile-perl 0.011-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, sid, trixie
  • size: 188 kB
  • sloc: perl: 320; makefile: 2
file content (15 lines) | stat: -r--r--r-- 443 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use warnings;
use strict;

use Test::More tests => 2;

require_ok "DateTime::TimeZone::Tzfile";

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

1;