AW: AW: broken locale in 7.0.2 without multibyte suppor t (F reeBSD 4.1-RELEASE) ?

Поиск
Список
Период
Сортировка
От Zeugswetter Andreas SB
Тема AW: AW: broken locale in 7.0.2 without multibyte suppor t (F reeBSD 4.1-RELEASE) ?
Дата
Msg-id 11C1E6749A55D411A9670001FA687963368166@sdexcsrv1.f000.d0188.sd.spardat.at
обсуждение исходный текст
Ответы Re: AW: AW: broken locale in 7.0.2 without multibyte suppor t (F reeBSD 4.1-RELEASE) ?  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
> > I am a sceptic to the many casts. Would'nt the clean 
> solution be, to use
> > unsigned char througout the code ?
> 
> No; see the prior discussion.
> 
> > The casts only help to avoid compiler
> > warnings or errors. They do not solve the underlying problem.
> 
> You are mistaken.

You are of course correct, that they might solve the particular underlying problem,
sorry, I did not actually read or verify the committed code.
But don't they in general obfuscate cases where the callee does want
unsigned/signed chars ?

My assumption would be, that we need [un]signed char casts for library functions,
but we should not need them for internal code, no ? What is actually the reason 
to have them both in PostgreSQL code ?

My concern stems from a very bad experience with wrong signedness of chars
on AIX.

Andreas


В списке pgsql-hackers по дате отправления:

Предыдущее
От: Jan Wieck
Дата:
Сообщение: Re: [SQL] Rules with Conditions: Bug, or Misunderstanding
Следующее
От: Peter Eisentraut
Дата:
Сообщение: Re: Postgresql on dynix/ptx system