From: Steve Hancock Date: Sun, 18 Jun 2023 22:53:19 +0000 (-0700) Subject: add note on multiple encodings in a file X-Git-Tag: 20230309.04~7 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=8359eb816f185b62b6055d70e50acdb6f5f88c6b;p=perltidy.git add note on multiple encodings in a file --- 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: