It appears vim doesn't respect the envar _ENCODE_FILE_NEW
It seems that bash respects it, so that would indicate there is something about vim that is going wrong.
My quick test for bash:
export _ENCODE_FILE_NEW=ISO8859-1
echo "hi" > newfile
chtag -p newfile # should be tagged as ISO8859-1
rm newfile
export _ENCODE_FILE_NEW=IBM-1047
echo "hi" > newfile
chtag -p newfile # should be tagged as IBM-1047
It appears vim doesn't respect the envar _ENCODE_FILE_NEW It seems that bash respects it, so that would indicate there is something about vim that is going wrong.
My quick test for bash:
Here's my installed packages: