• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Not so long filenames
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Not so long filenames


  • Subject: Re: Not so long filenames
  • From: "Gerriet M. Denkmann" <email@hidden>
  • Date: Tue, 14 Oct 2008 22:00:11 +0200


On 14 Oct 2008, at 18:07, Jason Coco wrote:


On Oct 14, 2008, at 11:28 , Gerriet M. Denkmann wrote:

HFS+ and Finder can use filenames which use in Utf-16 up to 255 shorts.

But in the program below there seems to exist some other limit (at least on 10.4.11 Tiger).
Where is this documented?
Or what am I doing wong?


... Filewrapper has preferred filename with 128 shorts in Utf16; Utf8 of fileSystemRepresentation has 256 bytes
... Error: writeToFile
Filename has exited with status 2.

I'm not really sure, but one thing I noticed right away is that 256 > 255...

This is absolutely correct: 256 is greater than 255.
But the filename is 128 shorts in Utf-16 (and you might have noticed that 128 ≤ 255 ) and can be used in Finder and HFS+ can store it.


So again my question: why it is too long in this context and where is this documented?


Kind regards,

Gerriet.

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Not so long filenames
      • From: "Chris Suter" <email@hidden>
References: 
 >Not so long filenames (From: "Gerriet M. Denkmann" <email@hidden>)
 >Re: Not so long filenames (From: Jason Coco <email@hidden>)

  • Prev by Date: Re: EXC_BAD_ACCESS with NSAutoReleasePool, NSThread and NSThreadWillExitNotification
  • Next by Date: Re: Not so long filenames
  • Previous by thread: Re: Not so long filenames
  • Next by thread: Re: Not so long filenames
  • Index(es):
    • Date
    • Thread