]> git.saurik.com Git - apple/hfs.git/commitdiff
hfs-116.14.tar.gz mac-os-x-1025 mac-os-x-1026 mac-os-x-1027 mac-os-x-1028 mac-os-x-1028g5 v116.14
authorApple <opensource@apple.com>
Mon, 17 Mar 2003 21:38:16 +0000 (21:38 +0000)
committerApple <opensource@apple.com>
Mon, 17 Mar 2003 21:38:16 +0000 (21:38 +0000)
hfs_util/Info.plist
hfs_util/hfsutil_main.c

index f794579543f78113a7e4fa3716c09eefcc453044..61638f322295e7e6971a184006b94e7723100d12 100644 (file)
@@ -13,7 +13,7 @@
        <key>CFBundlePackageType</key>
        <string>fs  </string>
        <key>CFBundleShortVersionString</key>
-       <string>1.2</string>
+       <string>1.2.1</string>
        <key>CFBundleSignature</key>
        <string>????</string>
        <key>CFBundleVersion</key>
index 4b0520203cf0c5c1c9a253cfa750387949b48a53..49ac43929140254ff187e5fd12cfc8f6e8591c14 100644 (file)
@@ -188,6 +188,7 @@ static int  ReadFile(int fd, void *buffer, off_t offset, ssize_t length,
 static ssize_t readAt( int fd, void * buf, off_t offset, ssize_t length );
 static ssize_t writeAt( int fd, void * buf, off_t offset, ssize_t length );
 
+CF_EXPORT Boolean _CFStringGetFileSystemRepresentation(CFStringRef string, UInt8 *buffer, CFIndex maxBufLen);
 
 /*
  * The fuction CFStringGetSystemEncoding does not work correctly in
@@ -547,8 +548,7 @@ DoProbe(char *deviceNamePtr)
                encoding = CFStringGetSystemEncoding();
                cfstr = CFStringCreateWithPascalString(kCFAllocatorDefault,
                            mdbPtr->drVN, encoding);
-               cfOK = CFStringGetCString(cfstr, volnameUTF8, NAME_MAX,
-                           kCFStringEncodingUTF8);
+               cfOK = _CFStringGetFileSystemRepresentation(cfstr, volnameUTF8, NAME_MAX);
                CFRelease(cfstr);
 
                if (!cfOK && encoding != kCFStringEncodingMacRoman) {
@@ -556,8 +556,7 @@ DoProbe(char *deviceNamePtr)
                        /* default to MacRoman on conversion errors */
                        cfstr = CFStringCreateWithPascalString(kCFAllocatorDefault,
                                    mdbPtr->drVN, kCFStringEncodingMacRoman);
-                       CFStringGetCString(cfstr, volnameUTF8, NAME_MAX,
-                           kCFStringEncodingUTF8);
+                       _CFStringGetFileSystemRepresentation(cfstr, volnameUTF8, NAME_MAX);
                        CFRelease(cfstr);
                }