libs-base/config/config.constant-string-encoding.c
rfm 347d6b4e26 Add checks for compiler support for unicode string literals
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@34239 72102866-910b-0410-8b05-ffd578937521
2011-12-02 11:21:45 +00:00

20 lines
438 B
C

/*
Copyright (C) 2011 Free Software Foundation
Copying and distribution of this file, with or without modification,
are permitted in any medium without royalty provided the copyright
notice and this notice are preserved.
*/
int main ()
{
/* Check that latin1 pound sign in source is utf8 in executable
*/
const unsigned char *str = "£";
if (str[0] != 0xc2 || str[1] != 0xa3)
{
return 1;
}
return 0;
}