On 2014-04-02 21:00+0200 Thorsten Behrens wrote: > Now, instead of typing the command line I just marked it in that Word > document, copied it and pasted it into the command line. It looked > completely OK to me (and still does - BTW, I also copied that line into my > first email on this topic). However, using this pasted text, no examples > are build! If, on the other hand, I just type the command character by > character (everything else being the same, i.e. build directory completely > cleaned before) everything is fine ... all examples are built. > > Why this happens is a complete mystery to me! If, instead of pasting the > text into the command line pasting it into any text editor (emacs, > notepad), there are no strange/control characters. It just looks identical > to the typed-in version. But CMake generates two different build > directories.
Yow, Thorsten! That was a really nasty one. It had me scratching my head since I use the cmake command line all the time (both for Linux and Windows) without issues. I am glad you managed to find the solution. As far as emacs is concerned it normally (at least on Linux) just accepts strange characters without telling you about them. For example, you could have a non-ascii UTF-8 version of some character that would display identically in emacs to the ascii version, but which the command-line version of cmake would not understand. You may also have similar problems with notepad detecting strange characters. On Linux, the only really sure way to see if there are strange characters in text that has been cut and pasted is to use the "od -a" command on that text (where od stands for "octal dump"). For example (N.B. this example will only make sense to you if your system is UTF-8 aware) software@raven> echo "Мир" Мир software@raven> echo "Мир" |od -a 0000000 P fs P 8 Q nul nl 0000007 where "Мир" is the UTF-8 Russian word for peace. (Note the 5-byte UTF-8 representation [followed by the null terminator to the string and the end of line indicator] of those 3 Cyrillic letters revealed by od.) Installing MSYS should provide you access to od.exe, but I assume that is overkill and there are also native Windows alternatives to od for providing binary/octal/hexadecimal dumps of text in case you wanted to investigate further what strange characters were in the cut and pasted text. Alan __________________________ Alan W. Irwin Astronomical research affiliation with Department of Physics and Astronomy, University of Victoria (astrowww.phys.uvic.ca). Programming affiliations with the FreeEOS equation-of-state implementation for stellar interiors (freeeos.sf.net); the Time Ephemerides project (timeephem.sf.net); PLplot scientific plotting software package (plplot.sf.net); the libLASi project (unifont.org/lasi); the Loads of Linux Links project (loll.sf.net); and the Linux Brochure Project (lbproject.sf.net). __________________________ Linux-powered Science __________________________ ------------------------------------------------------------------------------ _______________________________________________ Plplot-devel mailing list Plplot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/plplot-devel