306 strcpy(*variant, "NY");
307 }
308
309 /* encoding */
310 *encoding = getEncodingInternal(lcid);
311 }
312
313 java_props_t *
314 GetJavaProperties(JNIEnv* env)
315 {
316 static java_props_t sprops = {0};
317
318 OSVERSIONINFOEX ver;
319
320 if (sprops.line_separator) {
321 return &sprops;
322 }
323
324 /* AWT properties */
325 sprops.awt_toolkit = "sun.awt.windows.WToolkit";
326 sprops.awt_headless = NULL;
327
328 /* tmp dir */
329 {
330 WCHAR tmpdir[MAX_PATH + 1];
331 /* we might want to check that this succeed */
332 GetTempPathW(MAX_PATH + 1, tmpdir);
333 sprops.tmp_dir = _wcsdup(tmpdir);
334 }
335
336 /* Printing properties */
337 sprops.printerJob = "sun.awt.windows.WPrinterJob";
338
339 /* Java2D properties */
340 sprops.graphics_env = "sun.awt.Win32GraphicsEnvironment";
341
342 { /* This is used only for debugging of font problems. */
343 WCHAR *path = _wgetenv(L"JAVA2D_FONTPATH");
344 sprops.font_dir = (path != NULL) ? _wcsdup(path) : NULL;
345 }
346
|
306 strcpy(*variant, "NY");
307 }
308
309 /* encoding */
310 *encoding = getEncodingInternal(lcid);
311 }
312
313 java_props_t *
314 GetJavaProperties(JNIEnv* env)
315 {
316 static java_props_t sprops = {0};
317
318 OSVERSIONINFOEX ver;
319
320 if (sprops.line_separator) {
321 return &sprops;
322 }
323
324 /* AWT properties */
325 sprops.awt_toolkit = "sun.awt.windows.WToolkit";
326
327 /* tmp dir */
328 {
329 WCHAR tmpdir[MAX_PATH + 1];
330 /* we might want to check that this succeed */
331 GetTempPathW(MAX_PATH + 1, tmpdir);
332 sprops.tmp_dir = _wcsdup(tmpdir);
333 }
334
335 /* Printing properties */
336 sprops.printerJob = "sun.awt.windows.WPrinterJob";
337
338 /* Java2D properties */
339 sprops.graphics_env = "sun.awt.Win32GraphicsEnvironment";
340
341 { /* This is used only for debugging of font problems. */
342 WCHAR *path = _wgetenv(L"JAVA2D_FONTPATH");
343 sprops.font_dir = (path != NULL) ? _wcsdup(path) : NULL;
344 }
345
|