From: Heesob Park Date: 2010-09-20T14:28:32+09:00 Subject: [ruby-core:32482] [Ruby-Feature#3851] Ruby 1.9.2p0 crash on filename with '[' Issue #3851 has been updated by Heesob Park. I think this must be a bug. Here is a patch for the trunk: --- dir.c 2010-09-20 14:12:13.000000000 +0900 +++ dir.c.new 2010-09-20 14:12:56.000000000 +0900 @@ -120,6 +120,7 @@ if (!*t1) return NULL; p = t1 + (r = rb_enc_mbclen(t1, pend, enc)); + if (!*p) return NULL; if (p[0] == '-' && p[1] != ']') { const char *t2 = p + 1; int r2; ---------------------------------------- http://redmine.ruby-lang.org/issues/show/3851 ---------------------------------------- http://redmine.ruby-lang.org