X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=glib%2Fgunidecomp.c;h=fe76ec363ed426976657180f8b397f58ec35fa41;hb=e3219c8425e9417ee888dd2aa8b5c826da62edc1;hp=df5a6277d031b36a16bc8da1d9e427943a411220;hpb=b5f1ea4bb1070f1fbf6fc5170136254192c9bff0;p=platform%2Fupstream%2Fglib.git diff --git a/glib/gunidecomp.c b/glib/gunidecomp.c index df5a627..fe76ec3 100644 --- a/glib/gunidecomp.c +++ b/glib/gunidecomp.c @@ -696,9 +696,12 @@ g_unichar_compose (gunichar a, * The decomposed sequence is placed in @result. Only up to * @result_len characters are written into @result. The length * of the full decomposition (irrespective of @result_len) is - * returned by the function. For canonical decomposition, a - * result buffer of length 4 is always enough, whereas for - * compatibility decomposition, a buffer of 18 is enough. + * returned by the function. For canonical decomposition, + * currently all decompositions are of length at most 4, but + * this may change in the future (very unlikely though). + * At any rate, Unicode does guarantee that a buffer of length + * 18 is always enough for both compatibility and canonical + * decompositions. * * See UAX#15 * for details.