[Tfug] UTF in source code?

TR trexx at pobox.com
Sat Oct 2 06:48:12 MST 2010


Generally the code is limited to 8bits,  While character values can be
unicode.

So the code you write cannot have phi the text you work with can.

I have not kept up but this was true a while back.

TR

On Fri, Oct 1, 2010 at 11:50 PM, John Gruenenfelder <johng at as.arizona.edu>wrote:

> Greetings,
>
> I'm in the process of writing my own ray tracer.  Not surprisingly, when
> you
> deal with anything curved, you end up with variables representing phi, pi,
> theta, etc.  Of course, right now I am just spelling them out like that.
>
> But, are a great many programs UTF-8 (or whatever) happy now?  For example,
> I'm writing in EMACS and compiling with g++.  Anybody know if they handle
> UTF
> correctly?
>
> If they do, it would be nice to actually use the pi character and others.
>  I'd
> have to find out how to type these in Emacs properly, but Google can help
> there.  I didn't find much info about UTF-8 support, though.
>
> Anybody tried this?  Or maybe you wrote some code in a foreign language
> (naturally just the comments)?
>
>
> --
> --John Gruenenfelder    Systems Manager, MKS Imaging Technology, LLC.
> Try Weasel Reader for PalmOS (soon for Android) --
> http://weaselreader.org
> "This is the most fun I've had without being drenched in the blood
> of my enemies!"
>        --Sam of Sam & Max
>
> _______________________________________________
> Tucson Free Unix Group - tfug at tfug.org
> Subscription Options:
> http://www.tfug.org/mailman/listinfo/tfug_tfug.org
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://tfug.org/pipermail/tfug_tfug.org/attachments/20101002/83bd6463/attachment-0002.html>


More information about the tfug mailing list