[haiku-commits] Re: r41076 - haiku/trunk/src/kits/support

  • From: Jérôme Duval <korli@xxxxxxxxxxxxxxxx>
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Tue, 22 Mar 2011 08:42:15 +0100

2011/3/22  <clemens.zeidler@xxxxxxxxxxxxxx>:
> Author: czeidler
> Date: 2011-03-22 04:05:39 +0100 (Tue, 22 Mar 2011)
> New Revision: 41076
> Changeset: https://dev.haiku-os.org/changeset/41076
> Ticket: https://dev.haiku-os.org/ticket/7392
>
> Modified:
>   haiku/trunk/src/kits/support/String.cpp
> Log:
> Fix Trim() method for empty strings and strings only containing spaces. Fixes 
> #7392.

I'm wondering why isspace() is used instead of iswspace(). Internal
representation is supposed to be UTF-8, which isspace() doesn't
handle, right?

Bye,
Jérôme

Other related posts: