summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteven G. Johnson <stevenj@alum.mit.edu>2015-06-25 23:15:57 (GMT)
committer Steven G. Johnson <stevenj@alum.mit.edu>2015-06-25 23:15:57 (GMT)
commiteefdaed21807c73905419e341277785fe80fb824 (patch)
tree7852e874d25d5786f2534ef5a842026d15069000
parent6a7f92da641360fe4c0bb37288982f72d211db7b (diff)
downloadlibutf8proc-eefdaed21807c73905419e341277785fe80fb824.tar.gz
libutf8proc-eefdaed21807c73905419e341277785fe80fb824.tar.bz2
sort keys to try to eliminate data dependence on Ruby version
-rw-r--r--data/data_generator.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/data/data_generator.rb b/data/data_generator.rb
index 3d8c3b7..0fd25c0 100644
--- a/data/data_generator.rb
+++ b/data/data_generator.rb
@@ -313,8 +313,8 @@ $stdout << "};\n\n"
$stdout << "const utf8proc_int32_t utf8proc_combinations[] = {\n "
i = 0
-comb1st_indicies.keys.each_index do |a|
- comb2nd_indicies.keys.each_index do |b|
+comb1st_indicies.keys.sort.each_index do |a|
+ comb2nd_indicies.keys.sort.each_index do |b|
i += 1
if i == 8
i = 0