FLTK logo

STR #741

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 #741

Application:FLTK Library
Status:1 - Closed w/Resolution
Priority:2 - Low, e.g. a documentation error or undocumented side-effect
Scope:2 - Specific to an operating system
Subsystem:Core Library
Summary:fl_filename_relative needs case insensitivity for Windows drive letter
Version:1.1.6
Created By:seeger.cs.unc
Assigned To:mike
Fix Version:1.1.7 (SVN: v4071)
Update Notification:

Receive EMails Don't Receive EMails

Trouble Report Files:

No files


Trouble Report Comments:


Name/Time/Date Text  
 
#1 seeger.cs.unc
11:41 Mar 02, 2005
In MS Windows/VC++7, the fl_filename_relative() function does not return the correct result when the drive letter returned by getcwd() is lowercase and the drive letter in "from" is uppercase.
The problem is in the lines:
  if (*from != *cwd) {
    // Not the same drive...
    strlcpy(to, from, tolen);
    return 0;
  }
This should be changed to something like:
 if (tolower(*from) != tolower(*cwd)) {
    // Not the same drive...
    strlcpy(to, from, tolen);
    return 0;
  }
 
 
#2 mike
15:09 Mar 05, 2005
Fixed in Subversion repository.

 
     

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'.