Changeset 1cffa5654f186c41c33f851ed6458734561e2dfc

Show
Ignore:
Timestamp:
03/15/07 18:58:45 (1 year ago)
Author:
Damien Fouilleul <damienf@videolan.org>
git-committer:
Damien Fouilleul <damienf@videolan.org> 1173981525 +0000
git-parent:

[284187d15808b0c938991490e6c3848d6bfa0806]

git-author:
Damien Fouilleul <damienf@videolan.org> 1173981525 +0000
Message:

- unicode.c, wincp.c: compile fix

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • src/text/unicode.c

    re294c35 r1cffa56  
    143143    wchar_t wide[len]; 
    144144 
    145     MultiByteToWideChar (from ? CP_UTF8 : CP_ACP, 0, string, -1, wide, len); 
    146     len = 1 + WideCharToMultiByte (p->toCP, 0, wide, -1, NULL, 0, NULL, NULL); 
     145    MultiByteToWideChar (from ? CP_ACP : CP_UTF8, 0, string, -1, wide, len); 
     146    len = 1 + WideCharToMultiByte (from ? CP_UTF8 : CP_ACP, 0, wide, -1, NULL, 0, NULL, NULL); 
    147147    out = malloc (len); 
    148148    if (out == NULL) 
    149149        return NULL; 
    150150 
    151     WideCharToMultiByte (p->toCP, 0, wide, -1, out, len, NULL, NULL); 
     151    WideCharToMultiByte (from ? CP_UTF8 : CP_ACP, 0, wide, -1, out, len, NULL, NULL); 
    152152    return out; 
    153153#else 
  • src/text/wincp.c

    r9709cd0 r1cffa56  
    215215    return FindFallbackEncoding (psz_lang); 
    216216#else 
     217    static char buf[16] = ""; 
    217218    if (buf[0] == 0) 
    218219        snprintf (buf, sizeof (buf), "CP%u", GetACP ());