Created attachment 312363 [details] Example .ltx file showing the problem I'm using \lstinputlisting{} in my LaTeX document to list fragments of my library header files. When used in regular LaTeX, the package works fine; when used with XeTeX, utf8 chars in the header file create problems. I will attach an example header file and a .ltx file showing the problem. The first one shows what happens when utf8 character appears in input range, and is less important to me. The other shows what happens if the characters is outside printed line range -- and basically causes all my listings to start with 'ł'.
Created attachment 312365 [details] Relevant header file
have you checked CTAN for updates in the listings packages ? have you tried to contact the listings package author ? its probably simpler to contact upstream directly when that kind of problem occurs.
Yes and yes. I've mailed the author but looking at last update date, I doubt the package is still maintained. Just wanted to have a bug for it somewhere. I hoped I would be able to write a patch but the code is too ugly for a newbie like me. It seems to check every single character through ^^80^^81... I guess with xetex such a check would have to introduce every unicode character unless written some other way.
still seems to cause problems
Should be fixed already, I believe. Worth checking and closing. https://ctan.org/pkg/listings?lang=en