From: Robert L. <rob...@us...> - 2004-05-11 15:45:44
|
Rick Richardson wrote: > Missing long name output from the attached cache .loc file. > > $ gpsbabel -igeo -f gc55a5.loc > 57.458600N 12.753333E GC55A5/ 0.000000 > > I think its the accented A that is tripping it up. I wouldn't mind > if it were stipped, but right now the whole name is tossed. Ron gets another "told you so" realized. This was wrong the day I checked it in... $ cvs diff util.c Index: util.c =================================================================== RCS file: /cvsroot/gpsbabel/gpsbabel/util.c,v retrieving revision 1.62 diff -p -u -r1.62 util.c --- util.c 16 Apr 2004 15:37:30 -0000 1.62 +++ util.c 11 May 2004 15:42:52 -0000 @@ -772,7 +772,7 @@ char * str_utf8_to_ascii( const char * s if ( *cur & 0x80 ) { int bytes; int value; - char *strvalue = ""; + char *strvalue = NULL; utf8_to_int( cur, &bytes, &value ); switch (value) { case 0x2026: strvalue = "..."; break; |