-
Notifications
You must be signed in to change notification settings - Fork 542
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
utf8::decode turns undef into defined #12475
Comments
From durandle@gmail.comCreated by durandle@gmail.comThis is a bug report for perl from durandle@gmail.com, ----------------------------------------------------------------- my $foo; The result would be that $foo is still undefined. We upgraded to 5.16 recently, the result of the above code is that $foo changes from undef to It did cause issues for us as our form validation checks undef vs blank, although it could be Perl Info
|
From @cpansproutOn Tue Oct 09 07:47:52 2012, durandle@gmail.com wrote:
This was an intentional change. See also I think it was missed when the changelog was made because I accidentally -- Father Chrysostomos |
The RT System itself - Status changed from 'new' to 'open' |
@cpansprout - Status changed from 'open' to 'rejected' |
From @LeontOn Tue, Oct 9, 2012 at 5:35 PM, Father Chrysostomos via RT
It would make sense to me if undef decoded to undef. Leon |
From @cpansproutOn Tue Oct 09 08:45:00 2012, LeonT wrote:
Encode and decode should be consistent. $ perl5.14.0 -le '$_ = undef; utf8::encode $_; print $_//"undef"' $ perl5.14.0 -le '$_ = undef; utf8::decode $_; print $_//"undef"' If we make decode leave the argument undefined, then encode should be Is it worth yet another incompatible change? -- Father Chrysostomos |
From @ikegamiOn Tue Oct 09 08:45:00 2012, LeonT wrote:
Note that utf8::decode does warn on undef. |
Migrated from rt.perl.org#115196 (status was 'rejected')
Searchable as RT115196$
The text was updated successfully, but these errors were encountered: