| [ Return to Bugs & Features | Roadmap 1.1 | SVN ⇄ GIT ]
STR #224
Application: | FLTK Library |
Status: | 1 - Closed w/Resolution |
Priority: | 2 - Low, e.g. a documentation error or undocumented side-effect |
Scope: | 3 - Applies to all machines and operating systems |
Subsystem: | Core Library |
Summary: | result wrong when "from" and current working directory are the same in filename_absolute.cxx:fl_filename_relative() |
Version: | 1.1.4 |
Created By: | dmoos.esigma-systems |
Assigned To: | mike |
Fix Version: | 1.1.5rc1 |
Update Notification: | |
Trouble Report Files:
No files
Trouble Report Comments:
|
#1 | dmoos.esigma-systems 08:26 Dec 01, 2003 |
| When filename_absolute.cxx:fl_filename_relative() is called with the parameter "from" set to the current directory, the result is the last path-component/directory-name of the absolute path of the current directory, which is (IMHO) wrong. The result should be ".". As a quick and dirty hack, i strcmp() "from" and the result of getcwd() and if they are equal (== 0), i return "." in the parameter "to".
The faulty behaviour has an impact on fl_dir_chooser() with the parameter "relative" set to "1".
| |
|
#2 | mike 21:09 Mar 10, 2004 |
| Fixed in CVS for 1.1.5. | |
[ Return to Bugs & Features ]
|
| |