<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -13,17 +13,51 @@ describe &quot;Regexps with encoding modifiers&quot; do
         match.to_a.should == [&quot;\303\251&quot;]
       end
       
+      it 'supports /e (EUC encoding) with interpolation' do
+        match = /#{/./}/e.match(&quot;\303\251&quot;)
+        match.to_a.should == [&quot;\303\251&quot;]
+      end
+      
+      it 'supports /e (EUC encoding) with interpolation and /o' do
+        match = /#{/./}/e.match(&quot;\303\251&quot;)
+        match.to_a.should == [&quot;\303\251&quot;]
+      end
+      
       it 'supports /n (Normal encoding)' do
         /./n.match(&quot;\303\251&quot;).to_a.should == [&quot;\303&quot;]
       end
       
+      it 'supports /n (Normal encoding) with interpolation' do
+        /#{/./}/n.match(&quot;\303\251&quot;).to_a.should == [&quot;\303&quot;]
+      end
+      
+      it 'supports /n (Normal encoding) with interpolation and /o' do
+        /#{/./}/no.match(&quot;\303\251&quot;).to_a.should == [&quot;\303&quot;]
+      end
+      
       it 'supports /s (SJIS encoding)' do
         /./s.match(&quot;\303\251&quot;).to_a.should == [&quot;\303&quot;]
       end
       
+      it 'supports /s (SJIS encoding) with interpolation' do
+        /#{/./}/s.match(&quot;\303\251&quot;).to_a.should == [&quot;\303&quot;]
+      end
+      
+      it 'supports /s (SJIS encoding) with interpolation and /o' do
+        /#{/./}/so.match(&quot;\303\251&quot;).to_a.should == [&quot;\303&quot;]
+      end
+      
       it 'supports /u (UTF8 encoding)' do
         /./u.match(&quot;\303\251&quot;).to_a.should == [&quot;\303\251&quot;]
       end
+
+      it 'supports /u (UTF8 encoding) with interpolation' do
+        /#{/./}/u.match(&quot;\303\251&quot;).to_a.should == [&quot;\303\251&quot;]
+      end
+
+      it 'supports /u (UTF8 encoding) with interpolation and /o' do
+        /#{/./}/uo.match(&quot;\303\251&quot;).to_a.should == [&quot;\303\251&quot;]
+      end
       
       it 'selects last of multiple encoding specifiers' do
         /foo/ensuensuens.should == /foo/s
@@ -37,19 +71,55 @@ describe &quot;Regexps with encoding modifiers&quot; do
       match.to_a.should == [&quot;\303\251&quot;.force_encoding(Encoding::EUC_JP)]
     end
     
+    it 'supports /e (EUC encoding) with interpolation' do
+      match = /#{/./}/e.match(&quot;\303\251&quot;.force_encoding(Encoding::EUC_JP))
+      match.to_a.should == [&quot;\303\251&quot;.force_encoding(Encoding::EUC_JP)]
+    end
+    
+    it 'supports /e (EUC encoding) with interpolation /o' do
+      match = /#{/./}/e.match(&quot;\303\251&quot;.force_encoding(Encoding::EUC_JP))
+      match.to_a.should == [&quot;\303\251&quot;.force_encoding(Encoding::EUC_JP)]
+    end
+    
     it 'supports /n (No encoding)' do
       /./n.match(&quot;\303\251&quot;).to_a.should == [&quot;\303&quot;]
     end
     
+    it 'supports /n (No encoding) with interpolation' do
+      /#{/./}/n.match(&quot;\303\251&quot;).to_a.should == [&quot;\303&quot;]
+    end
+    
+    it 'supports /n (No encoding) with interpolation /o' do
+      /#{/./}/n.match(&quot;\303\251&quot;).to_a.should == [&quot;\303&quot;]
+    end
+    
     it 'supports /s (Windows_31J encoding)' do
       match = /./s.match(&quot;\303\251&quot;.force_encoding(Encoding::Windows_31J))
       match.to_a.should == [&quot;\303&quot;.force_encoding(Encoding::Windows_31J)]
     end
     
+    it 'supports /s (Windows_31J encoding) with interpolation' do
+      match = /#{/./}/s.match(&quot;\303\251&quot;.force_encoding(Encoding::Windows_31J))
+      match.to_a.should == [&quot;\303&quot;.force_encoding(Encoding::Windows_31J)]
+    end
+    
+    it 'supports /s (Windows_31J encoding) with interpolation and /o' do
+      match = /#{/./}/s.match(&quot;\303\251&quot;.force_encoding(Encoding::Windows_31J))
+      match.to_a.should == [&quot;\303&quot;.force_encoding(Encoding::Windows_31J)]
+    end
+    
     it 'supports /u (UTF8 encoding)' do
       /./u.match(&quot;\303\251&quot;.force_encoding('utf-8')).to_a.should == [&quot;\u{e9}&quot;]
     end
     
+    it 'supports /u (UTF8 encoding) with interpolation' do
+      /#{/./}/u.match(&quot;\303\251&quot;.force_encoding('utf-8')).to_a.should == [&quot;\u{e9}&quot;]
+    end
+    
+    it 'supports /u (UTF8 encoding) with interpolation and /o' do
+      /#{/./}/u.match(&quot;\303\251&quot;.force_encoding('utf-8')).to_a.should == [&quot;\u{e9}&quot;]
+    end
+    
     # Fails on 1.9; reported as bug #2052
     it 'selects last of multiple encoding specifiers' do
       /foo/ensuensuens.should == /foo/s</diff>
      <filename>language/regexp/encoding_spec.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>4f6a302c2ef8739e65c06291f11b7304dced931d</id>
    </parent>
  </parents>
  <author>
    <name>Charles Oliver Nutter</name>
    <email>headius@headius.com</email>
  </author>
  <url>http://github.com/rubyspec/rubyspec/commit/2d102bae115e11719ff355d99ef336c0889b769a</url>
  <id>2d102bae115e11719ff355d99ef336c0889b769a</id>
  <committed-date>2009-10-15T10:21:14-07:00</committed-date>
  <authored-date>2009-10-15T10:21:14-07:00</authored-date>
  <message>Add additional specs for literal regexp encoding with /o and interpolation</message>
  <tree>490f515890174a7723620cc52227669c39d1a04b</tree>
  <committer>
    <name>Charles Oliver Nutter</name>
    <email>headius@headius.com</email>
  </committer>
</commit>
