It seems that gmane lost my mail, so i send it again

Georg Baum wrote:
Am Montag, 26. März 2007 21:06 schrieb Michael Gerz:
Hello,

again, I am facing a Windows path problem:

If you include a graphics, which is placed in a directory with German umlauts, the graphics file name get corrupted. This also happens if the relative path is umlaut-free.

Example: Your LyX doc is located in

    /c/Documents and Settings/itsyou/Veröffentlichungen/foo.lyx

It refers to a graphics called

    /c/Documents and Settings/itsyou/Veröffentlichungen/images/graph.jpg

In the graphics dialog, the file name is shown by its relative path

    images/graph.jpg


not here. For every umlaut in the graphics path also in the graphics dialog an 
extra character is
displayed - and i just found the reason:

In makeRelPath(..) for every umlaut in abspath or basepath there are two 
characters in the
std::string. For determining the matching length of the two strings (using 
os::common_path()) they
are converted to docstrings. Converting the strings to docstrings with 
from_utf8() results in one
character for every umlaut. The resulting matching length of the two strings is 
based on the
docstring length but is then used to split the std::strings (which are longer).

the bug was introduced with changeset 17430 (Georg?)

Bernhard

Reply via email to