From 9ef9f9b0c2c4e5ebefe3b280022e496de1ac0cab Mon Sep 17 00:00:00 2001 From: hut Date: Tue, 21 Jul 2009 00:27:58 +0200 Subject: each_char -> each_byte --- code/draw.rb | 2 +- code/extensions/basic.rb | 2 +- code/keys.rb | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/code/draw.rb b/code/draw.rb index 39f815fa..6b3acc8b 100644 --- a/code/draw.rb +++ b/code/draw.rb @@ -24,7 +24,7 @@ module Fm f.lines.each do |l| if check check = false - break unless l.each_char.all? {|x| x[0] > 0 and x[0] < 128} + break unless l.each_byte.all? {|x| x.ord > 0 and x.ord < 128} end puti i+1, left, l.gsub("\t"," ")[0, wid-1].ljust(wid) i += 1 diff --git a/code/extensions/basic.rb b/code/extensions/basic.rb index 0dbd8a96..89798ba5 100644 --- a/code/extensions/basic.rb +++ b/code/extensions/basic.rb @@ -152,7 +152,7 @@ class File::Stat end s = ("%o" % mode)[-3..-1] - for m in s.each_char + for m in s.each_byte result << MODES_HASH[m] end diff --git a/code/keys.rb b/code/keys.rb index a6a68455..963b87bb 100644 --- a/code/keys.rb +++ b/code/keys.rb @@ -759,7 +759,7 @@ module Fm if token =~ /^\/(.*)\/$/ ary << $1 elsif token.size > 0 - ary << token.each_char.map {|t| + ary << token.each_byte.map {|t| if t == '?' t = '\?' end -- cgit 1.4.1-2-gfad0 s/prefix/openbsd/use.mask'>commit diff stats
path: root/profiles/prefix/openbsd/use.mask
blob: 82234ea979a34dac656b674a99989c287baae289 (plain) (blame)
1
2
3
4
5
6
7
8
9
10