Re: [Pidgin] #2504: pressing "ñ" makes libgnt exit the mainloop

Pidgin trac at pidgin.im
Mon Jul 21 01:03:59 EDT 2008


#2504: pressing "ñ" makes libgnt exit the mainloop
----------------------------------+-----------------------------------------
  Reporter:  fherrera             |       Owner:  sadrul  
      Type:  defect               |      Status:  reopened
  Priority:  minor                |   Milestone:          
 Component:  finch (gnt/ncurses)  |     Version:  2.2.2   
Resolution:                       |    Keywords:          
   Pending:  0                    |  
----------------------------------+-----------------------------------------
Comment (by QuLogic):

 That's odd. I tried printing out `keys` and ended up with `c3 b1`, which
 is the correct UTF-8 sequence for 'ñ'. I also tried this really short
 program (that I hope is correct), and the output was the same. Maybe
 there's something else that finch sets up that's messing with things?
 {{{
 #include <stdio.h>
 #include <locale.h>
 #include <glib.h>
 int
 main(int argc, char **argv) {
         int i;
         char n[] = ñ";
         gchar *result;
         setlocale (LC_ALL, "");
         result = g_locale_to_utf8(n, -1, NULL, NULL, NULL);
         for (i = 0; result[i]; i++)
                 printf("%02x\n", (unsigned char)result[i]);
         g_free(result);
         return 0;
 }
 }}}

-- 
Ticket URL: <http://developer.pidgin.im/ticket/2504#comment:15>
Pidgin <http://pidgin.im>
Pidgin


More information about the Tracker mailing list