Garlic Bug (segfault when getenv("LANGUAGE") returns NULL)

1 view
Skip to first unread message

Bastien Montagne

unread,
Sep 16, 2011, 4:04:52 AM9/16/11
to blender-t...@googlegroups.com
Hi, I hope this is the right place to report such bug :)

So, when getenv("LANGUAGE") returns NULL
(blender/blenfont/intern/blf_lang.c, l.155), Blender obviously sigsevs,
as there is no check done…

This happens for me (Debian Wheezy 64, own build of Garlic svn40239),
when trying to enable International Fonts in user prefs.

Regards,
Bastien.

xiangquan xiao

unread,
Sep 16, 2011, 4:09:02 AM9/16/11
to blender-t...@googlegroups.com
Thanks, I'll look into it.

2011/9/16 Bastien Montagne <monta...@wanadoo.fr>

mont29

unread,
Sep 16, 2011, 10:10:17 AM9/16/11
to Blender translation
Hi Xiao (hope this is the good part of the name…),

Your svn commit 40256 actually breaks compilation on linux,
env_language can’t be static (but it do can be const) (blender/
blenfont/intern/blf_lang.c, l.153):

const char *env_language = getenv("LANGUAGE");

Regards,
Bastien

On 16 sep, 10:09, xiangquan xiao <xiaoxiangq...@gmail.com> wrote:
> Thanks, I'll look into it.
>
> 2011/9/16 Bastien Montagne <montagn...@wanadoo.fr>
>
>
>
>
>
>
>
> > Hi, I hope this is the right place to report such bug :)
>
> > So, when getenv("LANGUAGE") returns NULL (blender/blenfont/intern/blf_**lang.c,

xiangquan xiao

unread,
Sep 19, 2011, 1:15:13 PM9/19/11
to blender-t...@googlegroups.com
Sorry, I'm just too confident and submit it without compiling...Shame for that...

2011/9/16 mont29 <monta...@wanadoo.fr>
Reply all
Reply to author
Forward
0 new messages