Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. I have "QTextcodec" problem...
Forum Update on Monday, May 27th 2025

I have "QTextcodec" problem...

Scheduled Pinned Locked Moved General and Desktop
2 Posts 2 Posters 1.4k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • W Offline
    W Offline
    whoami
    wrote on last edited by
    #1

    I have "HP-UX" Server two (A, B).
    Execute test code in A Server, works well.
    But, when execute test code in B Server, make core dump...
    Must suspect what?

    A Server result

    01 : QTextCodec* pLocaleCodec = QTextCodec::codecForLocale();
    01-01 : pLocaleCodec(bc90) not null
    01-02 : pLocaleCodec->name().data() : System

    ====================================================
    02 : QString strNewCodecName = "EUC-KR"
    03 : QTextCodec* pnewCodec = QTextCodec::codecForName(strNewCodecName.toAscii().data());

    B Server result

    QTextCodec *p = 0000000000000000
    Memory fault(coredump)

    test code
    @
    printf("\n");
    printf("====================================================\n");
    QTextCodec* pLocaleCodec = QTextCodec::codecForLocale();
    printf("01 : QTextCodec* pLocaleCodec = QTextCodec::codecForLocale();\n");

    if(pLocaleCodec != NULL)
    {
    printf("01-01 : pLocaleCodec(%x) not null\n",pLocaleCodec);
    printf("01-02 : pLocaleCodec->name().data() : %s\n",pLocaleCodec->name().data());
    }
    printf("====================================================\n");
    printf("\n");
    printf("====================================================\n");
    printf("02 : QString strNewCodecName = "EUC-KR"\n");
    QString strNewCodecName = "EUC-KR";
    printf("03 : QTextCodec* pnewCodec = QTextCodec::codecForName(strNewCodecName.toAscii().data());\n");
    QTextCodec* pnewCodec = QTextCodec::codecForName(strNewCodecName.toAscii().data());
    if( pnewCodec != NULL )
    {
    printf("03-01 : pnewCodec(%x) not null\n",pnewCodec);
    printf("03-02 : pnewCodec->name().data() : %s\n",pnewCodec->name().data());
    }
    printf("====================================================\n");
    @

    1 Reply Last reply
    0
    • J Offline
      J Offline
      jihong
      wrote on last edited by
      #2

      i got the same problem .did you reslove this?

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved