Fixes #683. This triggers when running on ruby 1.9 and is probably one of many like this and one of the reasons this interface is not maintained. However, since you wen to the effort of reporting it, the least we can do is fix it ;)
git-svn-id: file:///home/svn/framework3/trunk@7838 4d416f70-5f16-0410-b530-b9f4589650daunstable
parent
1029ecd7f8
commit
a1f71fa994
|
@ -52,7 +52,7 @@ module Gtk2
|
||||||
end
|
end
|
||||||
desc.strip!
|
desc.strip!
|
||||||
|
|
||||||
if(desc.length > 0 and not (desc[-1] >= 0x21 and desc[-1] <= 0x2e) )
|
if(desc.length > 0 and not (desc[-1,1].unpack("C")[0] >= 0x21 and desc[-1,1].unpack("C")[0] <= 0x2e) )
|
||||||
desc << "."
|
desc << "."
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -88,3 +88,4 @@ module Gtk2
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue