Re: bug #559 follow-up, need hints


Subject: Re: bug #559 follow-up, need hints
From: Tamas Decsi (tamas@pressflex.com)
Date: Thu Jan 04 2001 - 15:43:47 CST


Hi Vlad,

thanks for the hint. It worked, though - due to the fact that abiword
recognizes hu-HU instead of the standard hu_HU - I had to rewrite it to
  hu-HU.ISO-8859-2

It may worth replacing all locale names along with the method to conform
the standard, and then the _properly_ set locale will work, and bug #559
can be closed.

I will write up a short howto for hungarian users.

All the best,
Tamas

On Thu, 4 Jan 2001, Vlad Harchev wrote:

> Hi,
>
> I think locale is not configured properly - $LANG should be set to
> hu_HU.ISO-8859-2 (of course if your system supports hungarian locale -
> /usr/share/locale/{hu,hu_HU} should exist) - please try it and report
> results. Anyway, it's a incorrect to use GdkEventKey->keyval - the right thing
> is to use GdkEventKey->string.
>
> If setting LANG properly solves the problem, bug#559 should be closed.
>
> >
> > Hello abi-dev,
> >
> > I couldn't stand and traced down the reason why abiword (unix) neglects
> > some iso-8859-2 chars (eg. the 'nastiest' hungarian chars:
> > o/O/u/U with double acute: charcodes 00f5, 00fb, 00d5, 00db).
> >
> > It turned out that in
> > ev_UnixKeyboard::keyPressEvent()
> > the passed
> > GdkEventKey *e
> > structure provides an empty string in
> > e->string
> > (at least) for the mentioned chars, while the
> > e->charcode
> > still gives the character code.
> > Since that string is used as an input to ut_mbtowc (and then iconv), the
> > whole thing results in an empty string, instead of those chars.
> >
> > My questions are:
> >
> > 1. this is not exactly bug #559, because the crash it notes did not happen.
> > What should I do with this bug in bugzilla? (sorry, I've never used it
> > before)
> >
> > 2. it turned out that the problem may be in gdk, and not in abi.
> > I don't know much about gdk, so I need some hints:
> >
> > - Does gdk support iso-8859-2 encoding?
> > - If yes, where it is told, that we use iso-8859-2 ?
> > - If no, it seems to be abi's bug to use the GdkEventKey->string, and
> > should be avoided somehow. Am I right?
> >
> > Any hints are welcome.
> >
> > Cheers,
> > Tamas
> >
>
> Best regards,
> -Vlad
>



This archive was generated by hypermail 2b25 : Thu Jan 04 2001 - 15:44:02 CST