I finally managed to find the source of the crashes I've been experiencing in console Cygwin Vim. The attached patch fixes the problem (not checking the result of XmbTextListToTextProperty() call) as well as removes some compilation warnings on Cygwin.
I wonder if this might be related to what Yegappan reported in "Vim crashes when selecting more than 262040 characters" on April 12th. I wonder if there are more places where invalid locale setting will cause such problems. Here's how to reproduce: 1. start a Cygwin X server, 2. start a terminal emulator (mintty in my case; haven't checked in Xterm) and set locale there to something invalid (in my case at some point LC_ALL=C.utf8 started to be incorrect but I never bothered to change it), 3. in the terminal start Vim and make sure that it connects to the X server (we will be using the clipboard), 4. enter some text, enter the visual mode and more some of the text, 5. open MS Notepad and press Ctrl-V (paste), 6. your console Vim has just crashed. -- Lech Lorens -- -- You received this message from the "vim_dev" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php --- You received this message because you are subscribed to the Google Groups "vim_dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
