7031854: JCK 7 test FileDialogTest0001 fails on Windows with Russian locale
Reviewed-by: uta, dcherepanov
--- a/jdk/src/windows/native/sun/windows/awt_FileDialog.cpp Thu Apr 07 18:54:34 2011 +0400
+++ b/jdk/src/windows/native/sun/windows/awt_FileDialog.cpp Thu Apr 07 22:34:29 2011 +0400
@@ -225,7 +225,6 @@
{
JNIEnv *env = (JNIEnv *)JNU_GetEnv(jvm, JNI_VERSION_1_2);
jobject peer;
- WCHAR unicodeChar = L' ';
LPTSTR fileBuffer = NULL;
LPTSTR currentDirectory = NULL;
jint mode = 0;
@@ -263,7 +262,7 @@
HWND hwndOwner = awtParent ? awtParent->GetHWnd() : NULL;
if (title == NULL || env->GetStringLength(title)==0) {
- title = JNU_NewStringPlatform(env, &unicodeChar);
+ title = JNU_NewStringPlatform(env, L" ");
}
JavaStringBuffer titleBuffer(env, title);