[PATCH] test-encode: Use tr chacter classes instead of character ranges

Mads Kiilerich mads at kiilerich.com
Fri Jan 22 19:03:57 CST 2010


# HG changeset patch
# User Mads Kiilerich <mads at kiilerich.com>
# Date 1264208622 -3600
# Node ID bc01b615bb59a11f62f059c4fe62cdd65f7fd01c
# Parent  6109a02c682b1750a5f5673719dccb5131208ffc
test-encode: Use tr chacter classes instead of character ranges

Solaris ...

diff --git a/tests/test-encode b/tests/test-encode
--- a/tests/test-encode
+++ b/tests/test-encode
@@ -4,11 +4,11 @@
 
 cat > .hg/hgrc <<EOF
 [encode]
-not.gz = tr a-z A-Z
+not.gz = tr [:lower:] [:upper:]
 *.gz = gzip -d
 
 [decode]
-not.gz = tr A-Z a-z
+not.gz = tr [:upper:] [:lower:]
 *.gz = gzip
 
 EOF


More information about the Mercurial-devel mailing list