-
Notifications
You must be signed in to change notification settings - Fork 75
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
Review the option Type => 'binary' in Kernel::System::Main::Dump() #694
Comments
The claim in the POD of This maybe is not relevant, if the same encoding is used for encode and decode. Usage of
|
Yes, that's more or less my question. I see nothing wrong with Correction: as @wollmers pointed out both versions give the same string. 'ö' is in the high bit range of iso-8859-1. 'ö' is represented both in iso-98895-1 and utf8 by the byte F6. Correction of the correction: ö has the Unicode code point F6 and the representation F6 in iso-8895-1. In UTF-8 an ö is represented as two bytes:
|
For me the behaviour of Data::Dumper looks "random". Both
Personally I don't use |
Let's keep this on the wishlist. Changing the behavior of Dump() might lead to side effects. New developments however should use |
Try to explain the effects of the extra arguments 'binary' and 'ascii'.
Issue #694: Elaborate in the POD for Dump.
Closing, as the convention is that issues in the wishlist should be closed. |
It's not obvious which problem the option 'binary' is solving. My guess is that is should allow copy@paste without the quoted wide characters.
The referenced bug https://rt.cpan.org/Public/Bug/Display.html?id=28607 has been rejected because Data::Dumper does what it should be doing.
My gut feeling is to remove the option 'binary' and make 'ascii' the default. This would also removed the need for the internal sub _Dump().
TODO:
The text was updated successfully, but these errors were encountered: