[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: sort feature (can't believe this hasn't been implemented yet)
From: |
Paul Eggert |
Subject: |
Re: sort feature (can't believe this hasn't been implemented yet) |
Date: |
Fri, 21 May 2004 16:06:04 -0700 |
User-agent: |
Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3 (gnu/linux) |
Edward Peschko <address@hidden> writes:
> ok, well I'll endeavor to add it - although I can't believe I'm the
> first person to try to use sort to sort records from a relational
> database (its pretty common practice to use multiple line delimiters
> because of the possibility of embedded newlines or other such in the
> data)
But what if your data contains backslash-newline? Then
backslash-newline isn't safe either. Better might be a safe escaping
scheme (e.g., use "\n" to represent newline and "\\" to represent
backslash). Of course the resulting data won't sort correctly, but
that's true of any escaping scheme.
> Is this a trivial change to make?
It shouldn't be that hard, but it probably won't be trivial either.