[GRASS5] sites: bug in G_sites routines?

Hi all,

finally I found the problem with site lists! :slight_smile:

In my table such a string occured:
@"BB\CF"

The character "\" drives the sites lib crazy. After
changing it to @"BB/CF" my large table is accepted.

Unfortunately "BB\CF" is German soils terminology (soil types).
BB/CF is *not* the same as BB\CF, therefore I have to keep
it. How to convince the sites library to allow "\" character?

So far I am glad that the sites library manages large tables
and the new s.in.dbf seem to work.

It would be very helpful to allow "\" character in a string field.

Sorry for this confusion,

Markus

----------------------------------------
If you want to unsubscribe from GRASS Development Team mailing list write to:
minordomo@geog.uni-hannover.de with
subject 'unsubscribe grass5'

Hi Markus,

without looking at the documentation/source code, i think that this is a
real bug.
Every character that is not allowed to occur in the data should be
"escaped" somehow and treated that way by the library reading/writing.

cu,

Andreas

Markus Neteler wrote:

Hi all,

finally I found the problem with site lists! :slight_smile:

In my table such a string occured:
@"BB\CF"

The character "\" drives the sites lib crazy. After
changing it to @"BB/CF" my large table is accepted.

Unfortunately "BB\CF" is German soils terminology (soil types).
BB/CF is *not* the same as BB\CF, therefore I have to keep
it. How to convince the sites library to allow "\" character?

So far I am glad that the sites library manages large tables
and the new s.in.dbf seem to work.

It would be very helpful to allow "\" character in a string field.

Sorry for this confusion,

Markus

----------------------------------------
If you want to unsubscribe from GRASS Development Team mailing list write to:
minordomo@geog.uni-hannover.de with
subject 'unsubscribe grass5'

--
Andreas Lange, 65187 Wiesbaden, Germany, Tel. +49 611 807850
Andreas.Lange@Rhein-Main.de - A.C.Lange@GMX.net

----------------------------------------
If you want to unsubscribe from GRASS Development Team mailing list write to:
minordomo@geog.uni-hannover.de with
subject 'unsubscribe grass5'

On Sun, Jan 21, 2001 at 04:35:25PM +0000, Markus Neteler wrote:

Hi all,

finally I found the problem with site lists! :slight_smile:

In my table such a string occured:
@"BB\CF"

The character "\" drives the sites lib crazy. After
changing it to @"BB/CF" my large table is accepted.

Unfortunately "BB\CF" is German soils terminology (soil types).
BB/CF is *not* the same as BB\CF, therefore I have to keep
it. How to convince the sites library to allow "\" character?

So far I am glad that the sites library manages large tables
and the new s.in.dbf seem to work.

It would be very helpful to allow "\" character in a string field.

The '\' is used as an escape, maybe "\\" ??

--
Eric G. Miller <egm2@jps.net>

----------------------------------------
If you want to unsubscribe from GRASS Development Team mailing list write to:
minordomo@geog.uni-hannover.de with
subject 'unsubscribe grass5'

On Sun, Jan 21, 2001 at 02:49:30PM -0800, Eric G . Miller wrote:

On Sun, Jan 21, 2001 at 04:35:25PM +0000, Markus Neteler wrote:
> Hi all,
>
> finally I found the problem with site lists! :slight_smile:
>
> In my table such a string occured:
> @"BB\CF"
>
> The character "\" drives the sites lib crazy. After
> changing it to @"BB/CF" my large table is accepted.
>
> Unfortunately "BB\CF" is German soils terminology (soil types).
> BB/CF is *not* the same as BB\CF, therefore I have to keep
> it. How to convince the sites library to allow "\" character?
>
> So far I am glad that the sites library manages large tables
> and the new s.in.dbf seem to work.
>
> It would be very helpful to allow "\" character in a string field.

The '\' is used as an escape, maybe "\\" ??

Hi Eric,
even \\ is not accepted.

If you look into
libes/gis/sites.c
around line 880 for BSLASH and line 895 you will
find some BSLASH removal. It seems to be even removed, if
the BSLASH doesn't quote " character. I guess that's not
intended.

Markus

----------------------------------------
If you want to unsubscribe from GRASS Development Team mailing list write to:
minordomo@geog.uni-hannover.de with
subject 'unsubscribe grass5'