Summary: text not rendered when cross-compiling
                 Project: Freeciv
            Submitted by: doctorjlowe
            Submitted on: Wednesday 03/17/2010 at 23:49
                Category: client-sdl
                Severity: 2 - Minor
                Priority: 5 - Normal
                  Status: None
             Assigned to: None
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
        Operating System: Mac OS
         Planned Release: 



OSX binaries are typically expected to be provided as a "Universal Binary",
which is executable on both PPC and Intel powered Macs.  The currently
provided OSX/UB package is unplayable on PPC because the characters are
rendered as boxes, due to a byte ordering problem.  This is documented in the
forums: http://forum.freeciv.org/viewtopic.php?t=4313&start=15 , search for
"font problem"

A suggested fix is provided later in the same forum; change
*get_display_encoding to the following:

  static const char bytes[2] = {0x11, 0x22}; 
  if(*(Uint16 *)bytes == 0x1122) 
    return "UTF-16BE"; 
  return "UTF-16LE"; 


Reply to this item at:


  Message sent via/by Gna!

Freeciv-dev mailing list

Reply via email to