when calculating the length of the expanded path, add the length of the
2004-02-01 Michael Natterer <mitch@gimp.org> * app/config/gimpconfig-path.c (gimp_config_path_expand_only): when calculating the length of the expanded path, add the length of the UTF-8 converted substitution, not its length in filesystem encoding. Finally enables GIMP2_DIRECTORY containing non-ascii chars (at least on linux). Should fix bug #130118.
This commit is contained in:

committed by
Michael Natterer

parent
82276adaa4
commit
28f95f9caa
@ -1,3 +1,11 @@
|
|||||||
|
2004-02-01 Michael Natterer <mitch@gimp.org>
|
||||||
|
|
||||||
|
* app/config/gimpconfig-path.c (gimp_config_path_expand_only):
|
||||||
|
when calculating the length of the expanded path, add the length
|
||||||
|
of the UTF-8 converted substitution, not its length in filesystem
|
||||||
|
encoding. Finally enables GIMP2_DIRECTORY containing non-ascii
|
||||||
|
chars (at least on linux). Should fix bug #130118.
|
||||||
|
|
||||||
2004-02-01 Michael Natterer <mitch@gimp.org>
|
2004-02-01 Michael Natterer <mitch@gimp.org>
|
||||||
|
|
||||||
Disallow to rename the layer mask. Instead, always name the mask
|
Disallow to rename the layer mask. Instead, always name the mask
|
||||||
|
@ -161,9 +161,10 @@ gimp_config_path_expand_only (const gchar *path,
|
|||||||
|
|
||||||
substs[2*n_substs] = token;
|
substs[2*n_substs] = token;
|
||||||
substs[2*n_substs + 1] = (gchar *) gimp_filename_to_utf8 (s);
|
substs[2*n_substs + 1] = (gchar *) gimp_filename_to_utf8 (s);
|
||||||
n_substs++;
|
|
||||||
|
|
||||||
length += strlen (s);
|
length += strlen (substs[2*n_substs + 1]);
|
||||||
|
|
||||||
|
n_substs++;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
@ -161,9 +161,10 @@ gimp_config_path_expand_only (const gchar *path,
|
|||||||
|
|
||||||
substs[2*n_substs] = token;
|
substs[2*n_substs] = token;
|
||||||
substs[2*n_substs + 1] = (gchar *) gimp_filename_to_utf8 (s);
|
substs[2*n_substs + 1] = (gchar *) gimp_filename_to_utf8 (s);
|
||||||
n_substs++;
|
|
||||||
|
|
||||||
length += strlen (s);
|
length += strlen (substs[2*n_substs + 1]);
|
||||||
|
|
||||||
|
n_substs++;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user