Trond Myklebust wrote: > On Fri, 2007-08-31 at 10:08 -0400, Chuck Lever wrote: > >>> >>> +/* >>> + * RFC1833/RFC3530 rpcbind (v3+) well-known netid's. >>> + */ >>> +#define RPCB_NETID_UDP "\165\144\160" /* "udp" */ >>> +#define RPCB_NETID_TCP "\164\143\160" /* "tcp" */ >>> +#define RPCB_NETID_UDP6 "\165\144\160\066" /* "udp6" */ >>> +#define RPCB_NETID_TCP6 "\164\143\160\066" /* "tcp6" */ > > BTW: Any reason why we are using escaped octal instead of plain ascii > here? In other words, I'm not smart enough to do this any other way. :-/ If there's a nice C construct that gives us guaranteed US-ASCII strings no matter what the locale then I'd love to learn it.