Upon installing fish from Entware you’ll get the following file in /storage/.opt/etc/fish/config.fish. Among other things it sets these two variables:
LANG to en_US.UTF-8
LC_ALL to same value
The issue is that these locales are not present on the system:
# locale -a
C
POSIX
That means that programs like vim cannot work correctly with UTF-8 encoded files correctly when invoked inside fish session. Could you please patch this?
A quick workaround is to set those variables manually:
Thank you, in any case: locale addon is a nice thing if you want to have extra locales on your system. By default it installs and enables en_GB. Strangely enough fish seems to ignore it and one has to execute set commands in .config/fish/config.fish to make this work.