Re: [evolution-patches] evolution-addressbook-export escape less in csv export



Any news on this?
Report is still open and this message wasn't followed.
On Mon, 2003-10-13 at 15:55, Martin Kretzschmar wrote:
> [Resending as subscriber; http://bugzilla.ximian.com/show_bug.cgi?id=49519]
> 
> Hi,
> 
> when exporting in csv format evolution-addressbook-export escapes all
> bytes > 127. For instance Körner becomes K\303\266rner. The
> OpenOffice.org evolution data source doesn't unescape this, only ASCII
> characters are displayed correctly. The attached patch replaces
> g_strescape calls with a custom escape_string function similar to that
> from the original evolution-addressbook-export patch(
> http://bugzilla.ximian.com/show_bug.cgi?id=23036 ). It escapes only line
> breaks, backslashes and quotation marks and leaves all other characters
> utf-8-encoded. It escapes ``"'' to ``""'' which seems to be more common
> than ``\"'' in csv-land.
> 
> This patch doesn't make sense if the majority of csv-processing apps out
> there expect the current escaped utf-8 behavior, but I doubt that.
> 
> 
> Martin
> 
> 2003-10-09  Martin Kretzschmar  <martink ximian com>
> 
> 	* addressbook/tools/evolution-addressbook-export-list-cards.c
> 	(escape_string): custom escape function, g_strescape escapes
> 	too much,
> 	(quote_string): removed, escape_string does quoting now,
> 	(e_card_simple_csv_get_name, e_card_simple_csv_get): use
> 	escape_string.
> 
> 




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]