On 06.11.2008, at 10:58, MacArthur, Ian (SELEX GALILEO, UK) wrote:
> 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.
>
> 1: Does anyone else see this bug, or is it just me?

It's just you and everyone else who is belo 10.5. There is additional  
code missing for pre-10.5 handling.

> 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?

This is a nice temporary workaround, but obviously not a final fix  
because applications compiled on 10.5 will not run on 10.4. I will try  
to add the missing code (but probably not before December). I suggest  
that you replace the #if stuff with a *run*-time check of the OS  
version, or simply activate the old code by setting #if 1 which will  
work on all OS version.

> Can we make this an official fix in svn, or will it break more things
> than it fixes?


It is probably best to commit the #if change to svn because it will  
take me a while before I can commit the final version.

Matthias

----
http://robowerk.com/


_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk

Reply via email to