components/ruby/ruby-18/patches/03-rdoc_rb.patch
author April Chin <april.chin@oracle.com>
Wed, 06 Nov 2013 14:12:13 -0800
branchs11-update
changeset 2813 db0bfa0fa498
parent 199 components/ruby/patches/03-rdoc_rb.patch@b87534be1a76
permissions -rw-r--r--
PSARC/2013/269 Add Ruby 1.9.3 and EOF and Remove Ruby 1.8.7 15700054 SUNBT7023596 integrate ruby version 1.9.3 17650189 problem in UTILITY/RUBY

--- ruby-1.8.7-p334.orig/lib/rdoc/rdoc.rb	Mon Feb 12 15:01:19 2007
+++ ruby-1.8.7-p334/lib/rdoc/rdoc.rb	Fri Mar 25 11:17:13 2011
@@ -200,7 +200,9 @@
     # we may well contain subdirectories which must
     # be tested for .document files
     def list_files_in_directory(dir, options)
-      normalized_file_list(options, Dir.glob(File.join(dir, "*")), false, options.exclude)
+      # Fix for CR6650926, we're sorting the file list alphabetically to ensure that rdoc traverses the input in a predictable manner.
+      #normalized_file_list(options, Dir.glob(File.join(dir, "*")), false, options.exclude)
+       normalized_file_list(options, Dir.glob(File.join(dir, "*")).sort, false, options.exclude)
     end