Porting to HP-UX with gtk2

Hi
    GTK2 is now working on HP-UX 11.1, so I'm trying to have wxPython built with these libraries. WxPython compilation works fine, but I'm having two problems when running the demo as well as running my own application.
The first one is an unexpected message box at the very start of the application saying "Cannot convert from charset 'iso88591'.
The second one is quite similar and it happens when I invoke a file dialog for saving something. This time the message box says "Invalid file name. Conversion from character set 'UTF-8' to 'ISO88591' is not supported"

It seems there is a misunderstanding about the name of the same character set: 'iso88591' for HP, 'ISO8859_1' for wxPython.
How can I fix the problem? which files are involved?

More info:
wxPython is compiled without unicode support
LANG = C.iso88591

Thanks

              Angelo Pozzi

Did you have the env vars G_FILENAME_ENCODING and/or G_BROKEN_FILENAMES?

Ricardo

···

On Mon, 2005-07-11 at 18:14 +0200, Angelo_Mose.Pozzi@alcatel.it wrote:

Hi
    GTK2 is now working on HP-UX 11.1, so I'm trying to have wxPython
built with these libraries. WxPython compilation works fine, but I'm
having two problems when running the demo as well as running my own
application.
The first one is an unexpected message box at the very start of the
application saying "Cannot convert from charset 'iso88591'.
The second one is quite similar and it happens when I invoke a file
dialog for saving something. This time the message box says "Invalid
file name. Conversion from character set 'UTF-8' to 'ISO88591' is not
supported"

It seems there is a misunderstanding about the name of the same
character set: 'iso88591' for HP, 'ISO8859_1' for wxPython.
How can I fix the problem? which files are involved?

More info:
wxPython is compiled without unicode support
LANG = C.iso88591

Ricardo Pedroso wrote:

···

On Mon, 2005-07-11 at 18:14 +0200, Angelo_Mose.Pozzi@alcatel.it wrote:

Hi
   GTK2 is now working on HP-UX 11.1, so I'm trying to have wxPython built with these libraries. WxPython compilation works fine, but I'm having two problems when running the demo as well as running my own application.
The first one is an unexpected message box at the very start of the application saying "Cannot convert from charset 'iso88591'.
The second one is quite similar and it happens when I invoke a file dialog for saving something. This time the message box says "Invalid file name. Conversion from character set 'UTF-8' to 'ISO88591' is not supported"

It seems there is a misunderstanding about the name of the same character set: 'iso88591' for HP, 'ISO8859_1' for wxPython.
How can I fix the problem? which files are involved?

More info:
wxPython is compiled without unicode support
LANG = C.iso88591

Did you have the env vars G_FILENAME_ENCODING and/or G_BROKEN_FILENAMES?

Ricardo

---------------------------------------------------------------------
To unsubscribe, e-mail: wxPython-users-unsubscribe@lists.wxwidgets.org
For additional commands, e-mail: wxPython-users-help@lists.wxwidgets.org

No, none of them is set.
I ran the demo with G_FILENAME_ENCODING set to 'ISO8859_1' and to 'iso88591' but nothing changed.
Could you tell me how to set this(these) env vars?
Thanks
      Angelo

What is you wxPython version?

