At 1235057215 time_t, fubabz wrote:
> Another patch to display ASCII encoded name on non-UTF-8 environment:
> 
> --- awesome-3.2-rc2-orig/property.c   2009-02-13 21:56:38.000000000 +0900
> +++ awesome-3.2-rc2/property.c        2009-02-19 23:33:25.000000000 +0900
> @@ -217,8 +217,10 @@
>      p_delete(&c->name);
>  
>      /* if no conversion needed, just point to name */
> -    if(draw_iso2utf8(name, len, &utf8, NULL))
> +    if(draw_iso2utf8(name, len, &utf8, NULL)) {
> +        c->name = utf8;
>          p_delete(&name);
> +    }
>      else
>          c->name = name;
>  
> @@ -242,8 +244,10 @@
>  
>      p_delete(&c->icon_name);
>  
> -    if(draw_iso2utf8(name, len, &utf8, NULL))
> +    if(draw_iso2utf8(name, len, &utf8, NULL)){
> +        c->icon_name = utf8;
>          p_delete(&name);
> +    }
>      else
>          c->icon_name = name;
>  

Err! This patch seems indeed valid, or I miss something. :-)
Does it fix your problem?

Cheers,
-- 
Julien Danjou
// ᐰ <[email protected]>   http://julien.danjou.info
// 9A0D 5FD9 EB42 22F6 8974  C95C A462 B51E C2FE E5CD
// There is nothing under this line.

Attachment: signature.asc
Description: Digital signature

Reply via email to