From: Yukihiro Matsumoto Date: 2007-12-21T18:59:37+09:00 Subject: Re: invalid hex escape for '\x' Hi, In message "Re: invalid hex escape for '\x'" on Fri, 21 Dec 2007 18:28:57 +0900, Martin Duerst writes: |I just used '\x' in both 1.8 and 1.9. In 1.8, this is just a string |of two characters. In 1.9, I also expected this, but I got |"invalid hex escape". I'd very much expect this for "\x", but |I didn't expect hex escapes to suddenly work in single-quoted strings. Which version (revision) did you use? My Ruby gives me two characters. %cat x.rb p '\x' %ruby x.rb ruby 1.9.0 (2007-12-21 patchlevel 0) [i686-linux] "\\x" I use r14428 on trunk. matz.