Jeffrey Yasskin wrote:
> On 10/11/07, Christian Heimes <[EMAIL PROTECTED]> wrote:
>>     if (mangled == "utf8")
> 
> FYI, this is always going to be false. It compares the pointer values,
> rather than the strings.

Doh! I've done too much Python programming in the past. I forgot that
I've to use strcmp(s1, s2) == 0 in order to compare two strings in C.

Thanks pal!

Christian
_______________________________________________
Python-3000 mailing list
Python-3000@python.org
http://mail.python.org/mailman/listinfo/python-3000
Unsubscribe: 
http://mail.python.org/mailman/options/python-3000/archive%40mail-archive.com

Reply via email to