ai-karanam / leptonica

Automatically exported from code.google.com/p/leptonica
0 stars 0 forks source link

splitPathAtDirectory() in utils.c doesn't work under windows #17

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Try running psioseg_reg using Windows. It calls
convertSegmentedPagesToPS("/tmp/junkimagedir", "/tmp/junkmaskdir", 2.0,
0.15, 190, 0, 0, "junkfile.ps") which will eventually fail.

What is the expected output? What do you see instead?
I expect to be able to split paths.
Instead the entire path is returned (or nothing).

What version of the product are you using? On what operating system?
leptonlib-1.63.
Microsoft Visual Studio 2008 SP1 with latest updates also applied.
Windows XP Pro SP3.

Please provide any additional information below.
Change

    if ((lastslash = strrchr(cpathname, '/'))) {

to:

    if ((lastslash = strrchr(cpathname, sepchar))) {

Original issue reported on code.google.com by tomp2...@gmail.com on 1 Dec 2009 at 8:15

GoogleCodeExporter commented 9 years ago
Thanks for finding this.  Will be fixed in 1.64.

Original comment by dan.bloo...@gmail.com on 7 Dec 2009 at 2:17

GoogleCodeExporter commented 9 years ago
fixed in 1.64

Original comment by dan.bloo...@gmail.com on 3 Jan 2010 at 11:32