View Issue Details

IDProjectCategoryView StatusLast Update
0025705Runner[All Projects] FunctionsPublic2017-03-17 11:16
ReporterYellowAfterlifeAssigned ToRussell Kay 
PriorityVery LowSeverityC - GeneralReproducibility100%
Status ClosedResolutionFixed 
PlatformWindowsOSWindows 8OS Version8.1
Product Version 
Target VersionFixed in Version 
Summary0025705: [Windows] Functions: filename_ functions are unaware of regular slashes existing.
Description
var s = "one\two\three/file.ext";
show_debug_message(filename_path(s));
show_debug_message(filename_dir(s));
show_debug_message(filename_name(s));

Displays
one\two\
one\two
three/file.ext

which is mildly inconvenient, considering that non-backslashes are perfectly valid on Windows, and people use them frequently.
Additional InformationHaven't tested other platforms except HTML5, on which the function is not even implemented (for what reason? It's a string operation)

I'll just do filename_*(string_replace_all(path, "/", "\")) for time being I guess.
1.4 Found In7.7.1394
2.x Runtime Found In
2.x Runtime Verified In

Activities

YellowAfterlife

2017-02-17 19:23

Developer  

a_bug.gmz (119,099 bytes)

Russell Kay

2017-02-20 16:21

Manager   ~0051683

Fixed in gitlab - 6366a49 -

Ross Manthorp

2017-03-17 11:15

Adminstrator   ~0052272

Verified. Closing.