[prev in list] [next in list] [prev in thread] [next in thread] 

List:       freedesktop-fribidi
Subject:    Re: [FriBidi] fribidi 0.10.9 is now available
From:       Till Vollmer <tvollmer () codemart ! de>
Date:       2007-08-15 10:45:55
Message-ID: ED8D6ABB-F52F-48E6-9F56-9FB5B8DB96AF () codemart ! de
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


Just for the records:

The problem was the malloc(). len should be multiplied by sizeof 
(FribidiChar) (as it is int32) insetad of just taking the len.

Still one small problem:

Is there a way to calculate the bytes of the result of  
utf8_to_unicode before actually doing it? I need to malloc the buffer  
before but dont know how big it should be...


Regards
Till

Am 13.08.2007 um 13:15 schrieb Till Vollmer:

> So the calling is ok from your side? Or do you see an obvious problem?
>
> Regards
> Till
>
> Am 13.08.2007 um 08:18 schrieb Behdad Esfahbod:
>
>> On Sun, 2007-08-12 at 11:28 +0200, Till Vollmer wrote:
>>> Hi,
>>>
>>> The tests are working now. But I have a different problem:
>>>
>>> I am working on a Ruby wrapper and it works fine functionally but
>>> whenever the Ruby garbage collector kicks in I got an BUS error.  
>>> I had
>>> my wrapper code checked by someone who does that very ofter and he
>>> says it's ok, so the problem must be either in the way I call  
>>> fribidi
>>> stuff or in fribidi. Attached the code. Maybe someone can check if I
>>> do it ok. Any help would be very appreciated.
>>
>> No idea.  This is up to a Ruby hacker to figure out I guess.
>>
>> -- 
>> behdad
>> http://behdad.org/
>>
>> "Those who would give up Essential Liberty to purchase a little
>>  Temporary Safety, deserve neither Liberty nor Safety."
>>         -- Benjamin Franklin, 1759
>>
>>
>>
>
> Codemart GmbH
> Till Vollmer
> Managing Director
> Tel: +49 (0)89 1213 5359
> Mob: + 49 (0)160 718 7403
> Fax: +49 (0)89 1892 1347
> Yahoo ID: till_vollmer
> Skype: till_vollmer
> www.codemart.de
> till.vollmer@codemart.de
>
>
>
>
>
> _______________________________________________
> fribidi mailing list
> fribidi@lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/fribidi

Codemart GmbH
Till Vollmer
Managing Director
Tel: +49 (0)89 1213 5359
Mob: + 49 (0)160 718 7403
Fax: +49 (0)89 1892 1347
Yahoo ID: till_vollmer
Skype: till_vollmer
www.codemart.de
till.vollmer@codemart.de






