Re: new-line

From: "Andrew Dunstan" <andrew(at)dunslane(dot)net>
To: <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: new-line
Date: 2003-12-28 14:45:04
Message-ID: 1832.24.211.141.25.1072622704.squirrel@www.dunslane.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers


AFAICS the server doesn't know (and in my opinion shouldn't care) what
platform a non-local client is running on. This appears to be purely a
client-side issue. Furthermore, on Windows, if you are writing the data
you get from Postgres to a file which you opened in non-binary mode,
Windows will do the translation for you (something we actually have to be
careful of in doing the Windows port).

cheers

andrew

ivan said:
>
>
>
> its must be in run time, server should has text with linux new line,
> and if clinet is windows, postgres would convert \n to \n\r
> but when clinet is also linux postgresa can do nothing about it
>
> :)
> any idea ?
>
> On Sat, 27 Dec 2003, [iso-8859-1] Jürgen Cappel wrote:
>
>> Hi Ivan,
>>
>> maybe your're looking for something like this:
>>
>> http://rcamera.org/cgi-bin/man2html.cgi?1+unix2dos
>>
>> HTH,
>>
>> Jürgen Cappel
>>
>>
>> ivan <iv(at)psycho(dot)pl> schrieb am 27.12.2003, 14:19:10:
>> >
>> >
>> > is there same easy way to turn on translation bettwen client and
>> > server from linux new-line style (0x0A) to windows style (0x0A0D?)
>> > (something like conversions) ?
>> >

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Tony 2003-12-28 15:30:44 Re: Is my MySQL Gaining ?
Previous Message Tony 2003-12-28 14:44:24 Re: Is my MySQL Gaining ?