| От | Giles Lean |
|---|---|
| Тема | Re: [PATCHES] Re: Locale bug |
| Дата | |
| Msg-id | 10189.961147697@nemeton.com.au обсуждение исходный текст |
| Ответ на | Re: Locale bug (Bruce Momjian <pgman@candle.pha.pa.us>) |
| Список | pgsql-ports |
> Can someone comment on this?
The ctype functions operate for unsigned characters. I think it's a
K&R C hangover that they take int arguments, as anything smaller than
int was widened as it was passed in a function call.
There are plenty of platforms where 'char' is a signed type, including
HP-UX on PA-RISC and some NetBSD but not all NetBSD ports.
> > othercase(ch)
> > int ch;
> > {
> > ...
> > return toupper(ch);
That's definitely not OK. toupper((unsigned char) ch) is. I'm not
familiar enough with the code that is being patched to comment on the
patch that was offered, sorry.
Regards,
Giles
В списке pgsql-ports по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера