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: How to use Unicode with Carbon



On 6/12/07, Larry <email@hidden> wrote:
To be honest, and with all due respect to your personal choice, I
look at your code and think "This is Pascal. I don't want to spend
time reading Pascal."

You don't need to answer my questions if you don't want to.

I can live better without comments with prejudice. Do you really think
this kind of comment is addequate on a technical discussion?

I will avoid commenting further because this can only lead away from my problem.

I can't help but wonder why you want to do this. Hardcoding strings
the way you have in your example is considered bad practice.

This is just an example program to illustrate the problem. The code it contains comes from a huge application (hundreds of thousends of lines of code), so I tryed to simplify the problem.

I seem
to recall that you want to do this will strings supplied at runtime,
which could behave differently than strings you're hardcoding if your
compiler doesn't handle them the way you expect.

The compiler does not modify my strings AFAIK. Just to be extra sure, I will build a software to print my string byte-by-byte, so I am 100% sure he really didn't modify it. FPC doesn't care which encoding I use. I've already written lot's of UTF-8 programs with Free Pascal, and never had any problems. The only difference is that they were running on Windows, Linux, FreeBSD and Windows CE.

thanks,
--
Felipe Monteiro de Carvalho
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Carbon-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/carbon-dev/email@hidden

This email sent to email@hidden
References: 
 >How to use Unicode with Carbon (From: "Felipe Monteiro de Carvalho" <email@hidden>)
 >Re: How to use Unicode with Carbon (From: David Duncan <email@hidden>)
 >Re: How to use Unicode with Carbon (From: "Felipe Monteiro de Carvalho" <email@hidden>)
 >Re: How to use Unicode with Carbon (From: Jon Guyer <email@hidden>)
 >Re: How to use Unicode with Carbon (From: "Felipe Monteiro de Carvalho" <email@hidden>)
 >Re: How to use Unicode with Carbon (From: Eric Schlegel <email@hidden>)
 >Re: How to use Unicode with Carbon (From: "Felipe Monteiro de Carvalho" <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.