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

UTF8 characters get corrupted after tidy #19

Open
melo opened this issue Aug 15, 2022 · 1 comment
Open

UTF8 characters get corrupted after tidy #19

melo opened this issue Aug 15, 2022 · 1 comment

Comments

@melo
Copy link

melo commented Aug 15, 2022

Hi,

when I have UTF8 chars on my code, they get corrupted when using your extension perltidy command.

Please note that this only happens when using your extension. If I use the perltidy command line, the UTF8 characters are respected.

The simplest Perl script that shows this behaviour is this:

#!/usr/bin/perl

use utf8;

# a comment with UTF chars: áé
print "code with UTF chars: áé\n";

After the perltidy extension command is executed, the áé characters are corrupted.

The .perltidyrc file is this. With an empty file the same behaviour is observed.

% cat .perltidyrc 
-utf8 

Best regards,


Perl version:

% perl -v                     

This is perl 5, version 34, subversion 0 (v5.34.0) built for darwin-2level

Perl::Tidy version:

% perltidy --version         
This is perltidy, v20220613 
@kak-tus
Copy link
Owner

kak-tus commented Aug 17, 2022

Please, try this.

http://perltidy.sourceforge.net/ChangeLog.html

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

No branches or pull requests

2 participants