From 8359eb816f185b62b6055d70e50acdb6f5f88c6b Mon Sep 17 00:00:00 2001 From: Steve Hancock Date: Sun, 18 Jun 2023 15:53:19 -0700 Subject: [PATCH] add note on multiple encodings in a file --- bin/perltidy | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/bin/perltidy b/bin/perltidy index 8086ee3d..cf4a2425 100755 --- a/bin/perltidy +++ b/bin/perltidy @@ -567,11 +567,12 @@ this flag is in effect. =item B<-enc=s>, B<--character-encoding=s> -This flag indicates if the input data stream use a character encoding. +This flag indicates if the input data stream uses a character encoding. Perltidy does not look for the encoding directives in the source stream, such as B, and instead relies on this flag to determine the encoding. -(Note that perltidy often works on snippets of code rather than complete files -so it cannot rely on B directives). +(This is because perltidy often works on snippets of code rather than complete +files, so it cannot rely on B directives). Consequently perltidy is +likely to encounter problems formatting a file which is only partially encoded. The possible values for B are: -- 2.39.5