* src/app-utils/option-util.c: gh_str2scm() takes a char*, not a

const char* (at least in guile-1.3.4), so force the string to be
	  a char* to make the compiler happy.

	* src/engine/date.c: add spaces to the scanDate delimiters,
	  although it may not help if strptime() is doesn't like the
	  spaces.  Attempt to fix #103147, but it's probably a strptime
	  bug.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7828 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
Derek Atkins 2003-01-13 19:35:38 +00:00
parent 6252866027
commit 2db9a7f026
3 changed files with 17 additions and 4 deletions

View File

@ -1,3 +1,14 @@
2003-01-13 Derek Atkins <derek@ihtfp.com>
* src/app-utils/option-util.c: gh_str2scm() takes a char*, not a
const char* (at least in guile-1.3.4), so force the string to be
a char* to make the compiler happy.
* src/engine/date.c: add spaces to the scanDate delimiters,
although it may not help if strptime() is doesn't like the
spaces. Attempt to fix #103147, but it's probably a strptime
bug.
2003-01-12 Derek Atkins <derek@ihtfp.com>
* src/app-utils/global-options.[ch]: add gnc_default_report_currency()

View File

@ -2477,7 +2477,7 @@ gnc_option_db_set_string_option(GNCOptionDB *odb,
return FALSE;
if (value)
scm_value = gh_str2scm(value, strlen(value));
scm_value = gh_str2scm((char*)value, strlen(value));
else
scm_value = SCM_BOOL_F;

View File

@ -475,11 +475,13 @@ scanDateInternal (const char *buff, int *day, int *month, int *year,
/* use strtok to find delimiters */
if (tmp) {
first_field = strtok (tmp, ".,-+/\\()");
static char *delims = ".,-+/\\() ";
first_field = strtok (tmp, delims);
if (first_field) {
second_field = strtok (NULL, ".,-+/\\()");
second_field = strtok (NULL, delims);
if (second_field) {
third_field = strtok (NULL, ".,-+/\\()");
third_field = strtok (NULL, delims);
}
}
}