Author: faridz Date: Wed Sep 26 07:27:43 2007 New Revision: 579667 URL: http://svn.apache.org/viewvc?rev=579667&view=rev Log: 2007-09-26 Farid Zaripov <[EMAIL PROTECTED]>
* _money_get.cc (_C_get): If no characters available during parsing sign part of the pattern, then set failbit only when positive_sign and negative_sign both are not empty. Else set negative sign if positive_sign is not empty and negative_sign is empty. Modified: incubator/stdcxx/trunk/include/loc/_money_get.cc Modified: incubator/stdcxx/trunk/include/loc/_money_get.cc URL: http://svn.apache.org/viewvc/incubator/stdcxx/trunk/include/loc/_money_get.cc?rev=579667&r1=579666&r2=579667&view=diff ============================================================================== --- incubator/stdcxx/trunk/include/loc/_money_get.cc (original) +++ incubator/stdcxx/trunk/include/loc/_money_get.cc Wed Sep 26 07:27:43 2007 @@ -165,7 +165,10 @@ case /* '\3' */ money_base::sign: { if (__it == __end) { - __ebits |= _RW::__rw_failbit; + if (__ps.size () && __ns.size ()) + __ebits |= _RW::__rw_failbit; + else + __sign = __ps.empty () - 1; break; }