I feel a bit stupid with this, but I think I am a sorcerer apprentice with not enough experience to solve it.
The problem is that on cygwin (and I think it is the same with mingw) the "View source" feature does not work when the source of a single paragraph (or a group of paragraphs) is to be displayed. Displaying the source for the whole document is fine, though. I traced down the problem to the following snippet in getSourceCode() in buffer.C: if (par_begin + 1 == par_end) os << "% Preview source code for paragraph " << par_begin << "\n\n"; else os << "% Preview source code from paragraph " << par_begin << " to " << par_end - 1 << "\n\n"; where os is an odocstream. If I change these lines to: if (par_begin + 1 == par_end) os << "% Preview source code for current paragraph\n\n"; else os << "% Preview source code for selected paragraphs\n\n"; i.e., if I don't try to output an integral type to os, then everything works. I don't understand the reason of this. Everything I tried failed. I really don't know anything about facets and char_traits (there's nothing about them in my 1994 book by Stroustrup), so I think I am lost here. Any kind soul has a suggestion on what to do? -- Enrico