whereami character encoding

AFNI version info (afni -ver): Precompiled binary linux_ubuntu_22_04: Apr 27 2025 (Version AFNI_25.1.04 'Maximinus')

Hey,

Possibly weird question: what character encoding is used by whereami when writing text? I'm running

$ whereami -space MNI -coord_file   ../derivatives/afni-task-tapping-lmes-mt0.35-ex0.30/clusters.table.base-foll.txt'[1,2,3]' -tab > output.txt
$ lsb_release -a
No LSB modules are available.
Distributor ID:	Ubuntu
Description:	Ubuntu 24.04.2 LTS
Release:	24.04
Codename:	noble

and the output contains unprintable characters immediately the list of focus points in TLRC and MNI space as shown in the screenshot. I'm not including the actual text since I'm not sure it will render properly in the forum.

Context: I'm trying to process the output of whereami in python and subprocess.run is barfing on utf-8, us-ascii, and ISO-8859-1 as encoding.
Even running file on output.txt reveals little:

$ file output.txt 
output.txt: data

Hi Colm,

Thanks for that. There was a bug introduced because we no longer show MNI_ANAT space by default, and that was not updated for the tab style of report. I've updated the function that does this report, and I will make a pull request with these latest changes.

Fantastic, thanks! I just cherry-picked the two commits, rebuilt and now no more python barf!

1 Like

In case it matters, binaries with this were build last night.
Thanks!
-rick

1 Like