~ubuntu-branches/ubuntu/trusty/gnustep-base/trusty

« back to all changes in this revision

Viewing changes to config/config.constant-string-encoding.c

  • Committer: Package Import Robot
  • Author(s): Benjamin Drung
  • Date: 2012-11-21 13:56:22 UTC
  • mfrom: (8.1.5 experimental)
  • Revision ID: package-import@ubuntu.com-20121121135622-1w035dpxneardw8q
Tags: 1.24.0-1ubuntu1
Backport upstream fix for recent libxml2.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* 
 
2
  Copyright (C) 2011 Free Software Foundation
 
3
 
 
4
  Copying and distribution of this file, with or without modification,
 
5
  are permitted in any medium without royalty provided the copyright
 
6
  notice and this notice are preserved.
 
7
 
 
8
*/
 
9
 
 
10
int main ()
 
11
{
 
12
  /* Check that latin1 pound sign in source is utf8 in executable
 
13
   */
 
14
  const unsigned char *str = "�";
 
15
  if (str[0] != 0xc2 || str[1] != 0xa3)
 
16
    {
 
17
      return 1;
 
18
    }
 
19
  return 0;
 
20
}