From 1b22c186775c11cd061757745359375b7c340f06 Mon Sep 17 00:00:00 2001 From: Ryan Lortie Date: Wed, 5 Feb 2014 11:39:38 +0000 Subject: dconf compile: always write little endian --- bin/dconf-update.vala | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'bin') diff --git a/bin/dconf-update.vala b/bin/dconf-update.vala index 556dc70..d452092 100644 --- a/bin/dconf-update.vala +++ b/bin/dconf-update.vala @@ -236,8 +236,11 @@ void dconf_compile (string[] args) throws GLib.Error { } try { + // We always write the result of "dconf compile" as little endian + // so that it can be installed in /usr/share var table = read_directory (args[3]); - table.write_contents (args[2]); + var should_byteswap = (BYTE_ORDER == ByteOrder.BIG_ENDIAN); + table.write_contents (args[2], should_byteswap); } catch (Error e) { printerr ("%s\n", e.message); Process.exit (1); -- cgit v1.2.1