Integrate mainline (Win2k/MinGW all ok except threads/t/end.t)
[p5sagit/p5-mst-13.2.git] / ext / Encode / lib / Encode / Internal.pm
CommitLineData
18586f54 1package Encode::Internal;
2use strict;
d6b7ef86 3our $VERSION = do { my @r = (q$Revision: 0.92 $ =~ /\d+/g); sprintf "%d."."%02d" x $#r, @r };
4
18586f54 5use base 'Encode::Encoding';
6
7# Dummy package that provides the encode interface but leaves data
8# as UTF-X encoded. It is here so that from_to() works.
9
10__PACKAGE__->Define('Internal');
11
12Encode::define_alias( 'Unicode' => 'Internal' ) if ord('A') == 65;
13
14sub decode
15{
16 my ($obj,$str,$chk) = @_;
17 utf8::upgrade($str);
18 $_[1] = '' if $chk;
19 return $str;
20}
21
22*encode = \&decode;
231;
24__END__