So, some more info on why I think the binary file issue is happening - I have a few bash scripts that pipe text files out BUT the locale is not set correctly and is causing the files to become set as binary?
I see locale-gen is not available for the rockpi e - so how do I fix :
snb@snb:~$ less /etc/vtund.conf
"/etc/vtund.conf" may be a binary file. See it anyway?
caused by :
LANG=en_IN.UTF-8
LANGUAGE=
LC_CTYPE="en_IN.UTF-8"
LC_NUMERIC="en_IN.UTF-8"
LC_TIME="en_IN.UTF-8"
LC_COLLATE="en_IN.UTF-8"
LC_MONETARY="en_IN.UTF-8"
LC_MESSAGES="en_IN.UTF-8"
LC_PAPER="en_IN.UTF-8"
LC_NAME="en_IN.UTF-8"
LC_ADDRESS="en_IN.UTF-8"
LC_TELEPHONE="en_IN.UTF-8"
LC_MEASUREMENT="en_IN.UTF-8"
LC_IDENTIFICATION="en_IN.UTF-8"
LC_ALL=
Values not being set from what I can see.
Because when I do save a file I get :
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = (unset),
LC_TERMINAL = "iTerm2",
LANG = "en_IN.UTF-8"
Any help on how I can fix what seems like a broken locale that then causes files to not be readable by other applications.
Many Thanks