Paul A. Rubin wrote: > I think it's a consequence of LyX setting the input encoding to latin1 > (and surrounding the listing with \begingroup ... \endgroup).
No, without those, it shows exactly the same behaviour. > Still, am I right that forcing latin1 > in the listings environment means that you cannot in fact put, say, CJK > characters in a comment that escapes to LaTeX? Seems a bit restrictive. > > Maybe you should open a bugzilla entry about this. A bugzilla report does not strike me very sensible, since this is not a LyX bug, but a listings bug/restriction. Jürgen