home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / softsys / khoros / 2952 < prev    next >
Encoding:
Internet Message Format  |  1992-11-21  |  2.4 KB

  1. Path: sparky!uunet!spool.mu.edu!uwm.edu!ogicse!mimbres.cs.unm.edu!pprg.unm.edu!daemon
  2. From: young@chama.eece.unm.edu (Mark Young)
  3. Newsgroups: comp.soft-sys.khoros
  4. Subject: cantata save selected glyphs bug (fix)
  5. Message-ID: <41778@pprg.eece.unm.edu.pprg.unm.edu>
  6. Date: 21 Nov 92 18:20:50 GMT
  7. Article-I.D.: pprg.41778
  8. Sender: daemon@pprg.unm.edu
  9. Lines: 60
  10.  
  11. This next bug is compliments of Patrick Haggard.  The problem is
  12. that if you try and save selected glyphs the dialog filename will
  13. not be expanded using vfullpath().  Khoros's vfullpath() routine
  14. is responsible for file expanding "~/","~{username}","${environ}",
  15. etc.  Following is the mail and fix sent to khoros-bugs.
  16.  
  17.         thanks,
  18.             Mark
  19.  
  20.  
  21. Hi Patrick,
  22.  
  23. On Nov 19,  7:15pm, Patrick Haggard wrote:
  24. } Subject: Bug/feature in "save glyphs" dialog box
  25. } From @prg.oxford.ac.uk:ph@physiology.oxford.ac.uk  Thu Nov 19 15:12:37 1992
  26. } To: khoros-bugs@bullwinkle.eece.unm.edu
  27. } Subject: Bug/feature in "save glyphs" dialog box
  28. } Patrick Haggard --- ph@uk.ac.ox.physiol
  29. }     CANTATA
  30. } Bug Description:
  31. } ---------------
  32. }     When using the save glyphs item from the edit menu, you get a
  33. } dialog box to type in a filename.  Typing "~" in this box does not get
  34. } interpreted as $HOME.  In most dialogs (those which use the broswer) ~
  35. } works fine. 
  36. }-- End of excerpt from Patrick Haggard
  37.  
  38.    I looked the problem real fast and you are right.  There is a bug where
  39. the file is not getting expanded before calling the xvl_save_workspace()
  40. routine.  If you want to fix the problem please change the following
  41. code on line 682 of the $KHOROS_HOME/src/xvroutines/cantata/clipboard.c
  42.  
  43. from:
  44.         {
  45.            xvl_save_workspace(workspace, workspace->selected, name, True);
  46.         }
  47.  
  48. to:
  49.         {
  50.            char fullpath[512];
  51.            name = vfullpath(name, NULL, fullpath);
  52.            xvl_save_workspace(workspace, workspace->selected, name, True);
  53.         }
  54.  
  55.  
  56.             thanks for the bug report,
  57.                 Mark
  58.  
  59. ps.  i compiled this and did a quick test so there should be no side
  60.      affects.
  61.  
  62. -----------------------------------------------------------------------------
  63. Mark Young                         young@chama.eece.unm.edu
  64.  
  65. Khoros Group                       (505) 277-6563  (work)
  66. University of New Mexico           Albuquerque,    NM 87131
  67. -----------------------------------------------------------------------------
  68. Humor is something that is plentyful if you are willing to laugh at yourself.
  69.