From: Steve Hancock Date: Sat, 29 Jan 2022 15:32:40 +0000 (-0800) Subject: add documentation for -eos X-Git-Tag: 20211029.06~4 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=1860e2d5349ffd25867ab24f156a264496f0737a;p=perltidy.git add documentation for -eos --- diff --git a/bin/perltidy b/bin/perltidy index 4861a52b..2f0af26c 100755 --- a/bin/perltidy +++ b/bin/perltidy @@ -641,6 +641,21 @@ A perltidy output file is unencoded if the input file is unencoded, and otherwise it is encoded as B, even if the input encoding was not B. +=item B<-eos=s>, B<--encode-output-strings=s> + +This flag has been added to resolve an issue involving the interface between +Perl::Tidy and calling programs, and in particular the widely used B +program. The crux of the matter is that, as a result of its historical +evolution, by default perltidy returns unencoded strings to the calling +program. Some programs need encoded strings, and setting this flag causes +Perl::Tidy to encode output strings, but only if it decoded them. For some +background information see the discussion at github for perltidy issue git #83 at +L + +If you only run the perltidy binary this flag has no effect. + +If you use B with encoded files you should probably set this flag. + =item B<-gcs>, B<--use-unicode-gcstring> This flag controls whether or not perltidy may use module Unicode::GCString to