Changeset 349 for trunk/src


Ignore:
Timestamp:
Nov 26, 2009, 12:34:37 AM (15 years ago)
Author:
Dmitry A. Kuminov
Message:

corelib/codec: Implemented the "System" text codec which is always used as the default codec for the locale and uses the OS/2 ULS API to perform conversions from the process codepage to Unicode and back. The encoding part of the LANG variable is no longer recognized (#46).

File:
1 edited

Legend:

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

    r340 r349  
    5959#endif
    6060
     61
     62
     63
     64
     65
     66
    6167#include "qutfcodec_p.h"
    6268#include "qsimplecodec_p.h"
     
    392398}
    393399
     400
     401
     402
     403
     404
     405
     406
     407
     408
     409
     410
     411
     412
     413
     414
     415
     416
     417
     418
     419
     420
     421
     422
     423
     424
     425
     426
     427
     428
     429
     430
     431
     432
     433
     434
     435
     436
     437
     438
     439
     440
     441
     442
     443
     444
     445
     446
     447
     448
     449
     450
     451
     452
     453
     454
     455
     456
     457
     458
     459
     460
     461
     462
     463
     464
     465
     466
     467
     468
     469
     470
     471
     472
     473
     474
     475
     476
     477
     478
     479
     480
     481
     482
     483
     484
     485
     486
     487
     488
     489
     490
     491
     492
     493
     494
     495
     496
     497
     498
     499
     500
     501
     502
     503
     504
     505
     506
     507
     508
     509
     510
     511
     512
     513
     514
     515
     516
     517
     518
     519
     520
     521
     522
     523
     524
     525
     526
     527
     528
     529
     530
     531
     532
     533
     534
     535
     536
     537
     538
     539
     540
     541
     542
     543
     544
     545
     546
     547
     548
     549
     550
     551
     552
     553
     554
     555
     556
     557
     558
     559
     560
     561
     562
     563
     564
     565
     566
     567
     568
     569
     570
     571
     572
     573
     574
     575
     576
     577
     578
     579
     580
     581
     582
     583
     584
     585
     586
     587
     588
     589
     590
     591
     592
     593
     594
     595
     596
     597
     598
     599
     600
     601
     602
     603
     604
     605
     606
     607
     608
     609
     610
     611
     612
     613
     614
     615
     616
     617
     618
     619
     620
     621
     622
     623
     624
     625
     626
     627
     628
     629
     630
     631
     632
     633
    394634#else
    395635
     
    509749#endif
    510750
    511 #if !defined(Q_OS_WIN32) && !defined(Q_OS_WINCE)
     751#if !defined(Q_OS_WIN32) && !defined(Q_OS_WINCE)
    512752static QTextCodec *checkForCodec(const char *name) {
    513753    QTextCodec *c = QTextCodec::codecForName(name);
     
    529769{
    530770#if defined(Q_OS_WIN32) || defined(Q_OS_WINCE)
     771
     772
    531773    localeMapper = QTextCodec::codecForName("System");
    532774#else
     
    712954    (void) new QWindowsLocalCodec;
    713955#endif // Q_OS_WIN32
     956
     957
     958
     959
    714960
    715961    (void)new QUtf16Codec;
Note: See TracChangeset for help on using the changeset viewer.