changeset 4531:a527ddd44e07

6729929: I18N - Taking Heap Dump failed if project path contains multibyte characters Reviewed-by: dholmes, rbackman Contributed-by: peter.allwin@oracle.com
author mgronlun
date Sat, 20 Apr 2013 19:02:11 +0200
parents 6337ca4dcad8
children cc12becb22e7
files src/share/vm/services/management.cpp
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/vm/services/management.cpp	Sat Apr 20 04:07:08 2013 -0700
+++ b/src/share/vm/services/management.cpp	Sat Apr 20 19:02:11 2013 +0200
@@ -2126,7 +2126,7 @@
     THROW_MSG_(vmSymbols::java_lang_NullPointerException(),
                "Output file name cannot be null.", -1);
   }
-  char* name = java_lang_String::as_utf8_string(on);
+  char* name = java_lang_String::as_platform_dependent_str(on, CHECK_(-1));
   if (name == NULL) {
     THROW_MSG_(vmSymbols::java_lang_NullPointerException(),
                "Output file name cannot be null.", -1);