diff options
author | Remi Collet <remi@remirepo.net> | 2018-05-23 13:15:08 +0200 |
---|---|---|
committer | Remi Collet <remi@remirepo.net> | 2018-05-23 13:15:08 +0200 |
commit | 228f7d76d3e8f3da318e704676441b1760f16ab6 (patch) | |
tree | 7c828f1105fbb9970bf68dc91737ede2d6a74199 /0000-don-t-check-Po-file-content-on-bigendian.patch | |
parent | 69c1e6638c37d67c0a15a2f774cca678ee48679f (diff) |
v4.5.0 from Fedora:
* Sun May 20 2018 Randy Barlow <bowlofeggs@fedoraproject.org> - 4.5.0-1
- Update to 4.5.0 (#1571010).
- https://github.com/oscarotero/Gettext/blob/v4.5.0/CHANGELOG.md
Diffstat (limited to '0000-don-t-check-Po-file-content-on-bigendian.patch')
-rw-r--r-- | 0000-don-t-check-Po-file-content-on-bigendian.patch | 42 |
1 files changed, 0 insertions, 42 deletions
diff --git a/0000-don-t-check-Po-file-content-on-bigendian.patch b/0000-don-t-check-Po-file-content-on-bigendian.patch deleted file mode 100644 index dc09460..0000000 --- a/0000-don-t-check-Po-file-content-on-bigendian.patch +++ /dev/null @@ -1,42 +0,0 @@ -From aadd696ee850da3e3e387dd32b9406905cd14e2b Mon Sep 17 00:00:00 2001 -From: Randy Barlow <randy@electronsweatshop.com> -Date: Mon, 15 Jan 2018 15:59:10 -0500 -Subject: [PATCH] don't check Po file content on bigendian - -Patch originally written by Remi Collet[0], and adapted for -Gettext 4.4.3 by Randy Barlow. - -Signed-off-by: Randy Barlow <randy@electronsweatshop.com> ---- - tests/AbstractTest.php | 10 +++++++++- - 1 file changed, 9 insertions(+), 1 deletion(-) - -diff --git a/tests/AbstractTest.php b/tests/AbstractTest.php -index 42f54b6..42f419f 100644 ---- a/tests/AbstractTest.php -+++ b/tests/AbstractTest.php -@@ -51,7 +51,10 @@ abstract class AbstractTest extends PHPUnit_Framework_TestCase - $method = "to{$format}String"; - $content = file_get_contents(static::asset($file.'.'.static::$ext[$format])); - -- $this->assertSame($content, $translations->$method(), $file); -+ // Po reference files are LittleEndian -+ if ($format !== 'Mo' || self::isLittleEndian()) { -+ $this->assertSame($content, $translations->$method(), $file); -+ } - } - - protected static function saveContent(Translations $translations, $file, $format = null) -@@ -78,4 +81,9 @@ abstract class AbstractTest extends PHPUnit_Framework_TestCase - $this->assertSame($countTranslated, $translations->countTranslated()); - $this->assertContent($translations, $file); - } -+ -+ protected function isLittleEndian() -+ { -+ return pack("s", 0x3031) === "10"; -+ } - } --- -2.16.1 - |