From: caleb clausen Date: 2009-12-19T13:28:06+09:00 Subject: [ruby-core:27228] [Bug #2500] \c before a unicode character should cause an error Bug #2500: \c before a unicode character should cause an error http://redmine.ruby-lang.org/issues/show/2500 Author: caleb clausen Status: Open, Priority: Low ruby -v: ruby 1.9.1p376 (2009-12-07 revision 26040 [x86_64-linux] In a double-quoted string, no error occurs if the control escape ('\c' or '\C-') precedes an escaped unicode character (using the \uXXXX syntax). I would expect an error, as unicode characters (generally) don't have meaningful 'controlled' versions. For example, this: "\c\u5555" should cause an error. Instead, the second backslash appears to be ignored. In other words, it parses the same way as this: "\cu5555" If a literal unicode character appears after \c, that causes an error, as I would expect. For instance: "\c��" is a syntax error. I have observed this in recent 1.9.1 builds; I don't have a 1.9.2 handy to test with. ---------------------------------------- http://redmine.ruby-lang.org