URL:
  <http://gna.org/bugs/?15641>

                 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
                 Release: 
         Discussion Lock: Any
        Operating System: Mac OS
         Planned Release: 

    _______________________________________________________

Details:

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:

  <http://gna.org/bugs/?15641>

_______________________________________________
  Message sent via/by Gna!
  http://gna.org/


_______________________________________________
Freeciv-dev mailing list
Freeciv-dev@gna.org
https://mail.gna.org/listinfo/freeciv-dev

Reply via email to