summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog4
-rw-r--r--parse.y2
-rw-r--r--version.h2
3 files changed, 6 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index e693a3c57b..6656ce2d0e 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+Tue Oct 13 18:20:57 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * parse.y (parser_magic_comment): fixed normalization.
+
Mon Oct 12 23:27:57 2009 Shugo Maeda <shugo@ruby-lang.org>
* lib/net/ftp.rb (login): use "anonymous@" as a default password.
diff --git a/parse.y b/parse.y
index a552767674..15a3b787e5 100644
--- a/parse.y
+++ b/parse.y
@@ -6332,7 +6332,7 @@ parser_magic_comment(struct parser_params *parser, const char *str, int len)
str_copy(name, beg, n);
s = RSTRING_PTR(name);
for (i = 0; i < n; ++i) {
- if (*s == '-') *s = '_';
+ if (s[i] == '-') s[i] = '_';
}
#ifndef RIPPER
do {
diff --git a/version.h b/version.h
index a5096069ac..900fb81fc9 100644
--- a/version.h
+++ b/version.h
@@ -1,5 +1,5 @@
#define RUBY_VERSION "1.9.1"
-#define RUBY_PATCHLEVEL 388
+#define RUBY_PATCHLEVEL 389
#define RUBY_VERSION_MAJOR 1
#define RUBY_VERSION_MINOR 9
#define RUBY_VERSION_TEENY 1