On Tue, Sep 02, 2003 at 06:00:23PM +0200, Robert Vazan wrote:
> > RV> +strutil_enforceLF(String const &in)
> 
> >  I think this should be implemented by calling wxTextFile::Translate(,
> > wxTextFileType_Unix).
> 
> It's undocumented in my copy of wxWindows 2.4.

 Yes, indeed, I'll add it. This is still not a reason to not use it however.

> > OTOH I don't know why is it needed at all? All
> > strings inside the program should use '\n' only, doing anything else is a
> > recipe for disaster.
> 
> Yes, but all strings aren't really LF-only.

 Why? This is what I'm afraid of: by adding this function we risk to
hide the *real* problem.

> There has been this problem
> that reopened messages had extra CR. It was visible with layout editor too.

 I didn't see it...

> In any case, wxTextCtrl doesn't swallow CR

 Sorry, I'm lost. Where do they come from originally? Why should
wxTextCtrl swallow them?

> and this extra check won't harm.

 Not true. Messages may be big and copying/changing a several MB string
can cause noticeable delays.

 Regards,
VZ


-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Mahogany-Developers mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/mahogany-developers

Reply via email to