There was a bug related to this (but I think that affect only the
unicode build, I'm not sure...) that was corrected after wxPython
2.6.0.0

See this thread http://thread.gmane.org/gmane.comp.python.wxpython/22542

You may try setting the LANG:
   LANG=it_IT.ISO-8859-1
   export LANG
or
   LANG=it_IT.UTF-8
   export LANG

and don't set the G_FILENAME_ENCONDING

If this doesn't work try setting:
   G_FILENAME_ENCODING=@locale
   export G_FILENAME_ENCODING

Ricardo

···

On Wed, 2005-07-13 at 08:29 +0200, Angelo_Mose.Pozzi@alcatel.it wrote:

>Did you have the env vars G_FILENAME_ENCODING and/or G_BROKEN_FILENAMES?
>
>Ricardo
>
>
No, none of them is set.
I ran the demo with G_FILENAME_ENCODING set to 'ISO8859_1' and to
'iso88591' but nothing changed.
Could you tell me how to set this(these) env vars?
Thanks
      Angelo

Ricardo Pedroso wrote:

···

On Wed, 2005-07-13 at 08:29 +0200, Angelo_Mose.Pozzi@alcatel.it wrote:

Did you have the env vars G_FILENAME_ENCODING and/or G_BROKEN_FILENAMES?

Ricardo

No, none of them is set.
I ran the demo with G_FILENAME_ENCODING set to 'ISO8859_1' and to 'iso88591' but nothing changed.
Could you tell me how to set this(these) env vars?
Thanks
     Angelo
   
What is you wxPython version?

There was a bug related to this (but I think that affect only the
unicode build, I'm not sure...) that was corrected after wxPython
2.6.0.0

See this thread http://thread.gmane.org/gmane.comp.python.wxpython/22542

You may try setting the LANG:
  LANG=it_IT.ISO-8859-1
  export LANG
or
  LANG=it_IT.UTF-8
  export LANG

and don't set the G_FILENAME_ENCONDING

If this doesn't work try setting:
  G_FILENAME_ENCODING=@locale
  export G_FILENAME_ENCODING

Ricardo

---------------------------------------------------------------------
To unsubscribe, e-mail: wxPython-users-unsubscribe@lists.wxwidgets.org
For additional commands, e-mail: wxPython-users-help@lists.wxwidgets.org

I'm using wxPython 2.6.1.0
I'd have to set the variable LC_ALL to it_IT.ISO-8859-1 (or to something not in the list from locale -a) and the problem disappeared. I just get some complaints: one from HP-UX and two from Gdk. I put them in attachment.

Thanks again

        Angelo

You forgot the attachment. But I think I can't help you from here, maybe
someone else. The only experience I have with wxPython on Unix's is on
Linux.
It's seem that there isn't a consistent implementation of the locales in
the unix world. See this post on wx-users:
http://thread.gmane.org/gmane.comp.lib.wxwidgets.general/32445
Try to follow this thread, maybe someone else has a better/correct
explanation, solution... or try in a hpux mailling list.

Ricardo

···

On Thu, 2005-07-14 at 10:41 +0200, Angelo_Mose.Pozzi@alcatel.it wrote:

Ricardo Pedroso wrote:

>On Wed, 2005-07-13 at 08:29 +0200, Angelo_Mose.Pozzi@alcatel.it wrote:
>
>
>>>Did you have the env vars G_FILENAME_ENCODING and/or G_BROKEN_FILENAMES?
>>>
>>>Ricardo
>>>
>>>
>>>
>>>
>>No, none of them is set.
>>I ran the demo with G_FILENAME_ENCODING set to 'ISO8859_1' and to
>>'iso88591' but nothing changed.
>>Could you tell me how to set this(these) env vars?
>>Thanks
>> Angelo
>>
>>
>
>What is you wxPython version?
>
>There was a bug related to this (but I think that affect only the
>unicode build, I'm not sure...) that was corrected after wxPython
>2.6.0.0
>
>See this thread http://thread.gmane.org/gmane.comp.python.wxpython/22542
>
>You may try setting the LANG:
> LANG=it_IT.ISO-8859-1
> export LANG
>or
> LANG=it_IT.UTF-8
> export LANG
>
>and don't set the G_FILENAME_ENCONDING
>
>If this doesn't work try setting:
> G_FILENAME_ENCODING=@locale
> export G_FILENAME_ENCODING
>
>
>Ricardo
>
>
>
I'm using wxPython 2.6.1.0
I'd have to set the variable LC_ALL to it_IT.ISO-8859-1 (or to something
not in the list from locale -a) and the problem disappeared. I just get
some complaints: one from HP-UX and two from Gdk. I put them in attachment.

Thanks again

        Angelo