/* HomeBank -- Free, easy, personal accounting for everyone.
- * Copyright (C) 1995-2016 Maxime DOYEN
+ * Copyright (C) 1995-2018 Maxime DOYEN
*
* This file is part of HomeBank.
*
{
case 1: //to memo
DB( g_print(" -> name to memo: '%s'\n", data.name) );
- newope->wording = g_strdup(data.name);
+ newope->memo = g_strdup(data.name);
//test
//strip_extra_spaces(newope->wording);
g_strstrip(name);
//test
//strip_extra_spaces(name);
-
+
+ #ifndef G_OS_UNIX
+ DB( g_print(" ensure UTF-8\n") );
+
+ name = homebank_utf8_ensure(name);
+ #endif
+
DB( g_print(" -> name to payee: '%s'\n", name) );
payitem = da_pay_get_by_name(name);
break;
case 2: //add to description
- old = newope->wording;
+ old = newope->memo;
if(old == NULL)
- newope->wording = g_strdup(data.memo);
+ newope->memo = g_strdup(data.memo);
else
{
- newope->wording = g_strjoin(" ", old, data.memo, NULL);
+ newope->memo = g_strjoin(" ", old, data.memo, NULL);
g_free(old);
}