orbitalquark / textadept

Textadept is a fast, minimalist, and remarkably extensible cross-platform text editor for programmers.
https://orbitalquark.github.io/textadept
MIT License
624 stars 38 forks source link

Curses version opens with an error, session.lua:71 bad argument to iconv #2 (string expected, got nil) #510

Closed quesada closed 4 months ago

quesada commented 4 months ago

image

I don't think I have done anything at all with sessions. Well, the gui version was running, but not at the same time?

orbitalquark commented 4 months ago

It seems like Textadept is not properly detecting your filesystem's character encoding. First, it tries the CHARSET environment variable. If that does not work, then it tries LC_ALL followed by LANG. What are the values of those environment variables?

My system defines only LANG:

LANG=en_US.UTF-8

I wonder if it's worth falling back on UTF-8 if all else fails.