Skip to content
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

Documentation: source must be valid UTF-8 #119

Open
wollmers opened this issue Apr 23, 2022 · 1 comment
Open

Documentation: source must be valid UTF-8 #119

wollmers opened this issue Apr 23, 2022 · 1 comment

Comments

@wollmers
Copy link

Symptom:

$ perl t/05_basic.t 
not ok 1 - use Levenshtein::Simple;
#   Failed test 'use Levenshtein::Simple;'
#   at t/05_basic.t line 18.
#     Tried to use 'Levenshtein::Simple'.
#     Error:  Can't decode ill-formed UTF-8 octet sequence <D0> 
	at /Users/helmut/perl5/perlbrew/perls/perl-5.32.0/lib/site_perl/5.32.0/Path/Tiny.pm 
	line 1801.

The error message could be more user friendly like:

File 'lib/Levenshtein/Simple.pm' does not pass Standard Perl.
Decoding error::
>  ill-formed UTF-8 octet sequence <D0>: at line 852, column 62

Of course this would need to use Encode::decode() directly instead of Path::Tiny::slurp.

@xsawyerx
Copy link
Owner

Are you interested in submitting a PR for this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants