hi everybody,
I found an interesting bug in moving files from windows to Linux. It
has to do with having a .xoj file that refers to a PDF.
glib Unix's is not OS sensitive.
This code is run under Linux:
printf("Directory name in windows [%s] with basename [%s] in directory
[%s]\n",
testWin, g_path_get_basename(testWin), g_path_get_dirname(testWin));
Directory name from Windows
[C:\Users\dmg\Dropbox\0\rm-foss-coordination-diff.pdf]
basename [C:\Users\dmg\Dropbox\0\rm-foss-coordination-diff.pdf]
in directory [.]
basically, Unix's glib's g_path_get_basename, g_path_get_dirname are only
capable of parsing Unix filenames, and can't parse the windows ones.
But interestingly, Window's glib is capable of properly splitting Linux
full (and windows' ones): filenames (this code is run under windows):
printf("Directory name in linux [%s] with basename [%s] in directory [%s]\n",
testLinux, g_path_get_basename(testLinux),
g_path_get_dirname(testLinux));
Directory name from linux [/home/dmg/Dropbox] parsed as:
basename [Dropbox] in directory [/home/dmg]
--dmg
--
Daniel M. German "In science, read, by preference,
the newest works; in literature,
Georges Leclerc Buffon -> the oldest."
http://turingmachine.org/
http://silvernegative.com/
dmg (at) uvic (dot) ca
replace (at) with @ and (dot) with .
------------------------------------------------------------------------------
Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
Discover the easy way to master current and previous Microsoft technologies
and advance your career. Get an incredible 1,500+ hours of step-by-step
tutorial videos with LearnDevNow. Subscribe today and save!
http://pubads.g.doubleclick.net/gampad/clk?id=58041391&iu=/4140/ostg.clktrk
_______________________________________________
Xournal-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xournal-devel