rolinh / dfc

Report file system space usage information with style
BSD 3-Clause "New" or "Revised" License
108 stars 9 forks source link

Trouble with the graph ASCII char paramter into the dfcrc file #33

Open Troupal opened 1 year ago

Troupal commented 1 year ago

Hello dear dev !

I tried to change the graph character (which is set by default with "=") to "■" or other ASCII character in the files /etc/xdg/dfc/en/dfcrcand /etc/xdg/dfc/dfcrc (and all other places where it is possible) but it does not work. Do you know why? And how to fix it?

rolinh commented 1 year ago

Hi :wave:

Characters that have a length other than 1 (in byte) are currently not supported as the check is done using strlen(3). What should be done instead is to check the number of code points rather than the length and I think it may work.