Re: Unicode filenames with Apple File System and UIManagedDocument

2017-03-30 Thread davelist
> On Mar 23, 2017, at 8:01 PM, davel...@mac.com wrote: > > >> On Mar 23, 2017, at 12:24 PM, David Duncan wrote: >> >> I just want to remind everyone I’m *not* a file system’s engineer – I’m just >> trying to help Dave (and anyone else caught in this) make sure their app can >> find their f

Re: Unicode filenames with Apple File System and UIManagedDocument

2017-03-29 Thread David Duncan
> On Mar 22, 2017, at 2:25 PM, davel...@mac.com wrote: > >> >> On Mar 22, 2017, at 2:00 PM, David Duncan wrote: >> >>> >>> On Mar 22, 2017, at 4:15 AM, davel...@mac.com wrote: >>> On Mar 22, 2017, at 5:05 AM, Alastair Houghton wrote: On 21 Mar 2017, at 20:49, Qui

Re: Unicode filenames with Apple File System and UIManagedDocument

2017-03-29 Thread David Duncan
> On Mar 22, 2017, at 4:15 AM, davel...@mac.com wrote: > >> >> On Mar 22, 2017, at 5:05 AM, Alastair Houghton >> wrote: >> >> On 21 Mar 2017, at 20:49, Quincey Morris >> wrote: >>> >>> On Mar 20, 2017, at 14:23 , davel...@mac.com wrote: "iOS HFS Normalized UNICODE names , APFS n

Re: Unicode filenames with Apple File System and UIManagedDocument

2017-03-23 Thread davelist
> On Mar 23, 2017, at 12:24 PM, David Duncan wrote: > > I just want to remind everyone I’m *not* a file system’s engineer – I’m just > trying to help Dave (and anyone else caught in this) make sure their app can > find their files. > >> On Mar 23, 2017, at 1:53 AM, Alastair Houghton >> wrot

Re: Unicode filenames with Apple File System and UIManagedDocument

2017-03-23 Thread Alastair Houghton
On 23 Mar 2017, at 17:57, Ed Wynne wrote: > >> Shouldn’t the VFS layer actually be doing this? It is part of its whole >> raison d’être, no? Just have -[NSURL fileSystemRepresentation] normalize >> things according to the correct Unicode rules, and let the VFS layer >> translate that to HFS+’s

Re: Unicode filenames with Apple File System and UIManagedDocument

2017-03-23 Thread Jens Alfke
> On Mar 22, 2017, at 2:25 PM, davel...@mac.com wrote: > > "Engineering has the following feedback for you: > > iOS HFS Normalized UNICODE names , APFS now treats all files as a bag of > bytes on iOS . We are requesting that Applications developers call the > correct Normalization routines to

Re: Unicode filenames with Apple File System and UIManagedDocument

2017-03-23 Thread Ed Wynne
> On Mar 23, 2017, at 1:40 PM, Charles Srstka wrote: > >> On Mar 23, 2017, at 3:50 AM, Alastair Houghton >> wrote: >> >> On 22 Mar 2017, at 19:13, Chris Ridd > > wrote: >>> On 22 Mar 2017, at 09:05, Alastair Houghton >>> > w

Re: Unicode filenames with Apple File System and UIManagedDocument

