GNOME Bugzilla – Bug 152607
querymodules.c backslash encode (escape_string)
Last modified: 2004-12-22 21:47:04 UTC
Please describe the problem: escape_string in querymodules.c is encoding LF and quotation mark. But backslash is not encoded. On Windows, paths are divided by backslash. Therefore it will be fault. Steps to reproduce: 1. run pango-querymodules.exe Actual results: output example "C:\Documents and Settings\iwm\My Documents\Source\gtk\lib\pango\1.4.1\modules\pango-basic-win32.dll" BasicScriptEngineWin32... Expected results: Backslash is encoded. Does this happen every time? When path has space. Other information:
Created attachment 31544 [details] [review] patch for backslash encode
escape_string() is called only if string_needs_escape() return TRUE, so that function needs to check for backslash, too. Otherwise OK, fixed in HEAD and pango-1-4.