alexanderjeurissen / ranger_devicons

Ranger plugin that adds file glyphs / icon support to Ranger
GNU General Public License v3.0
981 stars 75 forks source link

Icons missing with valid Nerd font #105

Closed Slushee-a closed 2 years ago

Slushee-a commented 2 years ago

Bug description: Nerd font is installed, glyphs are correctly displayed in terminal yet they are invisible in ranger. Both exa --icons and cat devicons.py display the icons as expected, but ranger has an empty space instead of an icon.

To Reproduce Steps to reproduce the behavior: 1 - Install ranger from package manager 2 - Install ranger devicons following the repo's guide 3 - launch ranger in terminal

Expected behavior Instead of an empty space, an icon is displayed

Screenshots image

Environment

Ranger devicons:

Slushee-a commented 2 years ago

I found a fix. I had the following in my zshrc:

export LANGUAGE="en_US.UTF-8"
export LC_ALL="C"

Turns out I just had to comment that out and add:

export LC_ALL=en_US.UTF-8

The icons weren't missing, they were just invisible as I expected.