You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[CF] TARGET_OS_BSD for FS representation behavior.
CFURLGetFileSystemRepresentation's implementation has TARGET_OS_MAC and
TARGET_OS_LINUX, but not TARGET_OS_BSD. Nothing here appears macOS or
Linux specific, and things seem to work okay with TARGET_OS_BSD, so
enable it here too.
This also requires CanonicalFileURLStringToFileSystemRepresentation to
be exposed.
CFIndexnumConverted=CFStringGetBytes(path, CFRangeMake(0, pathLen), CFStringFileSystemEncoding(), 0, true, buffer, bufLen-1, &usedLen); // -1 because we need one byte to zero-terminate.
4548
+
CFRelease(path);
4549
+
if (numConverted==pathLen) {
4550
+
buffer[usedLen] ='\0';
4551
+
return true;
4552
+
}
4553
+
}
4554
+
#else
4544
4555
if ( !resolveAgainstBase|| (CFURLGetBaseURL(url) ==NULL) ) {
CFIndexnumConverted=CFStringGetBytes(path, CFRangeMake(0, pathLen), CFStringFileSystemEncoding(), 0, true, buffer, bufLen-1, &usedLen); // -1 because we need one byte to zero-terminate.
0 commit comments