<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=UTF-8" http-equiv="Content-Type">
<title></title>
</head>
<body dir="ltr" bgcolor="#ffffff" text="#000000">
أحمد المحمودي wrote:
<blockquote cite="mid:20090623141546.GB5585@ants.selfip.net" type="cite">
<pre wrap="">Hello,
On Mon, Jun 22, 2009 at 03:34:41PM -0400, Behdad Esfahbod wrote:
</pre>
<blockquote type="cite">
<pre wrap="">You are not allocating enough for outstr which is UTF8. Try
allocating 4 bytes per character. That is, (size * 4).
</pre>
</blockquote>
<pre wrap=""><!---->
Thanks, but please notice that instr is also UTF8, and although it
consists of 13 characters, yet its size, as returned by sizeof(instr),
is 26 !
Anyways I tried your method, yet I still get the problem I mentioned
with:
base = FRIBIDI_PAR_RTL;
That is printf(outstr); shows nothing !
</pre>
<blockquote type="cite">
<pre wrap="">Also, "sizeof(us)" doesn't return what you meant.
</pre>
</blockquote>
<pre wrap=""><!---->
Yes, I noticed that it returns the size of pointer type. Well, what I
need is to know the size of the string after log2vis, because for
example if I got the 2 characters ل & ا after each other, they get
translated to a single character, hence the string size decreases. So
how do I get the resulting string size ?
</pre>
</blockquote>
Are you looking for the string size in characters or in bytes?<br>
<br>
Shachar<br>
<br>
<pre class="moz-signature" cols="72">--
Shachar Shemesh
Lingnu Open Source Consulting Ltd.
<a class="moz-txt-link-freetext" href="http://www.lingnu.com">http://www.lingnu.com</a>
</pre>
</body>
</html>