2017-03-23 Thread Charles Srstka
> On Mar 23, 2017, at 3:50 AM, Alastair Houghton > wrote: > > On 22 Mar 2017, at 19:13, Chris Ridd > wrote: >> >>> On 22 Mar 2017, at 09:05, Alastair Houghton >> > wrote: >>> >>> In the context of filesystems (and specifically fil

Re: Unicode filenames with Apple File System and UIManagedDocument

2017-03-23 Thread David Duncan
I just want to remind everyone I’m *not* a file system’s engineer – I’m just trying to help Dave (and anyone else caught in this) make sure their app can find their files. > On Mar 23, 2017, at 1:53 AM, Alastair Houghton > wrote: > > On 22 Mar 2017, at 18:00, David Duncan wrote: >> >> So th

Re: Unicode filenames with Apple File System and UIManagedDocument

2017-03-23 Thread Alastair Houghton
On 22 Mar 2017, at 18:00, David Duncan wrote: > > So there was another explanation posted on the bug that I’m not certain you > got, but which I think may explain. > > Basically the concept is that since APFS doesn’t normalize file names, if you > store file names in some other storage (say in

Re: Unicode filenames with Apple File System and UIManagedDocument

2017-03-23 Thread Alastair Houghton
On 22 Mar 2017, at 19:13, Chris Ridd wrote: > >> On 22 Mar 2017, at 09:05, Alastair Houghton >> wrote: >> >> In the context of filesystems (and specifically filenames), the phrases “bag >> of bytes” and “bunch of bytes” have a fairly specific meaning. The point is >> that the filesystem doe

Re: Unicode filenames with Apple File System and UIManagedDocument

2017-03-22 Thread Quincey Morris
On Mar 22, 2017, at 14:25 , davel...@mac.com wrote: > > On Mar 22, 2017, at 2:00 PM, David Duncan > wrote: >> >> So there was another explanation posted on the bug that I’m not certain you >> got, but which I think may explain. >> >> Basically the concept is that

Re: Unicode filenames with Apple File System and UIManagedDocument

2017-03-22 Thread davelist
> On Mar 22, 2017, at 2:00 PM, David Duncan wrote: > >> >> On Mar 22, 2017, at 4:15 AM, davel...@mac.com wrote: >> >>> >>> On Mar 22, 2017, at 5:05 AM, Alastair Houghton >>> wrote: >>> >>> On 21 Mar 2017, at 20:49, Quincey Morris >>> wrote: On Mar 20, 2017, at 14:23 , davel...

Re: Unicode filenames with Apple File System and UIManagedDocument

2017-03-22 Thread Chris Ridd
> On 22 Mar 2017, at 09:05, Alastair Houghton > wrote: > > In the context of filesystems (and specifically filenames), the phrases “bag > of bytes” and “bunch of bytes” have a fairly specific meaning. The point is > that the filesystem doesn’t inspect the bytes it’s given, and doesn’t care

Re: Unicode filenames with Apple File System and UIManagedDocument

2017-03-22 Thread davelist
> On Mar 22, 2017, at 5:05 AM, Alastair Houghton > wrote: > > On 21 Mar 2017, at 20:49, Quincey Morris > wrote: >> >> On Mar 20, 2017, at 14:23 , davel...@mac.com wrote: >>> >>> "iOS HFS Normalized UNICODE names , APFS now treats all file[ name]s as a >>> bag of bytes on iOS . We are reque

Re: Unicode filenames with Apple File System and UIManagedDocument

2017-03-22 Thread Alastair Houghton
On 21 Mar 2017, at 20:49, Quincey Morris wrote: > > On Mar 20, 2017, at 14:23 , davel...@mac.com wrote: >> >> "iOS HFS Normalized UNICODE names , APFS now treats all file[ name]s as a >> bag of bytes on iOS . We are requesting that Applications developers call >> the correct Normalization rou

Re: Unicode filenames with Apple File System and UIManagedDocument

2017-03-21 Thread Quincey Morris
On Mar 20, 2017, at 14:23 , davel...@mac.com wrote: > > "iOS HFS Normalized UNICODE names , APFS now treats all file[ name]s as a bag > of bytes on iOS . We are requesting that Applications developers call the > correct Normalization routines to make sure the file name contains the > correct re

Re: Unicode filenames with Apple File System and UIManagedDocument

2017-03-21 Thread Alastair Houghton
On 21 Mar 2017, at 12:33, Jean-Daniel wrote: > > This is what the reply suggest but that make no sens for me. If you are > accessing the file using URL, that the work of the framework to convert the > URL into the right file system representation. Agreed, IMO the framework should be responsibl

Re: Unicode filenames with Apple File System and UIManagedDocument

2017-03-21 Thread Charles Srstka
> On Mar 21, 2017, at 9:13 AM, davel...@mac.com wrote: > >> >> On Mar 21, 2017, at 8:33 AM, Jean-Daniel > > wrote: >> >> >>> Le 21 mars 2017 à 12:03, davel...@mac.com a écrit : >>> On Mar 21, 2017, at 1:06 AM, Jens Alfke wrote: > On Mar

Re: Unicode filenames with Apple File System and UIManagedDocument

2017-03-21 Thread Giacomo Tufano
If Apple Support says (as It said) "iOS HFS Normalized UNICODE names , APFS now treats all files as a bag of bytes on iOS . We are requesting that Applications developers call the correct Normalization routines to make sure the file name contains the correct representation.” then I think that th

Re: Unicode filenames with Apple File System and UIManagedDocument

2017-03-21 Thread davelist
> On Mar 21, 2017, at 8:33 AM, Jean-Daniel wrote: > > >> Le 21 mars 2017 à 12:03, davel...@mac.com a écrit : >> >>> >>> On Mar 21, 2017, at 1:06 AM, Jens Alfke wrote: >>> >>> On Mar 20, 2017, at 2:23 PM, davel...@mac.com wrote: NSURL *url = [[self courseDirectory] URLByAppe

Re: Unicode filenames with Apple File System and UIManagedDocument

2017-03-21 Thread Aandi Inston
Is the question, what is canonical mapping? I'm going to assume it is, so I can share what I found when I hit much the same issue. This is mostly from memory so let's hope it's right. Take the word Café. How many Unicode characters is this and what are they? Turns out there are two answers. The la

Re: Unicode filenames with Apple File System and UIManagedDocument

2017-03-21 Thread Jean-Daniel
> Le 21 mars 2017 à 12:03, davel...@mac.com a écrit : > >> >> On Mar 21, 2017, at 1:06 AM, Jens Alfke wrote: >> >> >>> On Mar 20, 2017, at 2:23 PM, davel...@mac.com wrote: >>> >>> NSURL *url = [[self courseDirectory] URLByAppendingPathComponent:name]; >> >> There’s nothing wrong with that c

Re: Unicode filenames with Apple File System and UIManagedDocument

2017-03-21 Thread davelist
> On Mar 21, 2017, at 1:06 AM, Jens Alfke wrote: > > >> On Mar 20, 2017, at 2:23 PM, davel...@mac.com wrote: >> >> NSURL *url = [[self courseDirectory] URLByAppendingPathComponent:name]; > > There’s nothing wrong with that call; it’s the canonical way to add a path > component to a URL, file

Re: Unicode filenames with Apple File System and UIManagedDocument

2017-03-20 Thread Jens Alfke
> On Mar 20, 2017, at 2:23 PM, davel...@mac.com wrote: > > NSURL *url = [[self courseDirectory] URLByAppendingPathComponent:name]; There’s nothing wrong with that call; it’s the canonical way to add a path component to a URL, filesystem or not. > NSURL *url = [NSURL fileURLWithFileSystemRepres

Re: Unicode filenames with Apple File System and UIManagedDocument

2017-03-20 Thread Jean-Daniel
> Le 7 mars 2017 à 21:03, davel...@mac.com a écrit : > >> >> On Mar 7, 2017, at 1:19 PM, Alastair Houghton >> wrote: >> >> On 7 Mar 2017, at 12:47, Jean-Daniel wrote: >>> >>> Did you try to use NSString -fileSystemRepresentation instead of UTF-8, or >>> even better, use URL. While using UT

Re: Unicode filenames with Apple File System and UIManagedDocument

2017-03-20 Thread davelist
eady covered in the lost beginning of this thread. >> >> Cheers, >> -- Uli Kusterer >> "The Witnesses of TeachText are everywhere..." >> http://www.zathras.de >> >>> On 8 Mar 2017, at 22:35, Peter Edberg wrote: >>&g

Re: Unicode filenames with Apple File System and UIManagedDocument

2017-03-12 Thread davelist
12:00 PM, cocoa-dev-requ...@lists.apple.com wrote: >>> >>> Message: 1 >>> Date: Tue, 07 Mar 2017 15:03:41 -0500 >>> From: davel...@mac.com >>> To: Alastair Houghton , David Duncan >>> >>> Cc: cocoa-dev list >>> Subject: Re

Re: Unicode filenames with Apple File System and UIManagedDocument

2017-03-12 Thread Uli Kusterer
>> Message: 1 >> Date: Tue, 07 Mar 2017 15:03:41 -0500 >> From: davel...@mac.com >> To: Alastair Houghton , David Duncan >> >> Cc: cocoa-dev list >> Subject: Re: Unicode filenames with Apple File System and >> UIManagedDocument >&g

Re: Unicode filenames with Apple File System and UIManagedDocument

2017-03-11 Thread davelist
> On Mar 9, 2017, at 7:31 AM, Chris Ridd wrote: > > >> On 8 Mar 2017, at 22:56, Peter Edberg wrote: >> >>> >>> On Mar 8, 2017, at 1:44 PM, David Reed wrote: >>> >>> Thanks Peter. >>> >>> I am going to try to find time in the next few days to file a bug report. >>> I'll obviously include

Re: Unicode filenames with Apple File System and UIManagedDocument

2017-03-09 Thread Chris Ridd
> On 8 Mar 2017, at 22:56, Peter Edberg wrote: > >> >> On Mar 8, 2017, at 1:44 PM, David Reed wrote: >> >> Thanks Peter. >> >> I am going to try to find time in the next few days to file a bug report. >> I'll obviously include this information. Is there anything else you think I >> should

Re: Unicode filenames with Apple File System and UIManagedDocument

2017-03-08 Thread Peter Edberg
2017 15:03:41 -0500 >>> From: davel...@mac.com >>> To: Alastair Houghton , David Duncan >>> >>> Cc: cocoa-dev list >>> Subject: Re: Unicode filenames with Apple File System and >>> UIManagedDocument >>> >>> >&

Re: Unicode filenames with Apple File System and UIManagedDocument

2017-03-08 Thread davelist
> On Mar 8, 2017, at 4:35 PM, Peter Edberg wrote: > > >> On Mar 8, 2017, at 12:00 PM, cocoa-dev-requ...@lists.apple.com wrote: >> >> >> My app has the option to zip up the directories UIManagedDocument creates >> and email it (so users can back up their data or share it with others). The

Re: Unicode filenames with Apple File System and UIManagedDocument

2017-03-08 Thread Peter Edberg
> On Mar 8, 2017, at 12:00 PM, cocoa-dev-requ...@lists.apple.com wrote: > > Message: 1 > Date: Tue, 07 Mar 2017 15:03:41 -0500 > From: davel...@mac.com > To: Alastair Houghton , David Duncan > > Cc: cocoa-dev list > Subject: Re: Unicode filenames

Re: Unicode filenames with Apple File System and UIManagedDocument

2017-03-07 Thread davelist
> On Mar 7, 2017, at 1:19 PM, Alastair Houghton > wrote: > > On 7 Mar 2017, at 12:47, Jean-Daniel wrote: >> >> Did you try to use NSString -fileSystemRepresentation instead of UTF-8, or >> even better, use URL. While using UTF-8 for path worked well on HFS+, It was >> never guaranteed to wo

Re: Unicode filenames with Apple File System and UIManagedDocument

2017-03-07 Thread Alastair Houghton
On 7 Mar 2017, at 12:47, Jean-Daniel wrote: > > Did you try to use NSString -fileSystemRepresentation instead of UTF-8, or > even better, use URL. While using UTF-8 for path worked well on HFS+, It was > never guaranteed to work on all FS. FWIW, the macOS kernel does use UTF-8 at the VFS inter

Re: Unicode filenames with Apple File System and UIManagedDocument

2017-03-07 Thread Alastair Houghton
On 7 Mar 2017, at 18:00, Jens Alfke wrote: > > On Mar 7, 2017, at 8:13 AM, davel...@mac.com wrote: >> >> NSFileManager *fm = [[NSFileManager alloc] init]; >> const char *data = [name fileSystemRepresentation]; >> NSString *filename = [fm stringWithFileSystemRepresentation:data >> length:s

Re: Unicode filenames with Apple File System and UIManagedDocument

2017-03-07 Thread Jens Alfke
> On Mar 7, 2017, at 8:13 AM, davel...@mac.com wrote: > >NSFileManager *fm = [[NSFileManager alloc] init]; >const char *data = [name fileSystemRepresentation]; >NSString *filename = [fm stringWithFileSystemRepresentation:data > length:strlen(data)]; This is a no-op, since you’re cal

Re: Unicode filenames with Apple File System and UIManagedDocument

2017-03-07 Thread davelist
> On Mar 7, 2017, at 9:55 AM, davel...@mac.com wrote: > > >> On Mar 7, 2017, at 7:47 AM, Jean-Daniel wrote: >> >> >>> Le 6 mars 2017 à 14:28, davel...@mac.com a écrit : >>> >>> I have an iOS app (Attendance2) written in Objective-C. One of my users >>> upgraded to the public 10.3 iOS beta a

Re: Unicode filenames with Apple File System and UIManagedDocument

2017-03-07 Thread davelist
> On Mar 7, 2017, at 7:47 AM, Jean-Daniel wrote: > > >> Le 6 mars 2017 à 14:28, davel...@mac.com a écrit : >> >> I have an iOS app (Attendance2) written in Objective-C. One of my users >> upgraded to the public 10.3 iOS beta and reported he could no longer open >> his documents (I have a sub

Re: Unicode filenames with Apple File System and UIManagedDocument

2017-03-07 Thread Jean-Daniel
> Le 6 mars 2017 à 14:28, davel...@mac.com a écrit : > > I have an iOS app (Attendance2) written in Objective-C. One of my users > upgraded to the public 10.3 iOS beta and reported he could no longer open his > documents (I have a subclass of UIManagedDocument so they are Core Data files > sto

Re: Unicode filenames with Apple File System and UIManagedDocument

2017-03-06 Thread Jens Alfke
> On Mar 6, 2017, at 3:45 PM, davel...@mac.com wrote: > > If I had the time and could easily do that, I would but pairing my app down > to just the minimal parts would be time consuming. Please at least file the bug report, even if you can’t include a reproducible case. It’s very important tha

Re: Unicode filenames with Apple File System and UIManagedDocument

2017-03-06 Thread davelist
> On Mar 6, 2017, at 5:10 PM, David Duncan wrote: > >> >> On Mar 6, 2017, at 2:05 PM, davel...@mac.com wrote: >> >>> >>> On Mar 6, 2017, at 12:37 PM, Chris Ridd wrote: >>> >>> On 6 Mar 2017, at 13:28, davel...@mac.com wrote: I have an iOS app (Attendance2) written in Object

Re: Unicode filenames with Apple File System and UIManagedDocument

2017-03-06 Thread David Duncan
> On Mar 6, 2017, at 2:05 PM, davel...@mac.com wrote: > >> >> On Mar 6, 2017, at 12:37 PM, Chris Ridd wrote: >> >> >>> On 6 Mar 2017, at 13:28, davel...@mac.com wrote: >>> >>> I have an iOS app (Attendance2) written in Objective-C. One of my users >>> upgraded to the public 10.3 iOS beta an

Re: Unicode filenames with Apple File System and UIManagedDocument

2017-03-06 Thread davelist
> On Mar 6, 2017, at 12:37 PM, Chris Ridd wrote: > > >> On 6 Mar 2017, at 13:28, davel...@mac.com wrote: >> >> I have an iOS app (Attendance2) written in Objective-C. One of my users >> upgraded to the public 10.3 iOS beta and reported he could no longer open >> his documents (I have a subcl

Re: Unicode filenames with Apple File System and UIManagedDocument

2017-03-06 Thread Chris Ridd
> On 6 Mar 2017, at 13:28, davel...@mac.com wrote: > > I have an iOS app (Attendance2) written in Objective-C. One of my users > upgraded to the public 10.3 iOS beta and reported he could no longer open his > documents (I have a subclass of UIManagedDocument so they are Core Data files > store

Unicode filenames with Apple File System and UIManagedDocument

2017-03-06 Thread davelist
I have an iOS app (Attendance2) written in Objective-C. One of my users upgraded to the public 10.3 iOS beta and reported he could no longer open his documents (I have a subclass of UIManagedDocument so they are Core Data files stored in the package/directory format that UIManagedDocument uses).