Core file on root? /core and weird binary file creation?

Hi forum

I have 2 weird questions :

  1. I’m getting a file called “core” on rootfs / - Any idea what this is and why? I’m worried it is being generated by an error?

  2. Any ideas how a file I create while the rootfs is mounted on another linux machine becomes a binary file when rockpi boots? I touch and edit a “normal” config file while the system is not booted BUT then on boot it somehow corrupts this file and it becomes a binary file - Very odd - Any idea?

I’m using rockpi e with EMMC module.

Any thoughts - Thank you!

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