9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* [9fans] UTF and the preprocessor
@ 2009-03-30 15:30 hugo rivera
  2009-03-30 15:45 ` andrey mirtchovski
  2009-03-30 18:55 ` erik quanstrom
  0 siblings, 2 replies; 3+ messages in thread
From: hugo rivera @ 2009-03-30 15:30 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

Hi there,
I just found out that the preprocessor on plan 9 doesn't like utf. I
hope I am wrong, but just try to compile something like

# include <u.h>
# include <libc.h>

# define ΓVAL 12

void main(void);

void
main()
{
	int β;

	β = ΓVAL;
	while(β < 15)
		print("%d\n", β++);
	exits(nil);
}

and you get a "syntax in #define" error that points to the define
line. Remove (or replace) the utf character and everything works as
expected.
-- 
Hugo



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2009-03-30 18:55 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-03-30 15:30 [9fans] UTF and the preprocessor hugo rivera
2009-03-30 15:45 ` andrey mirtchovski
2009-03-30 18:55 ` erik quanstrom

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).