Re: Not so long filenames
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