[Pkg-gmagick-im-team] Bug#680928: Bug#680928: Imagmagick convert UTF8 non breaking space

roucaries bastien roucaries.bastien+debian at gmail.com
Sun Jul 22 22:02:13 UTC 2012


tags 680928 + unreproducible
tags  680928 + moreinfo
thanks

Moreover the following work for me under stable

$ convert -size 160 -pointsize 19 -channel RGBA -fill "rgb(0,0,116)"
-weight 400 -gravity NorthWest -background none \
   -flatten caption:`cat t`  est.png
$cat t | od -t x1
0000000 41 c2 a0 41 0a
0000005


Are you sure of your result ?

What is exactly the non breakable space ?

>
> On Mon, Jul 9, 2012 at 4:29 PM, roucaries bastien
> <roucaries.bastien+debian at gmail.com> wrote:
>> On Mon, Jul 9, 2012 at 4:24 PM, Matt Cockayne <matt at zucchi.co.uk> wrote:
>>> Unfortunatly we are not experienced enough with imagemagicks source to be
>>> able to identify where the fix may have occured.
>>>
>>> All we are able to advise can advise is what appears to be in the changelog
>>> and that in testing versions subsequent to 6.6.0-8 appears to be working
>>> correctly.
>>>
>>> Quote
>>>
>>>     2010-03-18 6.6.0-8 Cristy <quetzlzacatenango at image...>
>>>       The animate program no longer loops twice when -loop 1 is specified.
>>>       The caption format would sometimes hang when the text was not UTF-8.
>>>       Don't gamma correct log to linear color conversion unless the -gamma
>>> is specified (reference http://www.imagemagick.org/discourse-
>>> server/viewtopic.php?f=1&t=15799).
>>>
>>> /Quote
>>>
>>> On Mon, Jul 9, 2012 at 3:17 PM, roucaries bastien
>>> <roucaries.bastien+debian at gmail.com> wrote:
>>>>
>>>> On Mon, Jul 9, 2012 at 4:13 PM, Matt Cockayne <matt at zucchi.co.uk> wrote:
>>>> > The source of the fix is not specified as a specific patch file. And I
>>>> > am
>>>> > unable to identify the exact fix implemented
>>>> >
>>>> > Looking at the changelog and the dates/versions involved I would
>>>> > ascertain
>>>> > that the fix was applied somewhere between commits
>>>> >
>>>> > 1497 - 1503
>>>> >
>>>> >
>>>> > http://trac.imagemagick.org/timeline?from=03%2F18%2F10&daysback=0&authors=&milestone=on&ticket=on&changeset=on&wiki=on&update=Update
>>>> >
>>>>
>>>> Unfortunatly no change has action on utf8. only animate and some exotic
>>>> coders.
>>>>
>>>> Bastien
>>
>>
>> Ok it seems i get it, one single line. Could you try a non working
>> version with this patch applied ?
>> --- a/magick/token-private.h
>> +++ b/magick/token-private.h
>> @@ -60,7 +60,7 @@ static inline long GetNextUTFCode(const char
>> *text,size_t *octets)
>>      c,
>>      unicode;
>>
>> -  *octets=0;
>> +  *octets=1;
>>    if (text == (const char *) NULL)
>>      {
>>        errno=EINVAL;
>>
>>
>>



More information about the Pkg-gmagick-im-team mailing list