]> git.donarmstrong.com Git - perltidy.git/commitdiff
add note on multiple encodings in a file
authorSteve Hancock <perltidy@users.sourceforge.net>
Sun, 18 Jun 2023 22:53:19 +0000 (15:53 -0700)
committerSteve Hancock <perltidy@users.sourceforge.net>
Sun, 18 Jun 2023 22:53:19 +0000 (15:53 -0700)
bin/perltidy

index 8086ee3d9cf84d5928f14a8ddd595207b5c32ee3..cf4a24250c950dcc50e35c98510ca5b5e60c9dbf 100755 (executable)
@@ -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<use utf8>, 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<use utf8> directives).
+(This is because perltidy often works on snippets of code rather than complete
+files, so it cannot rely on B<use utf8> directives).  Consequently perltidy is
+likely to encounter problems formatting a file which is only partially encoded.
 
 The possible values for B<s> are: