/[pcre]/code/trunk/pcre_printint.src
ViewVC logotype

Diff of /code/trunk/pcre_printint.src

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 106 by nigel, Fri Mar 2 13:10:43 2007 UTC revision 107 by ph10, Wed Mar 7 11:02:28 2007 UTC
# Line 71  print_char(FILE *f, uschar *ptr, BOOL ut Line 71  print_char(FILE *f, uschar *ptr, BOOL ut
71  {  {
72  int c = *ptr;  int c = *ptr;
73    
74    #ifndef SUPPORT_UTF8
75    utf8 = utf8;  /* Avoid compiler warning */
76    if (PRINTABLE(c)) fprintf(f, "%c", c); else fprintf(f, "\\x%02x", c);
77    return 0;
78    
79    #else
80  if (!utf8 || (c & 0xc0) != 0xc0)  if (!utf8 || (c & 0xc0) != 0xc0)
81    {    {
82    if (PRINTABLE(c)) fprintf(f, "%c", c); else fprintf(f, "\\x%02x", c);    if (PRINTABLE(c)) fprintf(f, "%c", c); else fprintf(f, "\\x%02x", c);
# Line 102  else Line 108  else
108    if (c < 128) fprintf(f, "\\x%02x", c); else fprintf(f, "\\x{%x}", c);    if (c < 128) fprintf(f, "\\x%02x", c); else fprintf(f, "\\x{%x}", c);
109    return a;    return a;
110    }    }
111    #endif
112  }  }
113    
114    

Legend:
Removed from v.106  
changed lines
  Added in v.107

webmaster@exim.org
ViewVC Help
Powered by ViewVC 1.1.12