Sort attributes by name for display, to make order arch-independent. 20120302030501/pspp
authorBen Pfaff <blp@cs.stanford.edu>
Fri, 2 Mar 2012 07:11:22 +0000 (23:11 -0800)
committerBen Pfaff <blp@cs.stanford.edu>
Fri, 2 Mar 2012 07:11:22 +0000 (23:11 -0800)
commit6be12778a162063cbdcd0e79043bd5a4ef2204a6
tree9ea97845bddc21d1f9db77c906acf328b1b6c473
parentc785bf16095624e47d9af976aaa751295a66f3d5
Sort attributes by name for display, to make order arch-independent.

When data file attributes or variable attributes were displayed by
e.g. DISPLAY ATTRIBUTES or SYSFILE INFO, they were sorted in hash
order, which varies by architecture.  Therefore, the tests that
depended on this order failed on big-endian machines such as mips.
This commit fixes the problem by displaying attributes in sorted
order.

This fixes a failure in the "Perl copying system files" reported
by Debian buildds.
src/data/attributes.c
src/data/attributes.h
src/language/dictionary/sys-file-info.c
tests/data/sys-file-reader.at
tests/perl-module.at