"Jeroen T. Vermeulen" <jtv(at)xs4all(dot)nl> writes:
> Probably a silly question, but better safe than sorry:
> AFAICS there's no way for PQencryptPassword() to see what encoding
> applies. Are we quite sure that that is not a problem?
Right offhand it seems that the worst possible consequence is
authentication failure: you originally entered your password
as foobar in encoding X, and then when you enter foobar in
encoding Y, you get the raspberry. Do you see something else?
regards, tom lane