Skip to content

Commit 63950ad

Browse files
committed
More standard separator
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/codec/trunk@1744089 13f79535-47bb-0310-9956-ffa450edef68
1 parent 3005780 commit 63950ad

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

  • src/main/java/org/apache/commons/codec/digest

src/main/java/org/apache/commons/codec/digest/Digest.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,11 @@ private Digest(final String[] args) {
6767

6868
private void println(String prefix, final byte[] digest) {
6969
final String sourceDesc = source == null ? "-" : source;
70-
System.out.println(prefix + Hex.encodeHexString(digest) + " " + sourceDesc);
70+
// The standard appears to be to print
71+
// hex, space, then either space or '*' followed by file
72+
// where '*' is used for binary files
73+
// shasum(1) has a -b option which generates " *" separator
74+
System.out.println(prefix + Hex.encodeHexString(digest) + " " + sourceDesc);
7175
}
7276

7377
private void run() throws IOException {

0 commit comments

Comments
 (0)