[Thread Prev][Thread Next][Thread Index]

Bug in SyncMemo



Hi

  I installed PilotManager on GNU/Linux which ran perfect from the
beginning.  Well, almost... There seems to be a problem with SyncMemo
and German category names.  The "unfiled" category reads "Nicht
abgelegt" in German (not the space).  SyncMemo seems to choke on
the space, it tries to stat "Nicht", then "abgelegt/<somefile>" and
by not beeing able to stat the file it deletes the Memo on the Palm.

  Net result:  No more Memos on the Palm...  But fortunately we have
a backup conduit with PilotManager.

  The attached patch will fix this problem by changing all occurencies
of whitespace in category names to an underscore.

Regards,
Marc


-- 
/"\  ------ ASCII Ribbon Campaign - Say NO to HTML in email and news
\ /  Marc Balmer, Micro Systems, Kannenfeldstrasse 32, CH-4056 Basel
 x   Tel. +41 61 383 05 10, Fax 383 05 12, http://www.msys.ch/~marc/    
/ \  (Get the CA certificate for this email from http://ca.msys.ch/)
*** SyncMemo.pm	Thu Mar 25 00:00:00 1999
--- SyncMemo.pm.new	Tue Jan  4 08:09:23 2000
***************
*** 795,801 ****
  		    mkdir($file, 0755) unless (-d $file);
  		    $fname = &makeFilename($pilot{$i});
  		    $fname =~ s/\n.*//g;
! 		    $fname =~ tr| '"<>()[]/;\n|____________|s;
  		    $file = $fname = &mktemp(($a1=$file), $fname);
  		    if (open(FD, ">$file"))
  		    {
--- 795,801 ----
  		    mkdir($file, 0755) unless (-d $file);
  		    $fname = &makeFilename($pilot{$i});
  		    $fname =~ s/\n.*//g;
! 		    $fname =~ tr| '"<>()[]/;\n |_____________|s;
  		    $file = $fname = &mktemp(($a1=$file), $fname);
  		    if (open(FD, ">$file"))
  		    {

SourceForge.net Logo