[Bug 72966] Re: crash on opening empty text file
Ming Hua
minghua-list at sbcglobal.net
Fri Nov 24 01:56:44 UTC 2006
Edgy has 1.7.0-1ubuntu4, and feisty has 1.7.2-1ubuntu1. The diff
between the two source packages has the following for src/stf-parse.c:
@@ -1414,14 +1415,18 @@
if (1) {
/* Separated */
+ gboolean dups =
+ res->sep.chr &&
+ strchr (res->sep.chr, ' ') != NULL;
+ gboolean trim =
+ res->sep.chr &&
+ strchr (res->sep.chr, ' ') != NULL;
stf_parse_options_set_type (res, PARSE_TYPE_CSV);
stf_parse_options_set_trim_spaces (res, TRIM_TYPE_LEFT | TRIM_TYPE_RIGHT);
stf_parse_options_csv_set_indicator_2x_is_single (res, TRUE);
- stf_parse_options_csv_set_duplicates
- (res, strchr (res->sep.chr, ' ') != NULL);
- stf_parse_options_csv_set_trim_seps
- (res, strchr (res->sep.chr, ' ') != NULL);
+ stf_parse_options_csv_set_duplicates (res, dups);
+ stf_parse_options_csv_set_trim_seps (res, trim);
stf_parse_options_csv_set_stringindicator (res, '"');
} else {
So I assume this is fixed in 1.7.2?
--
crash on opening empty text file
https://launchpad.net/bugs/72966
More information about the desktop-bugs
mailing list