1.1 --- a/src/share/vm/oops/symbol.cpp Thu Mar 28 15:39:52 2013 +0100 1.2 +++ b/src/share/vm/oops/symbol.cpp Mon Apr 01 14:05:41 2013 -0700 1.3 @@ -162,7 +162,7 @@ 1.4 const char *ptr = (const char *)&_body[0]; 1.5 int quoted_length = UTF8::quoted_ascii_length(ptr, utf8_length()); 1.6 char* result = NEW_RESOURCE_ARRAY(char, quoted_length + 1); 1.7 - UTF8::as_quoted_ascii(ptr, result, quoted_length + 1); 1.8 + UTF8::as_quoted_ascii(ptr, utf8_length(), result, quoted_length + 1); 1.9 return result; 1.10 } 1.11