Changeset 7f596ce in nscp for include/filter_framework.hpp


Ignore:
Timestamp:
03/08/08 09:31:19 (5 years ago)
Author:
Michael Medin <michael@…>
Branches:
master, 0.4.0, 0.4.1, 0.4.2, stable
Children:
febff5f
Parents:
a88c550
Message:
  • Changed so log is now in unicode format

Hopefully this will make it simpler to diagnose PDH issues in "strange locales".
If anyone hates this let me know and I will add an option to use "old ansi log".

  • Fixed so the console is logged as ANSI (properly) and all unicodes are discarded. This means "strangness" in unicode and non-us-ascii chars on the console,

so for details refer to the log-file which is proper unicode.

+ Since log module is loaded "after" the client has booted I added a "hello" message that prints the current version

(if you find this annoying let me know, I will make it optional :)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • include/filter_framework.hpp

    rc3057cd r7f596ce  
    205205        hasFilter_ = true; 
    206206      } catch (handlers::handler_exception e) { 
    207         throw parse_exception(e.getMessage()); 
     207        throw parse_exception(e.getMessage() + _T(": ") + value); 
     208      } catch (...) { 
     209        throw parse_exception(_T("Unknown parse exception: ") + value); 
    208210      } 
    209211      return *this; 
     
    304306      if (value.substr(0,1) == _T(">")) { 
    305307        max = value.substr(1); 
     308      } else if (value.substr(0,2) == _T("<>")) { 
     309        neq = value.substr(2); 
    306310      } else if (value.substr(0,1) == _T("<")) { 
    307311        min = value.substr(1); 
     
    309313        eq = value.substr(1); 
    310314      } else if (value.substr(0,2) == _T("!=")) { 
    311         neq = value.substr(2); 
    312       } else if (value.substr(0,2) == _T("<>")) { 
    313315        neq = value.substr(2); 
    314316      } else if (value.substr(0,1) == _T("!")) { 
Note: See TracChangeset for help on using the changeset viewer.