debian/0000755000000000000000000000000012252712133007164 5ustar debian/patches/0000755000000000000000000000000012207661534010623 5ustar debian/patches/series0000644000000000000000000000003212207661534012033 0ustar test-big5.patch pod.patch debian/patches/pod.patch0000644000000000000000000000076712207661534012440 0ustar Description: fix a POD error Origin: vendor Forwarded: no Author: gregor herrmann Last-Update: 2010-07-31 --- a/Map.pm +++ b/Map.pm @@ -1109,12 +1109,12 @@ =head1 WARNINGS -=over 4 - You can demand Unicode::Map to issue warnings at deprecated or incompatible usage with the constants WARN_DEFAULT, WARN_DEPRECATION or WARN_COMPATIBILITY. The latter both can be ored together. +=over 4 + =item No special warnings: $Unicode::Map::WARNINGS = Unicode::Map::WARN_DEFAULT debian/patches/test-big5.patch0000644000000000000000000000216012207661534013446 0ustar Author: Niko Tyni Description: Test the fixed BIG5 map in t/map.t. Bug: #320406 --- a/t/map.t +++ b/t/map.t @@ -6,7 +6,7 @@ # Change 1..1 below to 1..last_test_to_print . # (It may become useful if the test is moved to ./t subdirectory.) -BEGIN { $| = 1; print "1..5\n"; } +BEGIN { $| = 1; print "1..6\n"; } END {print "not ok 1\n" unless $loaded;} use Unicode::Map; $loaded = 1; @@ -27,6 +27,7 @@ my @test = ( ["GB2312", "n->m: GB2312 (GB2312-80^8080 + ISO8859-1)"], ["DEVANAGA", "n->m: DEVANAGA"], ["EUC_JP", "n->m: EUC-JP"], + ["BIG5", "n->m: BIG5"], ); { @@ -133,6 +134,21 @@ sub DEVANAGA { return testMapping ( "APPLE-DEVANAGA", $_locale, $_unicode ); } +sub BIG5 { + my $_locale = + "\xA5\x40" + ."\xA5\x41" + ."\x30" + ." " + ; + my $_unicode = + "\x4E\x16" + ."\x4E\x15" + ."\x00\x30\x00\x20\x00\x20" + ; + return testMapping ( "BIG5", $_locale, $_unicode ); +} + sub testMapping { my ( $charsetId, $txtLocale, $txtUnicode ) = @_; return 0 if ! ( my $Map = new Unicode::Map($charsetId) ); debian/README.source0000644000000000000000000000036312207661534011355 0ustar This package uses quilt to manage all modifications to the upstream source. Changes are stored in the source package as diffs in debian/patches and applied during the build. See /usr/share/doc/quilt/README.source for a detailed explanation. debian/libunicode-map-perl.docs0000644000000000000000000000000712207661534013673 0ustar README debian/compat0000644000000000000000000000000212252700532010362 0ustar 9 debian/watch0000644000000000000000000000016212207661534010224 0ustar version=3 https://metacpan.org/release/Unicode-Map/ .*/Unicode-Map-v?(\d[\d.]+)\.(?:tar(?:\.gz|\.bz2)?|tgz|zip) debian/changelog0000644000000000000000000001403012252712133011034 0ustar libunicode-map-perl (0.112-11) unstable; urgency=low * Team upload [ Jonathan Yu ] * Removed Alexis Sukrieh from Uploaders (Closes: #536158) [ gregor herrmann ] * debian/control: Added: Vcs-Svn field (source stanza); Vcs-Browser field (source stanza); Homepage field (source stanza). Removed: XS- Vcs-Svn fields. * debian/watch: use dist-based URL. * Revert changes to upstream Makefile.PL; remove unneeded manpages in debian/rules. * Split out Niko's patch for the big5 test into test-big5.patch; add quilt framework. * Add debian/README.source to document quilt usage, as required by Debian Policy since 3.8.0. * debian/control: Changed: Switched Vcs-Browser field to ViewSVN (source stanza). [ Nathan Handler ] * debian/watch: Update to ignore development releases. [ gregor herrmann ] * Convert to source format 3.0 (quilt). * Add a patch to fix a POD error. [ Ansgar Burchardt ] * debian/control: Convert Vcs-* fields to Git. [ gregor herrmann ] * debian/control: update {versioned,alternative} (build) dependencies. [ Salvatore Bonaccorso ] * Change Vcs-Git to canonical URI (git://anonscm.debian.org) * Change search.cpan.org based URIs to metacpan.org based URIs [ Axel Beckert ] * Fix pkg-perl lintian warning arch-any-package-needs-newer-debhelper * Bump debhelper compatibility to 9 + Call dh_clean after checking for fix-big5-stamp * Remove quilt traces from debian/rules and quilt build-dependency * Revamp debian/rules: + Fix lintian warning debian-rules-missing-recommended-target + Replace "dh_clean -k" by "dh_prep" + Use dh_auto_{configure,build,test,install,clean} - Adapt debian/rules for different default install path and remove obsolete debian/libunicode-map-perl.install - Fixes lintian warning debian-rules-makemaker-prefix-is-deprecated - Fixes lintian warning hardening-no-relro - Fixes blhc warning dpkg-buildflags-missing + Drop obsolete manual removing of stamp files, now done by dh_clean + Drop now obsolete dh_installchangelogs parameter + Switch to minimal dh-style debian/rules file + Refactoring: Reindent debian/rules and normalize variable usage * Also fix the following lintian warnings: + binary-control-field-duplicates-source (priority, section) + copyright-refers-to-symlink-license * Bump Standards-Version to 3.9.5 (no further changes) * Do not compress executable example which is just close over 4k size * Use wildcards in debian/libunicode-map-perl.examples -- Axel Beckert Sat, 14 Dec 2013 00:12:27 +0100 libunicode-map-perl (0.112-10) unstable; urgency=medium [ Niko Tyni ] * Use $(CURDIR) [make] instead of $(PWD) [sh] to fix issues with sudo. (Closes: #389988) * Urgency set to medium because of an RC bug fix. * Upgrade to Standards-Version 3.7.2. No changes needed. * Upgrade to debhelper compatibility level 5. * Add dependency on ${misc:Depends}. * Don't run the 'install' and 'build' targets twice when building. [ Alexis Sukrieh ] * Added myself as an uploader. * Put debian/compat to `5' instead of `4'. -- Alexis Sukrieh Tue, 3 Oct 2006 19:44:52 +0200 libunicode-map-perl (0.112-9) unstable; urgency=low * Add debian/watch. * Fix the BIG5 map at build-time to include US-ASCII compatible characters 0-127. (Closes: #320406) * Test the fixed BIG5 map in t/map.t. -- Niko Tyni Sun, 15 Jan 2006 22:46:48 +0200 libunicode-map-perl (0.112-8) unstable; urgency=low * Added missing dependencies on shared libraries (${shlibs:Depends}). * Updated Standards-Version to 3.6.2. No changes needed. -- Niko Tyni Tue, 13 Dec 2005 22:26:20 +0000 libunicode-map-perl (0.112-7) unstable; urgency=low * Adopting Package. -- Daniel Ruoso Thu, 27 May 2004 17:19:09 -0300 libunicode-map-perl (0.112-6) unstable; urgency=low * debian/copyright: updated * debian/control: upgraded to Debian Policy 3.6.1 (no changes) -- Ardo van Rangelrooij Sat, 7 Feb 2004 22:50:28 -0600 libunicode-map-perl (0.112-5) unstable; urgency=low * debian/rules: moved debhelper compatibility level setting to 'debian/compat' per latest debhelper best practices * debian/control: updated sections according to latest archive changes: - 'libunicode-map-perl' from 'interpreters' to 'perl' * debian/control: changed build dependency on 'debhelper' to '(>= 4.1)' * debian/control: upgraded to Debian Policy 3.6.0 (no changes) -- Ardo van Rangelrooij Sun, 27 Jul 2003 08:58:46 -0500 libunicode-map-perl (0.112-4) unstable; urgency=low * debian/control: improved short description (closes: Bug#172062) * debian/control: upgraded to Debian Policy 3.5.8 (no changes) -- Ardo van Rangelrooij Sun, 8 Dec 2002 17:25:03 -0600 libunicode-map-perl (0.112-3) unstable; urgency=low * debian/rules: added erroneously removed 'dh_testroot' to 'binary-indep' -- Ardo van Rangelrooij Sun, 4 Aug 2002 15:30:48 -0500 libunicode-map-perl (0.112-2) unstable; urgency=low * Rebuild against perl 5.8.0 * debian/control: changed build dependency on perl accordingly * debian/rules: upgraded to debhelper v4 * debian/control: changed build dependency on debhelper accordingly * debian/rules: migrated from 'dh_movefiles' to 'dh_install' * debian/rules: split off 'install' target from 'binary-arch' target * debian/copyright: added pointer to license -- Ardo van Rangelrooij Sat, 3 Aug 2002 17:10:57 -0500 libunicode-map-perl (0.112-1) unstable; urgency=low * New upstream release -- Ardo van Rangelrooij Fri, 19 Apr 2002 22:38:11 -0500 libunicode-map-perl (0.110-2) unstable; urgency=low * debian/control: upgraded to Debian Policy 3.5.6 -- Ardo van Rangelrooij Sun, 23 Dec 2001 12:34:26 -0600 libunicode-map-perl (0.110-1) unstable; urgency=low * Initial Release -- Ardo van Rangelrooij Fri, 31 Aug 2001 23:41:00 -0500 debian/copyright0000644000000000000000000000163512252710703011125 0ustar This package was debianized by Ardo van Rangelrooij on Fri, Aug 31, 2001, 23:40:41 -0500. It was downloaded from the Comprehensive Perl Archive Network (CPAN). Visit to find a CPAN site near you. Upstream Author: Martin Schwartz Copyright: Copyright (C) 1998, 1999, 2000 Martin Schwartz. All rights reserved. This program is free software; you can redistribute it and/or modify it under the terms of either: a) the GNU General Public License as published by the Free Software Foundation; either version 1, or (at your option) any later version, or b) the "Artistic License" which comes with Perl. On a Debian system the complete text of the GNU General Public License version 1 can be found in the file `/usr/share/common-licenses/GPL-1' and the complete text of the the Artistic Licence can be found in the file `/usr/share/common-licenses/Artistic'. debian/fix-big50000755000000000000000000000222612207661534010536 0ustar #!/bin/sh # Insert the US-ASCII compatible characters into the BIG5 binary map, # since the original source file (currently # ftp://ftp.unicode.org/Public/MAPPINGS/OBSOLETE/EASTASIA/OTHER/BIG5.TXT # ) doesn't include them. Note that this depends on the binary map format. # Hopefully by the time it is changed, this problem has been fixed upstream. # # See http://bugs.debian.org/320406 # # Copyright Niko Tyni 2005 # # This program is free software; you can redistribute it and/or modify # it under the terms of either: # # a) the GNU General Public License as published by the Free Software # Foundation; either version 1, or (at your option) any later # version, or # # b) the "Artistic License" which comes with Perl. set -e IN=Map/EASTASIA/BIG5.map DD=/bin/dd PF=/usr/bin/printf $DD if=$IN bs=1 count=12 # header, 12 bytes $PF "\x0\x8\x0" # partial key-value mappings $PF "\x8\x1\x10\x1" # input 1 char of 8-bits at a time, output 1 char of 16 bits $PF "\x80\x0\x80\x0\x0" # 128 characters starting at 0x00 -> 128 chars starting at 0x0000 $PF "\x0\x0\x0" # end of submap $DD if=$IN bs=1 skip=12 # rest of the file debian/control0000644000000000000000000000243212252710703010571 0ustar Source: libunicode-map-perl Maintainer: Debian Perl Group Uploaders: Daniel Ruoso , Niko Tyni Section: perl Priority: optional Build-Depends: debhelper (>= 9.20120312~), perl Standards-Version: 3.9.5 Vcs-Browser: http://anonscm.debian.org/gitweb/?p=pkg-perl/packages/libunicode-map-perl.git Vcs-Git: git://anonscm.debian.org/pkg-perl/packages/libunicode-map-perl.git Homepage: https://metacpan.org/release/Unicode-Map/ Package: libunicode-map-perl Architecture: any Depends: ${shlibs:Depends}, ${perl:Depends}, ${misc:Depends} Suggests: libwww-perl Description: Perl module for mapping charsets from and to UTF16 Unicode This module converts strings from and to 2-byte Unicode UCS2 format. All mappings happen via 2 byte UTF16 encodings, not via 1 byte UTF8 encoding. To convert between UTF8 and UTF16 use Unicode::String. . For historical reasons this module coexists with Unicode::Map8. Please use Unicode::Map8 unless you need to care for >1 byte character sets, e.g. chinese GB2312. Anyway, if you stick to the basic functionality (see documentation) you can use both modules equivalently. . The 'libwww-perl' package is needed to run the example mirrorMappings. debian/libunicode-map-perl.examples0000644000000000000000000000001012252711506014546 0ustar tools/* debian/source/0000755000000000000000000000000012207661534010474 5ustar debian/source/format0000644000000000000000000000001412207661534011702 0ustar 3.0 (quilt) debian/rules0000755000000000000000000000134212252711356010252 0ustar #!/usr/bin/make -f ## uncomment this to turn on verbose mode #export DH_VERBOSE=1 TMP = $(CURDIR)/debian/libunicode-map-perl b% c% i%: dh $@ override_dh_auto_configure: fix-big5 dh_auto_configure override_dh_clean: [ ! -f fix-big5-stamp ] || mv debian/BIG5.map.dist Map/EASTASIA/BIG5.map dh_clean override_dh_auto_install: dh_auto_install # Neither install scripts nor their man-pages $(RM) -rvf $(TMP)/usr/bin $(TMP)/usr/share/man/man1 override_dh_compress: dh_compress -Xmkmapfile # fix the BIG5 map on the fly fix-big5: fix-big5-stamp fix-big5-stamp: dh_testdir sh debian/fix-big5 > debian/BIG5.map.new mv Map/EASTASIA/BIG5.map debian/BIG5.map.dist mv debian/BIG5.map.new Map/EASTASIA/BIG5.map touch fix-big5-stamp