haiku/src
Zach Dykstra 41bdfde7e6 tracker: write default columns to correct attr
Tracker creates folders in
~/config/settings/Tracker/DefaultQueryTemplates with customized
attributes. In particular, each folder has relevant columns already
pre-set. These were being generated and written to disk in the host's
endian, but always written to the big endian attribute name.

This meant that on LE CPUs, Tracker tried to load _trk/columns and
convert it from BE to LE. Sanity checks failed, and each 'converted'
column was deleted, leaving Tracker to install a default set of columns.

The attribute for the host's endian is now automatically used
(_trk/columns for BE, _trk/columns_le for LE).

This fix also exposed that the 'When' column for the text_x-email
template folder was incorrectly typed as a string, instead of time.

Change-Id: I44d5f99d71d949368ff1aba1f48c03332a26d331
Reviewed-on: https://review.haiku-os.org/c/haiku/+/6213
Tested-by: Automation <automation@haiku-os.org>
Reviewed-by: Adrien Destugues <pulkomandy@pulkomandy.tk>
2023-03-20 22:14:28 +00:00
..
add-ons fdt: implement '#address-cells', '#size-cells' support 2023-03-20 16:52:27 +00:00
apps MediaConverter: Fix incorrect string break 2023-03-20 22:14:06 +00:00
bin setvolume: implement some common features 2023-02-16 11:40:17 +00:00
build libroot_build: Correct read/write[v] functions. 2023-02-14 01:59:31 -05:00
data data: Drop ARM FDT dts from repo 2023-02-23 18:24:21 +00:00
kits tracker: write default columns to correct attr 2023-03-20 22:14:28 +00:00
libs openbsd_wlan: Synchronize net80211 with OpenBSD. 2023-02-28 20:09:12 -05:00
preferences preferences/Keymap: use transparent background, reduce stamping artifacts 2023-03-20 07:28:54 +00:00
servers mail: filter messages in Trash from unread count 2023-03-11 04:32:40 +00:00
system kernel/arm: implement signals, fork, restart syscall 2023-03-20 17:28:20 +00:00
tests src/test: Remove "sock". 2023-03-14 15:23:24 -04:00
tools fs_shell: Use proper readv/writev functions on Haiku hosts. 2023-02-18 11:38:48 -05:00
Jamfile