Re: xterm-237-2 still has no UTF-8 support
Jon TURNEY wrote: neomjp wrote: On 2008/12/10 0:39, Yongwei Wu wrote: 1. xterm +lc -u8 I got these messages: Warning: Cannot convert string -adobe-helvetica-bold-r-normal--*-120-*-*-*-*-iso8859-* to type FontStruct Warning: Cannot convert string nil2 to type FontStruct These are the default fonts specified in /etc/X11/app-defaults/XTerm. -adobe-helvetica-... are provided by font-adobe-dpi100 and font-adobe-dpi75, and nil2 is provided by font-misc-misc. font-misc-misc is critical to this working properly. If you don't have that installed, we end-up using the built-in 'fixed' font, which only has a limited set of glyphs (those needed for iso8859-1, I would guess) (Since 1.5.3-3, the x server has has a built-in 'fixed' font and font-misc-misc is not installed by default) Thanks very much, neomjp and Jon. My only complaints now are that the new behaviour is not well documented from the user's point of view (for both the conflict between -lc and -u8, and the lack of utf-8 fonts by default), and that the name font-misc-misc is not helpful at all (before reading your messages, I had already tried some adobe fonts, but not this one). Best regards, Yongwei -- Wu Yongwei URL: http://wyw.dcweb.cn/ -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://x.cygwin.com/docs/ FAQ: http://x.cygwin.com/docs/faq/
Re: xterm-237-2 still has no UTF-8 support
On 2008/12/10 0:39, Yongwei Wu wrote: 1. xterm +lc -u8 I got these messages: Warning: Cannot convert string -adobe-helvetica-bold-r-normal--*-120-*-*-*-*-iso8859-* to type FontStruct Warning: Cannot convert string nil2 to type FontStruct These are the default fonts specified in /etc/X11/app-defaults/XTerm. -adobe-helvetica-... are provided by font-adobe-dpi100 and font-adobe-dpi75, and nil2 is provided by font-misc-misc. Do you have these fonts installed? What does cygcheck -c | grep font say? If these warnings persist, then you may have something wrong or some non-default settings about fonts. 1. Re-run (as in /etc/postinstall/fontconfig.sh) /usr/bin/fc-cache -r 2. Do you have any files in ls -l ~/.[xX]* 3. Did you modify any files in grep -ril font /etc/X11/|xargs md5sum (On my machine, it says: dd942bff017ee9cfc2bb97bbdd7378b6 */etc/X11/app-defaults/KOI8RXTerm 952670ddfbb90d0a7c36e87e7a796595 */etc/X11/app-defaults/UXTerm 3229b9daa5116a184ebe78949c8794f9 */etc/X11/app-defaults/XTerm I believe these are the default.) 4. How do you start up XWin (startx, starxwin.sh, startxwin.bat, etc.) and xterm? Does the file contain anything about fonts? -- neomjp -- Power up the Internet with Yahoo! Toolbar. http://pr.mail.yahoo.co.jp/toolbar/ -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://x.cygwin.com/docs/ FAQ: http://x.cygwin.com/docs/faq/
Re: xterm-237-2 still has no UTF-8 support
neomjp wrote: On 2008/12/10 0:39, Yongwei Wu wrote: 1. xterm +lc -u8 I got these messages: Warning: Cannot convert string -adobe-helvetica-bold-r-normal--*-120-*-*-*-*-iso8859-* to type FontStruct Warning: Cannot convert string nil2 to type FontStruct These are the default fonts specified in /etc/X11/app-defaults/XTerm. -adobe-helvetica-... are provided by font-adobe-dpi100 and font-adobe-dpi75, and nil2 is provided by font-misc-misc. font-misc-misc is critical to this working properly. If you don't have that installed, we end-up using the built-in 'fixed' font, which only has a limited set of glyphs (those needed for iso8859-1, I would guess) (Since 1.5.3-3, the x server has has a built-in 'fixed' font and font-misc-misc is not installed by default) Do you have these fonts installed? What does cygcheck -c | grep font say? -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://x.cygwin.com/docs/ FAQ: http://x.cygwin.com/docs/faq/
Re: xterm-237-2 still has no UTF-8 support
On 4:59, Yongwei Wu wrote: The recent xterm-237-2 still does not have the Unicode support It does. But according to xterm-237-2.cygport, it is configured with --enable-luit --enable-wide-chars. man xterm(1) says in the description of -u8, This option and the utf8 resource are overridden by the ‐lc and ‐en options and locale resource. That is, if xterm has been compiled to support luit, and the locale resource is not ‘‘false’’ this option is ignored. So, -u8 will be ignored without proper options. Try either: 1. xterm +lc -u8 2. xterm -en UTF-8 3. or use cygwin-1.7 with proper locale settings. Start bash and say, perl -we 'binmode(STDOUT, :utf8); print(pack(U*, 12371, 12435, 12395, 12385, 12399, 32, 50504, 45397, 54616, 49464, 50836, 63, 32, 20320, 22909));' This should print hello in Japanese, Korean, and Chinese. -- neomjp -- Power up the Internet with Yahoo! Toolbar. http://pr.mail.yahoo.co.jp/toolbar/ -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://x.cygwin.com/docs/ FAQ: http://x.cygwin.com/docs/faq/
Re: xterm-237-2 still has no UTF-8 support
On 4:59, Yongwei Wu wrote: The recent xterm-237-2 still does not have the Unicode support It does. But according to xterm-237-2.cygport, it is configured with --enable-luit --enable-wide-chars. man xterm(1) says in the description of -u8, This option and the utf8 resource are overridden by the -lc and -en options and locale resource. That is, if xterm has been compiled to support luit, and the locale resource is not ''false'' this option is ignored. So, -u8 will be ignored without proper options. Try either: 1. xterm +lc -u8 I got these messages: Warning: Cannot convert string -adobe-helvetica-bold-r-normal--*-120-*-*-*-*-iso8859-* to type FontStruct Warning: Cannot convert string nil2 to type FontStruct And non-ASCII characters become either spaces or question marks. I verified that I can copy the correct characters, but they do not appear. 2. xterm -en UTF-8 Same messages, but the term appears and immediately disappears. 3. or use cygwin-1.7 with proper locale settings. More details? Start bash and say, perl -we 'binmode(STDOUT, :utf8); print(pack(U*, 12371, 12435, 12395, 12385, 12399, 32, 50504, 45397, 54616, 49464, 50836, 63, 32, 20320, 22909));' This should print hello in Japanese, Korean, and Chinese. Nothing but spaces and question marks. However, they can be copied here: こんにちは 안녕하세요? 你好 Best regards, Yongwei -- Wu Yongwei URL: http://wyw.dcweb.cn/
Re: xterm-237-2 still has no UTF-8 support
On Tue, Dec 9, 2008 at 10:39 AM, Yongwei Wu wrote: I got these messages: Warning: Cannot convert string -adobe-helvetica-bold-r-normal--*-120-*-*-*-*-iso8859-* to type FontStruct Warning: Cannot convert string nil2 to type FontStruct And non-ASCII characters become either spaces or question marks. I verified that I can copy the correct characters, but they do not appear. If you can copy them and they appear properly when you paste, that would seem to imply that the xterm is correctly handling the Unicode characters. It's just that the associated glyphs are not present in the font you're using. -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://x.cygwin.com/docs/ FAQ: http://x.cygwin.com/docs/faq/
Re: xterm-237-2 still has no UTF-8 support
Mark J. Reed wrote: Warning: Cannot convert string -adobe-helvetica-bold-r-normal--*-120-*-*-*-*-iso8859-* to type FontStruct Warning: Cannot convert string nil2 to type FontStruct And non-ASCII characters become either spaces or question marks. I verified that I can copy the correct characters, but they do not appear. If you can copy them and they appear properly when you paste, that would seem to imply that the xterm is correctly handling the Unicode characters. It's just that the associated glyphs are not present in the font you're using. Good reasoning. I think you are right. Then who is to blame? :-) Another phenomenon I have observed: one cannot change the fonts in the VT Fonts menu. Something is still wrong here, but I am not sure whether it is in xterm or the rest of the XWindow system. Best regards, Yongwei -- Wu Yongwei URL: http://wyw.dcweb.cn/ -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://x.cygwin.com/docs/ FAQ: http://x.cygwin.com/docs/faq/