This is the result of my tests:

                         | Win->Lin \>/ | Win->Lin | Lin->lin | Lin->Win |

============================================================================

NoAccent, No SubDir      |    NA    |    OK    |    OK    |   OK     | NA_NS

No Accent, with subdir   |    OK    |   FAIL   |    OK    |   OK     | NA_WS

With Accent, No Subdir   |    NA    |    OK    |    OK    |   OK     | WA_NS

With Accent, with subdir |    OK    |   FAIL   |    OK    |   OK     | WA_WS

=============================================================================

(NA = Not Applicable)

So, the only problem is with Win to Linux and subdirs.

/Peter

> A suggestion:

>

> Perhaps on export to xml we should store always the linux format of paths.

> Like that all xml is the same. We only need to do for write:

> replace(os.sep, '/')

> and on import

> replace('/', os.sep)

>

> Or better, we only do above replaces when showing the field to the user in

> the interface and when accessing the filesystem.

>

> Agree?

>

> Benny

>

> 2009/2/25 Benny Malengier <benny.malengier@gmail.com>

>

> > I suppose the problem with subdir is that \ and / should be changed.

> > This is easy with the media manager to do, so the FAIL you mention are

> > not that bad. It would be a nice feature to be able to do the conversion

> > automatically during the import. Should not be that hard.

> >

> > We can test for that with os.sep and with the test for the operating

> > system we are on. Then look in the path and replace the sep of the other

> > os's by the os.sep of the present machine doing the import.

> >

> > I would not give this high priority though due to the media manager, it

> > can be done after release.

> > Perhaps Steve you should add a column with if it works after using the

> > media manager to replace the path seperators from \ to /.

> >

> > Benny

> >

> > 2009/2/25 Stephen George <steve_geo@optusnet.com.au>

> >

> >> To be complete, we really should test:

> >>>>> * Linux -> Linux

> >>>>> * Linux -> Windows

> >>>>> * Windows -> Windows

> >>>>> * Windows -> Linux

> >>>>

> >>>> The table below (best in fixed font) show what I've tested so far

> >>>>

> >> | Win->Win | Win->Lin | Lin->lin | Lin->Win |

> >>

> >> ======================================================================

> >> NoAccent, No SubDir | OK | OK | ? | ? |

> >> NA_NS

> >> No Accent, with subdir | OK | FAIL | ? | ? |

> >> NA_WS

> >> With Accent, No Subdir | OK | ? | ? | ? |

> >> WA_NS

> >> With Accent, with subdir | OK | FAIL | ? | ? |

> >> WA_WS

> >>

> >> ========================================================================

> >>=====

> >>

> >> I am using the following conventions when creating a gpkg

> >>

> >> Windows_NA_NS.gpkg (GPKG built on windows, no accents, no

> >> subdirectories) Windows_NA_WS.gpkg (GPKG built on windows, no accents,

> >> With

> >> subdirectories)

> >> Windows_WA_NS.gpkg (GPKG built on windows, with accents, no

> >> subdirectories)

> >> Windows_WA_WS.gpkg (GPKG built on windows, with accents, with

> >> subdirectories)

> >>

> >> These were build with SVN revision 12113

> >>

> >> Maybe some of you with linux systems running can help out by trying the

> >> import yourself.

> >>

> >> What to look for:

> >> Check no error on import

> >> Go to Media files, click on each media object to ensure preview displays

> >> the image.

> >>

> >> Cheers

> >> Steve

> >>

> >>

> >>

> >> ------------------------------------------------------------------------

> >>------ Open Source Business Conference (OSBC), March 24-25, 2009, San

> >> Francisco, CA

> >> -OSBC tackles the biggest issue in open source: Open Sourcing the

> >> Enterprise

> >> -Strategies to boost innovation and cut costs with open source

> >> participation

> >> -Receive a $600 discount off the registration fee with the source code:

> >> SFAD

> >> http://p.sf.net/sfu/XcvMzF8H

> >> _______________________________________________

> >> Gramps-devel mailing list

> >> Gramps-devel@lists.sourceforge.net

> >> https://lists.sourceforge.net/lists/listinfo/gramps-devel

--

Peter Landgren

Talken Hagen

671 94 BRUNSKOG

0570-530 21

070-635 4719

peter.talken@telia.com

Skype: pgl4820.2