~ubuntu-branches/ubuntu/precise/wine1.3/precise

« back to all changes in this revision

Viewing changes to dlls/mlang/tests/mlang.c

  • Committer: Package Import Robot
  • Author(s): Scott Ritchie
  • Date: 2012-01-17 09:00:34 UTC
  • mfrom: (1.1.2)
  • Revision ID: package-import@ubuntu.com-20120117090034-eyhpp02jawlvrrkc
Tags: 1.3.37-0ubuntu1
* New upstream release
  - Many changes
* Convert to 3.0 source format
* debian/control:
  - Remove pre-multiarch amd64 build depends
  - Remove quilt build depends
  - Recommend proper gecko versions
* debian/rules:
  - Remove manual dh_quilt patch and unpatch
  - No need to uuencode/uudecode anymore with new source format

Show diffs side-by-side

added added

removed removed

Lines of Context:
809
809
    DWORD dwCodePages, dwManyCodePages;
810
810
    DWORD dwCmpCodePages;
811
811
    UINT CodePage;
812
 
    static const WCHAR str[3] = { 'd', 0x0436, 0xff90 };
 
812
    static const WCHAR str[] = { 'd', 0x0436, 0xff90 };
813
813
    LONG processed;
814
814
    HRESULT ret;
815
815
 
1202
1202
        ok(!lstrcmpA(rfc1766A, info_table[i].rfc1766),
1203
1203
            "#%02d: got '%s' (expected '%s')\n", i, rfc1766A, info_table[i].rfc1766);
1204
1204
 
1205
 
        /* Some IE versions truncate an oversized name one character to short */
1206
 
        lstrcpyW(short_broken_name, info_table[i].broken_name);
1207
 
        short_broken_name[MAX_LOCALE_NAME - 2] = '\0';
 
1205
        /* Some IE versions truncate an oversized name one character too short */
 
1206
        if (info_table[i].broken_name) {
 
1207
            lstrcpyW(short_broken_name, info_table[i].broken_name);
 
1208
            short_broken_name[MAX_LOCALE_NAME - 2] = 0;
 
1209
        }
1208
1210
 
1209
1211
        if (info_table[i].todo & TODO_NAME) {
1210
1212
            todo_wine
1211
1213
            ok( (!lstrcmpW(prfc->wszLocaleName, info_table[i].localename)) ||
 
1214
               (info_table[i].broken_name && (
1212
1215
                broken(!lstrcmpW(prfc->wszLocaleName, info_table[i].broken_name)) || /* IE < 6.0 */
1213
 
                broken(!lstrcmpW(prfc->wszLocaleName, short_broken_name)),
 
1216
                broken(!lstrcmpW(prfc->wszLocaleName, short_broken_name)))),
1214
1217
                "#%02d: got %s (expected %s)\n", i,
1215
1218
                wine_dbgstr_w(prfc->wszLocaleName), wine_dbgstr_w(info_table[i].localename));
1216
1219
        }
1217
1220
        else
1218
1221
            ok( (!lstrcmpW(prfc->wszLocaleName, info_table[i].localename)) ||
 
1222
               (info_table[i].broken_name && (
1219
1223
                broken(!lstrcmpW(prfc->wszLocaleName, info_table[i].broken_name)) || /* IE < 6.0 */
1220
 
                broken(!lstrcmpW(prfc->wszLocaleName, short_broken_name)),
 
1224
                broken(!lstrcmpW(prfc->wszLocaleName, short_broken_name)))),
1221
1225
                "#%02d: got %s (expected %s)\n", i,
1222
1226
                wine_dbgstr_w(prfc->wszLocaleName), wine_dbgstr_w(info_table[i].localename));
1223
1227