I'm posting to ask for feedback (and in the hope that Matthias will be
able to help me out!)
I have a PPC Mac running 10.4.11 (Xcode 2.5) and fltk-1.3 keyboard
handling is broken on that box.
The breakage is traced to Fl_mac.cxx line 1302 where the function
keycodeToUnicode() is called.
This function attempts to handle keystrokes and do sensible Unicode
string formation, so this is a Good Thing generally. But it depends in
turn on the function UCKeyTranslate() which invariably returns an error
on my systems, breaking all text input. This is a Bad Thing.
So: two questions, then.
1: Does anyone else see this bug, or is it just me? If it is just me, I
have to assume my setup is hosed, so any suggestions as to why would be
helpful.
Now... If others *are* seeing this bug, then I have a workaround, but I
need opinions on its goodness or otherwise, which brings me to point;
2: At line 1290 I have replaced the:
#if 0
With something like (not at a Mac right now...)
#ifndef MACOS_VERSION_10_5
Which I think means if the *build* system is 10.5 or later, the new code
is used, but if the system is 10.4 or earlier the previous code is used.
Now, the old code doesn't really handle Unicode at all gracefully, but
it does at least work for me for general use.
So... What do folk think about that approach? What am I missing here?
Can we make this an official fix in svn, or will it break more things
than it fixes?
Thanks,
--
Ian
SELEX Sensors and Airborne Systems Limited
Registered Office: Sigma House, Christopher Martin Road, Basildon, Essex SS14
3EL
A company registered in England & Wales. Company no. 02426132
********************************************************************
This email and any attachments are confidential to the intended
recipient and may also be privileged. If you are not the intended
recipient please delete it from your system and notify the sender.
You should not copy it or use it for any purpose nor disclose or
distribute its contents to any other person.
********************************************************************
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk