Problem with non-us locales in swing applications.
Hi, I have following problem: I need to have an application written with Swing which should support multiple languages, in this specific case: Polish, Russian, Bulgarian and English. After little fiddling with fonts I did managed to get most texts displayed correctly. However I do have following problems: - keyboard layouts: the only keyboard layout (selected with KDE control panel tools) which allows to input non-us charcaters is the one which matches Linux system locale. In other words, if I do setup LC_ALL=pl then Polish layout works, but Russian or Bulgarian inputs white squares or some strange characters. If I switch locale to Russian, it works opposite. I don't know what to do - it is certainly not a problem with my application - JEdit behaves exactly the same. - Frames title bars: I did set up my locale to PL, wrote properties file using UTF-8, converted it using native2ascii . Then application loads this file by ResourceBundle and displays some texts in title bar. This way works correctly in Windows. But in linux, if locale is set to PL then all titles which contains polish characters are disapearing. If I switch locale to POSIX, then they appear, but with ? in place of polish characters. I did have set title bar font to be Unicode (ISO-10646-1). The question is: Is this possible to have multilangual application in Java with linux? Or even simpler: what should I do to be able to edit multilangual files in JEdit? regards, Tomasz Sztejka P.S. I did tried 1.4.2_rc1 from BlackdownOrg and latests Sun's 1.5. Both behaves exactly the same way. P.S.2 I'm getting litle mad - I can't use Windows because of its inherent instability and can't use Linux because of above problem... ___ ALL-NEW Yahoo! Messenger - all new features - even more fun! http://uk.messenger.yahoo.com -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: Crashes/Hangs on Mandrake 10.0
Hui Huang said: > Details please? I've heard some complaints on JOGL crashing when it > tries to create a new C++ object, but I haven't seen a full bug > report yet. If you have the hs_err*.log file, could you send it to > me? attached. i just installed a new box with mandrake linux 10.0. i thought maybe the problem was with some recompiling i had done, but no, same stack trace: Function=XVisualIDFromVisual+0x7 Library=/usr/X11R6/lib/libX11.so.6 Current Java thread: at net.java.games.jogl.impl.JAWT_DrawingSurface.GetDrawingSurfaceInfo0(N ative Method) at net.java.games.jogl.impl.JAWT_DrawingSurface.GetDrawingSurfaceInfo(JA WT_DrawingSurface.java:43) at net.java.games.jogl.impl.x11.X11OnscreenGLContext.lockSurface(X11Onsc reenGLContext.java:167) at net.java.games.jogl.impl.x11.X11OnscreenGLContext.makeCurrent(X11Onsc reenGLContext.java:108) - locked <0x45c3a2d0> (a net.java.games.jogl.impl.x11.X11OnscreenGLConte xt) at net.java.games.jogl.impl.GLContext.invokeGL(GLContext.java:254) - locked <0x45c3a2d0> (a net.java.games.jogl.impl.x11.X11OnscreenGLConte xt) at net.java.games.jogl.GLCanvas.reshape(GLCanvas.java:112) at java.awt.Component.setBounds(Component.java:1664) > Did you try Sun JDK 5.0? no... bloody hell, it's a 130MB download... i notice there is no mention of support for mandrake on the download page -- i've got a SuSE CD, so maybe i'll try that later with blackdown. thanks, hui, jack An unexpected exception has been detected in native code outside the VM. Unexpected Signal : 11 occurred at PC=0x59C0EAB7 Function=XVisualIDFromVisual+0x7 Library=/usr/X11R6/lib/libX11.so.6 Current Java thread: at net.java.games.jogl.impl.JAWT_DrawingSurface.GetDrawingSurfaceInfo0(Native Method) at net.java.games.jogl.impl.JAWT_DrawingSurface.GetDrawingSurfaceInfo(JAWT_DrawingSurface.java:43) at net.java.games.jogl.impl.x11.X11OnscreenGLContext.lockSurface(X11OnscreenGLContext.java:167) at net.java.games.jogl.impl.x11.X11OnscreenGLContext.makeCurrent(X11OnscreenGLContext.java:108) - locked <0x45c3a2d0> (a net.java.games.jogl.impl.x11.X11OnscreenGLContext) at net.java.games.jogl.impl.GLContext.invokeGL(GLContext.java:254) - locked <0x45c3a2d0> (a net.java.games.jogl.impl.x11.X11OnscreenGLContext) at net.java.games.jogl.GLCanvas.reshape(GLCanvas.java:112) at java.awt.Component.setBounds(Component.java:1664) at java.awt.BorderLayout.layoutContainer(BorderLayout.java:691) - locked <0x45abb588> (a java.awt.Component$AWTTreeLock) at java.awt.Container.layout(Container.java:1020) at java.awt.Container.doLayout(Container.java:1010) at java.awt.Container.validateTree(Container.java:1092) at java.awt.Container.validateTree(Container.java:1099) at java.awt.Container.validateTree(Container.java:1099) at java.awt.Container.validateTree(Container.java:1099) at java.awt.Container.validateTree(Container.java:1099) at java.awt.Container.validate(Container.java:1067) - locked <0x45abb588> (a java.awt.Component$AWTTreeLock) at java.awt.Window.show(Window.java:461) at xj3d.browser.Xj3DBrowser.main(Xj3DBrowser.java:1153) Dynamic libraries: 08048000-08057000 r-xp 03:05 282406 /usr/local/j2sdk1.4.2/bin/java 08057000-08059000 rw-p e000 03:05 282406 /usr/local/j2sdk1.4.2/bin/java 4000-40016000 r-xp 16:01 271471 /lib/ld-2.3.3.so 40016000-40017000 rw-p 00015000 16:01 271471 /lib/ld-2.3.3.so 4002a000-40037000 r-xp 16:01 271515 /lib/tls/libpthread-0.10.so 40037000-40038000 rw-p d000 16:01 271515 /lib/tls/libpthread-0.10.so 4003a000-4003c000 r-xp 16:01 271482 /lib/libdl-2.3.3.so 4003c000-4003d000 rw-p 1000 16:01 271482 /lib/libdl-2.3.3.so 4003e000-4018 r-xp 16:01 271511 /lib/tls/libc-2.3.3.so 4018-40183000 rw-p 00142000 16:01 271511 /lib/tls/libc-2.3.3.so 40186000-4043b000 r-xp 03:05 326266 /usr/local/j2sdk1.4.2/jre/lib/i386/client/libjvm.so 4043b000-40454000 rw-p 002b5000 03:05 326266 /usr/local/j2sdk1.4.2/jre/lib/i386/client/libjvm.so 40467000-4046f000 r-xp 03:05 326279 /usr/local/j2sdk1.4.2/jre/lib/i386/native_threads/libhpi.so 4046f000-4047 rw-p 7000 03:05 326279 /usr/local/j2sdk1.4.2/jre/lib/i386/native_threads/libhpi.so 40479000-40489000 r-xp 16:01 271486 /lib/libnsl-2.3.3.so 40489000-4048a000 rw-p 0001 16:01 271486 /lib/libnsl-2.3.3.so 4048c000-40542000 r-xp 03:05 131205 /usr/lib/libstdc++.so.5.0.5 40542000-40547000 rw-p 000b5000 03:05 131205 /usr/lib/libstdc++.so.5.0.5 4054c000-4056e000 r-xp 16:01 271513 /lib/tls/libm-2.3.3.so 4056e000-4056f000 rw-p 00021000 16:01 271513 /lib/tls/libm-2.3.3.so 4056f000-40577000 r-xp 16:01 271608 /lib/libgcc_s-3.3.2.so.1 40577000-40578000 rw-p 7000 16:01 271608 /lib/libgcc_s-3.3.2.so.1 40578000-4057c000 rw-s 16:05 29252 /tmp/hsperfdata_root/3811 4058a000-40594000 r