diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-01-11 00:53:03 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-01-11 00:53:03 +0000 |
commit | 83eb364248d762807a68c678205664807fc8fc7a (patch) | |
tree | ee1b93321609532abca419ea47a755445875ed3d /ext | |
parent | 78480953e68de46b3f43a049bf95030d1a6239e5 (diff) | |
download | ruby-83eb364248d762807a68c678205664807fc8fc7a.tar.gz ruby-83eb364248d762807a68c678205664807fc8fc7a.tar.xz ruby-83eb364248d762807a68c678205664807fc8fc7a.zip |
* ext/socket/mkconstants.rb (c_str): get rid of a 1.9 feature for
cross compile. [ruby-core:21243]
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@21425 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext')
-rw-r--r-- | ext/socket/mkconstants.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/socket/mkconstants.rb b/ext/socket/mkconstants.rb index 5bedbac5a..518618c45 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! |