Project

General

Profile

Bug #7312 ยป 0001-Search-for-arch-specific-libc-location.patch

vo.x (Vit Ondruch), 11/20/2012 11:46 PM

View differences:

test/ruby/test_m17n_comb.rb
722 722
  def test_str_crypt
723 723
    begin
724 724
      # glibc 2.16 or later denies salt contained other than [0-9A-Za-z./] #7312
725
      glibcver = `/lib/libc.so.6`[/\AGNU C Library.*version ([0-9.]+)/, 1].split('.').map(&:to_i)
725
      glibcver = `#{RbConfig::CONFIG["libdir"]}/libc.so.6`[/\AGNU C Library.*version ([0-9.]+)/, 1].split('.').map(&:to_i)
726 726
      strict_crypt = (glibcver <=> [2, 16]) > -1
727 727
    rescue
728 728
    end
729
-