pike.git / lib / modules / Sql.pmod / tds.pike

version» Context lines:

pike.git/lib/modules/Sql.pmod/tds.pike:177:    string last_error;       //! Format and report an error.    void tds_error(string msg, mixed ... args)    {    if (sizeof(args)) msg = sprintf(msg, @args);    TDS_WERROR("ERROR: %s", msg);    predef::error(last_error = msg);    }    -  protected object utf16enc = Locale.Charset.encoder("UTF16LE"); +  protected object utf16enc = Charset.encoder("UTF16LE");    protected string string_to_utf16(string s)    {    return utf16enc->feed(s)->drain();    } -  protected object utf16dec = Locale.Charset.decoder("UTF16LE"); +  protected object utf16dec = Charset.decoder("UTF16LE");    protected string utf16_to_string(string s)    {    return utf16dec->feed(s)->drain();    }       //! A connection to a TDS server.    class Connection {    int major_version = DEF_MAJOR;    int minor_version = DEF_MINOR;    int port = DEF_PORT;