Efraín López wrote: > I am using Windows, and pg 8.2.5 > > When making a connection with libpq, if it fails I would like > to get the errors messages in spanish (PQerrorMessage ) > > Is this possible? How can this be done? Set the program's locale prior to calling libpq functions. I did not try it on Windows, but Microsoft seems to work like UNIX in that respect: http://msdn2.microsoft.com/en-us/library/x99tb11d(VS.80).aspx Try something like setlocale(LC_MESSAGES, "Spanish"); or, if your language environment is Spanish, simply setlocale(LC_MESSAGES, ""); Yours, Laurenz Albe ---------------------------(end of broadcast)--------------------------- TIP 6: explain analyze is your friend