summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-01-11 00:53:03 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-01-11 00:53:03 +0000
commitf914b5a7c212d52aa6b77bb666d132e8f6f397a8 (patch)
treeee1b93321609532abca419ea47a755445875ed3d /ext
parent5a38751d0286d0a69ff301491207d7fd61b12bd2 (diff)
* ext/socket/mkconstants.rb (c_str): get rid of a 1.9 feature for
cross compile. [ruby-core:21243] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21425 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext')
-rw-r--r--ext/socket/mkconstants.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/socket/mkconstants.rb b/ext/socket/mkconstants.rb
index 5bedbac5ac..518618c45e 100644
--- a/ext/socket/mkconstants.rb
+++ b/ext/socket/mkconstants.rb
@@ -24,7 +24,7 @@ C_ESC = {
C_ESC_PAT = Regexp.union(*C_ESC.keys)
def c_str(str)
- '"' + str.gsub(C_ESC_PAT, C_ESC) + '"'
+ '"' + str.gsub(C_ESC_PAT) {|s| C_ESC[s]} + '"'
end
opt.parse!