Re: [PATCH] esx: Handle name escaping properly

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 10/13/2010 07:19 AM, Daniel Veillard wrote:
+    { "AìZ", "A+7L+A-Z" },

   Ouch :-)
One question for the C purists. How do we know how characters outside of
the ASCII range may be interpreted by a compiler ?

Until C+1x is finalized, we cannot rely on the new Unicode string literals U"xxx". So, the only portable way in C89 or C99 to encode byte sequences is with octal or hex escapes, rather than via literal characters. Daniel is right that you cannot portably have 8-bit bytes in C source code, because the compilation is then locale-dependent, and will do different things depending not only on the compiler, but on the locale of the person doing the compilation.

--
Eric Blake   eblake@xxxxxxxxxx    +1-801-349-2682
Libvirt virtualization library http://libvirt.org

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list



[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]