I don’t know why but since yesterday this error appeared in my shell using DietPI account, using root account there isn’t the error:
Maybe it appears after I changed the FQDN name from DietPI to Pi-Hole, I don’t remember, maybe there’s another bash process active but I don’t see it.
(already tried to restart and changed the locale settings)
Oh nevermind, I fixed by myself, during my test to change the default font in console I added a weird string to the .bashrc, I found it, deleted, reboot and the error is gone.
The nash error was to load another font from bashrc: /usr/bin/setfont /usr/share/consolefonts/Uni2-Fixed15.psf.gz
Your should be able to change the default font (system-wide) via dpkg-reconfigure console-setup, if I’m not mistaken.
I think you can only change the locale, and I was trying to change all the font style, but I solved in this old thread: https://dietpi.com/forum/t/change-default-font-terminal-in-dietpi/6501/14