[MGPG-136] Windows passphrase corruption by cstamas · Pull Request #120 · apache/maven-gpg-plugin (original) (raw)
Since 3.2.0 version we always appended "line separator" to passphrase unless it itself ended with one. But, this caused problem on Windows, as (our assumption is) that GPG uses binary read of STDIN, and on Windows "line separator" is "\r\n", while GPG handles "\n" only, making passphrase corrupted by presence of unwanted "\r".