FLTK logo

STR #224

FLTK matrix user chat room
(using Element browser app)   FLTK gitter user chat room   GitHub FLTK Project   FLTK News RSS Feed  
  FLTK Apps      FLTK Library      Forums      Links     Login 
 Home  |  Articles & FAQs  |  Bugs & Features  |  Documentation  |  Download  |  Screenshots  ]
 

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:

Receive EMails Don't Receive EMails

Trouble Report Files:

No files


Trouble Report Comments:


Name/Time/Date Text  
 
#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 ]

 
 

Comments are owned by the poster. All other content is copyright 1998-2024 by Bill Spitzak and others. This project is hosted by The FLTK Team. Please report site problems to 'erco@seriss.com'.