|
From: Ethan M. <merritt@u.washington.edu> - 2006-12-13 22:01:52
|
On Wednesday 13 December 2006 12:56 pm, Dr. Johannes Zellner wrote: > On Wed, Dec 13, 2006 at 11:21:48AM -0800, Ethan Merritt wrote: > > So yes, you have a very good point there. > > It should probably use wcslen() instead. > > this will proably not do the job, as wcslen doesn't know anyhting > about the encoding of the input string, does it? Yes, it does. That's the whole point. It calculates the length based on the current locale setting in the program. This may or may not match your default locale; the program is free to change its context to any locale you have available. -- Ethan A Merritt Biomolecular Structure Center University of Washington, Seattle WA |