diff options
author | Ryan Lortie <desrt@desrt.ca> | 2014-02-05 11:39:38 +0000 |
---|---|---|
committer | Ryan Lortie <desrt@desrt.ca> | 2014-02-05 11:39:38 +0000 |
commit | 1b22c186775c11cd061757745359375b7c340f06 (patch) | |
tree | e9ab2a74b0f8a193242cd3f8cb504a9a312a6158 /bin | |
parent | 79285a11df24ec54b9451b25d14f5d61bb8046ab (diff) | |
download | dconf-1b22c186775c11cd061757745359375b7c340f06.tar.gz |
dconf compile: always write little endian
Diffstat (limited to 'bin')
-rw-r--r-- | bin/dconf-update.vala | 5 |
1 files changed, 4 insertions, 1 deletions
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); |