fix php-gettext on 64 bit
git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@514 b3834d28-1941-0410-a4f8-b48e95affb8f
This commit is contained in:
parent
1b11e826fb
commit
bfaa111fa1
2 changed files with 10 additions and 2 deletions
|
@ -1,3 +1,11 @@
|
|||
---- semanticscuttle-specific -----
|
||||
2009-11-03 Christian Weiske <cweiske@cweiske.de>
|
||||
* fix magic detection on 64 bit systems, apply patch from:
|
||||
http://source.ibiblio.org/trac/lyceum/attachment/ticket/652/gettext-64bit-fix.diff
|
||||
|
||||
|
||||
---- version 1.07 -----
|
||||
|
||||
2006-02-07 Danilo Šegan <danilo@gnome.org>
|
||||
|
||||
* examples/pigs_dropin.php: comment-out bind_textdomain_codeset
|
||||
|
|
|
@ -109,9 +109,9 @@ class gettext_reader {
|
|||
|
||||
$this->STREAM = $Reader;
|
||||
$magic = $this->readint();
|
||||
if ($magic == $MAGIC1) {
|
||||
if ($magic == $MAGIC1 || $magic == ($MAGIC1 & 0xFFFFFFFF)) {
|
||||
$this->BYTEORDER = 0;
|
||||
} elseif ($magic == $MAGIC2) {
|
||||
} elseif ($magic == $MAGIC2 || $magic == ($MAGIC2 & 0xFFFFFFFF)) {
|
||||
$this->BYTEORDER = 1;
|
||||
} else {
|
||||
$this->error = 1; // not MO file
|
||||
|
|
Loading…
Reference in a new issue