Changeset 135 for trunk/src


Ignore:
Timestamp:
Aug 28, 2009, 4:59:33 PM (16 years ago)
Author:
Dmitry A. Kuminov
Message:

core: Added a hack to use cp866 on OS/2 if LANG is ru_RU.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/corelib/codecs/qtextcodec.cpp

    r2 r135  
    472472
    473473static QTextCodec * ru_RU_hack(const char * i) {
     474#if defined(Q_OS_OS2)
     475    // @todo temporary hack. the proper one is to use the current process'
     476    // code page if LANG or its codepage part is missing
     477    return QTextCodec::codecForName("cp866");
     478#else
    474479    QTextCodec * ru_RU_codec = 0;
    475480
     
    499504
    500505    return ru_RU_codec;
     506#endif // defined(Q_OS_OS2)
    501507}
    502508
Note: See TracChangeset for help on using the changeset viewer.