Menu

#1253 Document default behaviour when CPD command line arguments "encoding" and "ignoreAnnotations" are not specified

PMD-5.2.1
closed
None
Documentation
4-Minor
Bug
2014-11-03
2014-09-01
No

http://pmd.sourceforge.net/snapshot/usage/cpd-usage.html

I spent a number of hours trying to figure out why CPD wasn't working correctly when running from cron. Turns out, running from cron the encoding used was ANSI_X3.4-1968, while in a normal shell it was UTF-8.

It would've been quite helpful to know that not specifying an encoding would make it use the system default.

ignoreAnnotations also doesn't say what happens if it's not specified.

Discussion

  • Andreas Dangel

    Andreas Dangel - 2014-11-02
    • Description has changed:

    Diff:

    --- old
    +++ new
    @@ -1,4 +1,4 @@
    -http://pmd.sourceforge.net/snapshot/cpd-usage.html
    +http://pmd.sourceforge.net/snapshot/usage/cpd-usage.html
    
     I spent a number of hours trying to figure out why CPD wasn't working correctly when running from cron. Turns out, running from cron the encoding used was ANSI_X3.4-1968, while in a normal shell it was UTF-8.
    
    • status: open --> in-progress
    • assigned_to: Andreas Dangel
    • Milestone: New Tickets --> PMD-next
     
  • Andreas Dangel

    Andreas Dangel - 2014-11-03
    • status: in-progress --> closed
     

Log in to post a comment.