"Life is all about sharing. If we are good at something, pass it on." - Mary Berry

nnn: wcswidth returns different values for same Unicode code point between macOS and Linux

2023-08-09

When attempting to integrate nnn with Helix, I encountered an interesting issue that resulted in duplicate first characters in the filename:

nnn duplicate first character in the filename on macOS

What’s interesting is that this issue doesn’t occur on Linux:

nnn on Linux

I’ve spent several days troubleshooting this problem but haven’t been able to identify the root cause. The only solution I could come up with is a workaround, and I must admit, I’m still not entirely satisfied with it.

Read More...