VirtualBox

Ignore:
Timestamp:
Jun 29, 2009 7:30:00 AM (15 years ago)
Author:
vboxsync
Message:

Linux shared folders: Linux 2.6.31 fixes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/linux/sharedfolders/utils.c

    r20707 r21014  
    470470                        in += nb;
    471471
     472#if LINUX_VERSION_CODE >= KERNEL_VERSION (2, 6, 31)
     473                        nb = utf32_to_utf8 (uni, out, out_bound_len);
     474#else
    472475                        nb = utf8_wctomb (out, uni, out_bound_len);
     476#endif
    473477                        if (nb < 0) {
    474478                                LogFunc(("nls->uni2char failed %x %d\n",
     
    528532                        wchar_t uni;
    529533
     534#if LINUX_VERSION_CODE >= KERNEL_VERSION (2, 6, 31)
     535                        nb = utf8_to_utf32 (in, in_bound_len, &uni);
     536#else
    530537                        nb = utf8_mbtowc (&uni, in, in_bound_len);
     538#endif
    531539                        if (nb < 0) {
    532540                                LogFunc(("utf8_mbtowc failed(%s) %x:%d\n",
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette