FLTK logo

Re: [fltk/fltk] fl_filename_absolute mishandles double-backslash on Windows (#141)

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 
 All Forums  |  Back to fltk.issues  ]
 
Previous Message ]New Message | Reply ]Next Message ]

Re: [fltk/fltk] fl_filename_absolute mishandles double-backslash on Windows (#141) erco77 Sep 20, 2020  
 

It's so trivial to replace fronts <-> backs that no one bothers to report it, but it probably gets through beta testing unnoticed, eventually a customer notices a problem, the programmer provides a way to normalize the paths and releases a fix.

Being undocumented, it's a pitfall waiting to happen. If we at least document it, it could save the programmer a fix cycle.

Documenting might be as simple as "Under Microsoft Windows, slashes in the path returned may have fronts or backs or a mix of both, depending on circumstances", or we can force the slashes as fronts or backs (not sure which is best) and documenting that. We should probably be clear one way or the other.


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or unsubscribe.

Direct Link to Message ]
 
     
Previous Message ]New Message | Reply ]Next Message ]
 
 

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