Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: file to uri to file madness




On 25 Aug 2006, at 00:12, Larry Nussbaum wrote:

Thanks for the link & code sample - I'll give it a whirl this weekend when I have a moment to analyze and test properly.

Here's another code sample, this time in C. It shows that the same problem occurs with fopen

#include <stdio.h>

static void testFile( char *s ) {
    FILE *f = fopen(s, "r");
    printf( "%s: %s\n", s, f != NULL ? "SUCCESS" : "FAIL" );
    if ( f )
        fclose( f );
}

int main (int argc, const char * argv[]) {
    // Plain 'e'
    testFile("e.html");

    // Composed
    testFile("\u00e9.html");
    testFile("\u00e9\u00e9.html");
    testFile("\u00e9\u00e9\u00e9.html");

    

    // Deomposed41
    testFile("e\u0301.html");
    testFile("e\u0301e\u0301.html");
    testFile("e\u0301e\u0301e\u0301.html");

    return 0;
}

Results;

e.html: SUCCESS
é.html: SUCCESS
éé.html: SUCCESS
ééé.html: FAIL
é.html: SUCCESS
éé.html: SUCCESS
ééé.html: SUCCESS

I've filed a bug as rdar://4700398

Jerry

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Java-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/java-dev/email@hidden

This email sent to email@hidden

References: 
 >Re: file to uri to file madness (From: François-Paul Servant <email@hidden>)
 >Re: file to uri to file madness (From: Jerry <email@hidden>)
 >Re: file to uri to file madness (From: Larry Nussbaum <email@hidden>)
 >Re: file to uri to file madness (From: Larry Nussbaum <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.