[Attachment #5 (unknown)]

<HTML><BODY style="word-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line-break: \
after-white-space; ">Just for the records:<DIV><BR \
class="khtml-block-placeholder"></DIV><DIV>The problem was the malloc(). len should \
be multiplied by sizeof(FribidiChar) (as it is int32) insetad of just taking the \
len.</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>Still one small \
problem:</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>Is there a way to \
calculate the bytes of the result of utf8_to_unicode before actually doing it? I need \
to malloc the buffer before but dont know how big it should be...</DIV><DIV><BR \
class="khtml-block-placeholder"></DIV><DIV><BR \
class="khtml-block-placeholder"></DIV><DIV>Regards</DIV><DIV>Till</DIV><DIV><BR><DIV><DIV>Am \
13.08.2007 um 13:15 schrieb Till Vollmer:</DIV><BR \
class="Apple-interchange-newline"><BLOCKQUOTE type="cite">So the calling is ok from \
your side? Or do you see an obvious problem?<DIV><BR \
class="khtml-block-placeholder"></DIV><DIV>Regards</DIV><DIV>Till<DIV><BR><DIV><DIV>Am \
13.08.2007 um 08:18 schrieb Behdad Esfahbod:</DIV><BR \
class="Apple-interchange-newline"><BLOCKQUOTE type="cite"><DIV style="margin-top: \
0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">On Sun, 2007-08-12 at \
11:28 +0200, Till Vollmer wrote:</DIV> <BLOCKQUOTE type="cite"><DIV \
style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; \
">Hi,<SPAN class="Apple-converted-space"> </SPAN></DIV><DIV style="margin-top: 0px; \
margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px; \
"><BR></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; \
margin-left: 0px; ">The tests are working now. But I have a different problem:<SPAN \
class="Apple-converted-space"> </SPAN></DIV><DIV style="margin-top: 0px; \
margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px; \
"><BR></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; \
margin-left: 0px; ">I am working on a Ruby wrapper and it works fine functionally \
but</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; \
margin-left: 0px; ">whenever the Ruby garbage collector kicks in I got an BUS error. \
I had</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; \
margin-left: 0px; ">my wrapper code checked by someone who does that very ofter and \
he</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; \
margin-left: 0px; ">says it's ok, so the problem must be either in the way I call \
fribidi</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; \
margin-left: 0px; ">stuff or in fribidi. Attached the code. Maybe someone can check \
if I</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; \
margin-left: 0px; ">do it ok. Any help would be very appreciated.<SPAN \
class="Apple-converted-space"> </SPAN></DIV> </BLOCKQUOTE><DIV style="margin-top: \
0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px; \
"><BR></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; \
margin-left: 0px; ">No idea.<SPAN class="Apple-converted-space">  </SPAN>This is up \
to a Ruby hacker to figure out I guess.</DIV><DIV style="margin-top: 0px; \
margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px; \
"><BR></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; \
margin-left: 0px; ">--<SPAN class="Apple-converted-space"> </SPAN></DIV><DIV \
style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; \
">behdad</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; \
margin-left: 0px; "><A href="http://behdad.org">http://behdad.org</A>/</DIV><DIV \
style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; \
min-height: 14px; "><BR></DIV><DIV style="margin-top: 0px; margin-right: 0px; \
margin-bottom: 0px; margin-left: 0px; ">"Those who would give up Essential Liberty to \
purchase a little</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: \
0px; margin-left: 0px; "><SPAN class="Apple-converted-space"> </SPAN>Temporary \
Safety, deserve neither Liberty nor Safety."</DIV><DIV style="margin-top: 0px; \
margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><SPAN \
class="Apple-converted-space">        </SPAN>-- Benjamin Franklin, 1759</DIV><DIV \
style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; \
min-height: 14px; "><BR></DIV><DIV style="margin-top: 0px; margin-right: 0px; \
margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><BR></DIV><DIV \
style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; \
min-height: 14px; "><BR></DIV> </BLOCKQUOTE></DIV><BR><DIV> <SPAN \
class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; \
color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; \
font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: \
normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; \
-apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; \
widows: 2; word-spacing: 0px; "><SPAN class="Apple-style-span" \
style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); \
font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; \
font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; \
-khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: \
auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: \
0px; "><SPAN class="Apple-style-span" style="border-collapse: separate; \
border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: \
12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: \
normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: \
none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: \
2; white-space: normal; widows: 2; word-spacing: 0px; "><SPAN \
class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; \
color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; \
font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: \
normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; \
-apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; \
widows: 2; word-spacing: 0px; "><SPAN class="Apple-style-span" \
style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); \
font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; \
font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; \
-khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: \
auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: \
0px; "><P style="margin: 0.0px 0.0px 12.0px 0.0px"><FONT class="Apple-style-span" \
size="2"><SPAN class="Apple-style-span" style="font-size: 10px;"><SPAN \
class="Apple-style-span" style="font-size: 10px; "><SPAN class="Apple-style-span" \
style="font-size: 10px; "><SPAN class="Apple-style-span" style="font-size: 10px; \
"><SPAN class="Apple-style-span" style="font-size: 10px; "><SPAN \
class="Apple-style-span" style="font-size: 10px; ">Codemart \
GmbH</SPAN></SPAN></SPAN></SPAN></SPAN></SPAN></FONT><SPAN \
class="Apple-converted-space"> </SPAN><BR><FONT class="Apple-style-span" \
size="2"><SPAN class="Apple-style-span" style="font-size: 10px;"><SPAN \
class="Apple-style-span" style="font-size: 10px; "><SPAN class="Apple-style-span" \
style="font-size: 10px; "><SPAN class="Apple-style-span" style="font-size: 10px; \
"><SPAN class="Apple-style-span" style="font-size: 10px; "><SPAN \
class="Apple-style-span" style="font-size: 10px; ">Till \
Vollmer</SPAN></SPAN></SPAN></SPAN></SPAN></SPAN></FONT><SPAN \
class="Apple-converted-space"> </SPAN><BR><FONT class="Apple-style-span" \
size="2"><SPAN class="Apple-style-span" style="font-size: 10px;"><SPAN \
class="Apple-style-span" style="font-size: 10px; "><SPAN class="Apple-style-span" \
style="font-size: 10px; "><SPAN class="Apple-style-span" style="font-size: 10px; \
"><SPAN class="Apple-style-span" style="font-size: 10px; "><SPAN \
class="Apple-style-span" style="font-size: 10px; ">Managing \
Director</SPAN></SPAN></SPAN></SPAN></SPAN></SPAN></FONT><SPAN \
class="Apple-converted-space"> </SPAN><BR><FONT class="Apple-style-span" \
size="2"><SPAN class="Apple-style-span" style="font-size: 10px;"><SPAN \
class="Apple-style-span" style="font-size: 10px; "><SPAN class="Apple-style-span" \
style="font-size: 10px; "><SPAN class="Apple-style-span" style="font-size: 10px; \
"><SPAN class="Apple-style-span" style="font-size: 10px; "><SPAN \
class="Apple-style-span" style="font-size: 10px; ">Tel: +49 (0)89 1213 \
5359</SPAN></SPAN></SPAN></SPAN></SPAN></SPAN></FONT><SPAN \
class="Apple-converted-space"> </SPAN><BR><FONT class="Apple-style-span" \
size="2"><SPAN class="Apple-style-span" style="font-size: 10px;"><SPAN \
class="Apple-style-span" style="font-size: 10px; "><SPAN class="Apple-style-span" \
style="font-size: 10px; "><SPAN class="Apple-style-span" style="font-size: 10px; \
"><SPAN class="Apple-style-span" style="font-size: 10px; "><SPAN \
class="Apple-style-span" style="font-size: 10px; ">Mob: + 49 (0)160 718 \
7403</SPAN></SPAN></SPAN></SPAN></SPAN></SPAN></FONT><SPAN \
class="Apple-converted-space"> </SPAN><BR><FONT class="Apple-style-span" \
size="2"><SPAN class="Apple-style-span" style="font-size: 10px;"><SPAN \
class="Apple-style-span" style="font-size: 10px; "><SPAN class="Apple-style-span" \
style="font-size: 10px; "><SPAN class="Apple-style-span" style="font-size: 10px; \
"><SPAN class="Apple-style-span" style="font-size: 10px; "><SPAN \
class="Apple-style-span" style="font-size: 10px; ">Fax: +49 (0)89 1892 \
1347</SPAN></SPAN></SPAN></SPAN></SPAN></SPAN></FONT><SPAN \
class="Apple-converted-space"> </SPAN><BR><FONT class="Apple-style-span" \
size="2"><SPAN class="Apple-style-span" style="font-size: 10px;"><SPAN \
class="Apple-style-span" style="font-size: 10px; "><SPAN class="Apple-style-span" \
style="font-size: 10px; "><SPAN class="Apple-style-span" style="font-size: 10px; \
"><SPAN class="Apple-style-span" style="font-size: 10px; "><SPAN \
class="Apple-style-span" style="font-size: 10px; ">Yahoo ID: \
till_vollmer</SPAN></SPAN></SPAN></SPAN></SPAN></SPAN></FONT><SPAN \
class="Apple-converted-space"> </SPAN><BR><FONT class="Apple-style-span" \
size="2"><SPAN class="Apple-style-span" style="font-size: 10px;"><SPAN \
class="Apple-style-span" style="font-size: 10px; "><SPAN class="Apple-style-span" \
style="font-size: 10px; "><SPAN class="Apple-style-span" style="font-size: 10px; \
"><SPAN class="Apple-style-span" style="font-size: 10px; "><SPAN \
class="Apple-style-span" style="font-size: 10px; ">Skype: \
till_vollmer</SPAN></SPAN></SPAN></SPAN></SPAN></SPAN></FONT><SPAN \
class="Apple-converted-space"> </SPAN><BR><FONT class="Apple-style-span" \
size="2"><SPAN class="Apple-style-span" style="font-size: 10px;"><SPAN \
class="Apple-style-span" style="font-size: 10px; "><SPAN class="Apple-style-span" \
style="font-size: 10px; "><SPAN class="Apple-style-span" style="font-size: 10px; \
"><SPAN class="Apple-style-span" style="font-size: 10px; "><SPAN \
class="Apple-style-span" style="font-size: 10px; \
">www.codemart.de</SPAN></SPAN></SPAN></SPAN></SPAN></SPAN></FONT><SPAN \
class="Apple-converted-space"> </SPAN><BR><FONT class="Apple-style-span" \
size="2"><SPAN class="Apple-style-span" style="font-size: 10px;"><SPAN \
class="Apple-style-span" style="font-size: 10px; "><SPAN class="Apple-style-span" \
style="font-size: 10px; "><SPAN class="Apple-style-span" style="font-size: 10px; \
"><SPAN class="Apple-style-span" style="font-size: 10px; "><SPAN \
class="Apple-style-span" style="font-size: 10px; "><A \
href="mailto:till.vollmer@codemart.de">till.vollmer@codemart.de</A></SPAN></SPAN></SPAN></SPAN></SPAN></SPAN></FONT></P><DIV><BR \
class="khtml-block-placeholder"></DIV><DIV><BR \
class="khtml-block-placeholder"></DIV><BR \
class="Apple-interchange-newline"></SPAN></SPAN></SPAN></SPAN></SPAN> \
</DIV><BR></DIV></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: \
0px; margin-left: 0px; ">_______________________________________________</DIV><DIV \
style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; \
">fribidi mailing list</DIV><DIV style="margin-top: 0px; margin-right: 0px; \
margin-bottom: 0px; margin-left: 0px; "><A \
href="mailto:fribidi@lists.freedesktop.org">fribidi@lists.freedesktop.org</A></DIV><DIV \
style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><A \
href="http://lists.freedesktop.org/mailman/listinfo/fribidi">http://lists.freedesktop.org/mailman/listinfo/fribidi</A></DIV> \
</BLOCKQUOTE></DIV><BR><DIV> <SPAN class="Apple-style-span" style="border-collapse: \
separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; \
font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; \
letter-spacing: normal; line-height: normal; text-align: auto; \
-khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: \
auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: \
0px; "><SPAN class="Apple-style-span" style="border-collapse: separate; \
border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: \
12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: \
normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: \
none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: \
2; white-space: normal; widows: 2; word-spacing: 0px; "><SPAN \
class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; \
color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; \
font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: \
normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; \
-apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; \
widows: 2; word-spacing: 0px; "><SPAN class="Apple-style-span" \
style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); \
font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; \
font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; \
-khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: \
auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: \
0px; "><SPAN class="Apple-style-span" style="border-collapse: separate; \
border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: \
12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: \
normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: \
none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: \
2; white-space: normal; widows: 2; word-spacing: 0px; "><P style="margin: 0.0px 0.0px \
12.0px 0.0px"><FONT class="Apple-style-span" size="2"><SPAN class="Apple-style-span" \
style="font-size: 10px;"><SPAN class="Apple-style-span" style="font-size: 10px; \
"><SPAN class="Apple-style-span" style="font-size: 10px; "><SPAN \



_______________________________________________
fribidi mailing list
fribidi@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/fribidi


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic