Re: [evolution-patches] Re: 43485: strftime usage in e-cell-date



+
+       fmt = e_utf8_to_locale_string (fmt);
+       e_strftime_fix_am_pm (buf, 26, fmt, &then);
+       g_free (fmt);

why make buf 26 bytes? do we know for a fact that 26 is plenty for all
locales? (I know you didn't do this as part of the patch, just bringing
this up because I noticed it already there).

I presume that buf later gets transformed back into UTF-8, yes?

Jeff

On Fri, 2003-05-23 at 14:12, Mike Kestner wrote:
> On Fri, 2003-05-23 at 12:51, Mike Kestner wrote:
> > This converts the gettext provided fmt strings to locale string before
> > calling e_strftime.
> > 
> > Mike
-- 
Jeffrey Stedfast
Evolution Hacker - Ximian, Inc.
fejj ximian com  - www.ximian.com




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]