Ignore:
Timestamp:
Mar 15, 2006, 2:26:37 PM (19 years ago)
Author:
eseidel
Message:

2006-03-15 Eric Seidel <[email protected]>

Reviewed by mjs.

Fix CString copy constructor, fixes Date.parse("") on Win32.

  • kjs/date_object.cpp: (KJS::DateProtoFunc::callAsFunction):
  • kjs/ustring.cpp: (KJS::CString::CString): (KJS::CString::operator=):
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/kjs/date_object.cpp

    r13089 r13311  
    559559  char timebuffer[bufsize];
    560560  CString oldlocale = setlocale(LC_TIME, 0);
    561   if (!oldlocale.c_str())
     561  if (!oldlocale.len())
    562562    oldlocale = setlocale(LC_ALL, 0);
    563563  // FIXME: Where's the code to set the locale back to oldlocale?
Note: See TracChangeset for help on using the changeset viewer.