summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2012-08-09 12:55:56 +0200
committerChristophe Grenier <grenier@cgsecurity.org>2012-08-09 12:55:56 +0200
commitf43a52f87e18d375123897947dca1a58cc9eb3e0 (patch)
tree4d619a798c5960bb5bfa427b014f71cd133a7800 /src
parent72d7eb88a0b099e80146801e9648f2c031d52d05 (diff)
src/file_txt.c: switch comments to utf-8
Diffstat (limited to 'src')
-rw-r--r--src/file_txt.c97
1 files changed, 48 insertions, 49 deletions
diff --git a/src/file_txt.c b/src/file_txt.c
index 72ef5b9..71a32f1 100644
--- a/src/file_txt.c
+++ b/src/file_txt.c
@@ -186,58 +186,57 @@ static int filtre(unsigned char car)
switch(car)
{
case 0x7c: /* similar to | */
- case 0x80:
- case 0x92:
- case 0x99:
- case 0x9c: /* '' */
+ case 0x80: /* '€' */
+ case 0x92: /* '’' */
+ case 0x99: /* '™' */
+ case 0x9c: /* 'œ' */
case 0xa0: /* nonbreaking space */
- case 0xa1: /* '' */
- case 0xa2:
- case 0xa3: /* '' */
- case 0xa7: /* '' */
- case 0xa8:
- case 0xa9: /* '' */
- case 0xab: /* '' */
- case 0xae: /* '' */
- case 0xb0: /* '' */
- case 0xb4: /* '' */
- case 0xb7:
- case 0xbb: /* '' */
- case 0xc0: /* '' */
- case 0xc7: /* '' */
- case 0xc9: /* '' */
- case 0xd6: /* '' */
- case 0xd7:
- case 0xd9: /* '' */
- case 0xdf:
- case 0xe0: /* '' */
- case 0xe1: /* '' */
- case 0xe2: /* '' */
- case 0xe3: /* '' */
- case 0xe4: /* '' */
- case 0xe6: /* '' */
- case 0xe7: /* '' */
- case 0xe8: /* '' */
- case 0xe9: /* '' */
- case 0xea: /* '' */
- case 0xeb: /* '' */
- case 0xed: /* '' */
- case 0xee: /* '' */
- case 0xef: /* '' */
- case 0xf4: /* '' */
- case 0xf6: /* '' */
- case 0xf8: /* '' */
- case 0xf9: /* '' */
- case 0xfa: /* '' */
- case 0xfb: /* '' */
- case 0xfc: /* '' */
+ case 0xa1: /* '¡' */
+ case 0xa2: /* '¢' */
+ case 0xa3: /* '£' */
+ case 0xa7: /* '§' */
+ case 0xa8: /* '¨' */
+ case 0xa9: /* '©' */
+ case 0xab: /* '«' */
+ case 0xae: /* '®' */
+ case 0xb0: /* '°' */
+ case 0xb4: /* '´' */
+ case 0xb7: /* '·' */
+ case 0xbb: /* '»' */
+ case 0xc0: /* 'À' */
+ case 0xc7: /* 'Ç' */
+ case 0xc9: /* 'É' */
+ case 0xd6: /* 'Ö' */
+ case 0xd7: /* '×' */
+ case 0xd9: /* 'Ù' */
+ case 0xdf: /* 'ß' */
+ case 0xe0: /* 'à' */
+ case 0xe1: /* 'á' */
+ case 0xe2: /* 'â' */
+ case 0xe3: /* 'ã' */
+ case 0xe4: /* 'ä' */
+ case 0xe6: /* 'æ' */
+ case 0xe7: /* 'ç' */
+ case 0xe8: /* 'è' */
+ case 0xe9: /* 'é' */
+ case 0xea: /* 'ê' */
+ case 0xeb: /* 'ë' */
+ case 0xed: /* 'í' */
+ case 0xee: /* 'î' */
+ case 0xef: /* 'ï' */
+ case 0xf4: /* 'ô' */
+ case 0xf6: /* 'ö' */
+ case 0xf8: /* 'ø' */
+ case 0xf9: /* 'ù' */
+ case 0xfa: /* 'ú' */
+ case 0xfb: /* 'û' */
+ case 0xfc: /* 'ü' */
return 1;
}
- if((car=='\b')||(car=='\t')||(car=='\r')||(car=='\n')
- ||((car>=' ')&&(car<='~'))
- ||((car>=0x82)&&(car<=0x8d))
- ||((car>=0x93)&&(car<=0x98))
- )
+ if(car=='\b' || car=='\t' || car=='\r' || car=='\n' ||
+ (car >= ' ' && car <= '~') ||
+ (car >= 0x82 && car <= 0x8d) ||
+ (car >= 0x93 && car <= 0x98))
return 1;
return 0;
}