1117 |
my %opt = @_; |
my %opt = @_; |
1118 |
|
|
1119 |
my $obj = { |
my $obj = { |
1120 |
|
category => $self->{category}, |
1121 |
char_buffer => \(my $s = ''), |
char_buffer => \(my $s = ''), |
1122 |
char_buffer_pos => 0, |
char_buffer_pos => 0, |
1123 |
character_queue => [], |
character_queue => [], |
1183 |
(%opt, allow_semiconforming => 1); |
(%opt, allow_semiconforming => 1); |
1184 |
if ($e) { |
if ($e) { |
1185 |
$obj->{perl_encoding_name} = $e->name; |
$obj->{perl_encoding_name} = $e->name; |
1186 |
if ($self->{category} & CHARSET_CATEGORY_EUCJP) { |
if ($self->{category} & CHARSET_CATEGORY_SJIS) { |
|
return ((bless $obj, 'Whatpm::Charset::DecodeHandle::EUCJP'), |
|
|
$e_status); |
|
|
} elsif ($self->{category} & CHARSET_CATEGORY_SJIS) { |
|
1187 |
return ((bless $obj, 'Whatpm::Charset::DecodeHandle::ShiftJIS'), |
return ((bless $obj, 'Whatpm::Charset::DecodeHandle::ShiftJIS'), |
1188 |
$e_status); |
$e_status); |
1189 |
#} elsif ($self->{category} & CHARSET_CATEGORY_BLOCK_SAFE) { |
#} elsif ($self->{category} & CHARSET_CATEGORY_BLOCK_SAFE) { |