Changeset fcc3cd8 in mainline


Ignore:
Timestamp:
2011-06-28T07:35:01Z (13 years ago)
Author:
Oleg Romanenko <romanenko.oleg@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
4c3c4a5
Parents:
82374b2
Message:

Using new function to convert LFN UTF16 data to UTF8 string
in fat_directory_read()

Location:
uspace/srv/fs/fat
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/fs/fat/fat_dentry.c

    r82374b2 rfcc3cd8  
    266266}
    267267
    268 size_t fat_lfn_get_part(const uint16_t *src, size_t src_size, wchar_t *dst, size_t *offset)
     268size_t fat_lfn_get_part(const uint16_t *src, size_t src_size, uint16_t *dst, size_t *offset)
    269269{
    270270        while (src_size!=0 && (*offset)!=0) {
     
    279279}
    280280
    281 size_t fat_lfn_get_entry(const fat_dentry_t *d, wchar_t *dst, size_t *offset)
     281size_t fat_lfn_get_entry(const fat_dentry_t *d, uint16_t *dst, size_t *offset)
    282282{
    283283        fat_lfn_get_part(FAT_LFN_PART3(d), FAT_LFN_PART3_SIZE, dst, offset);
  • uspace/srv/fs/fat/fat_dentry.h

    r82374b2 rfcc3cd8  
    140140extern size_t fat_lfn_str_nlength(const uint16_t *, size_t);
    141141extern size_t fat_lfn_size(const fat_dentry_t *);
    142 extern size_t fat_lfn_get_part(const uint16_t *, size_t, wchar_t *, size_t *);
    143 extern size_t fat_lfn_get_entry(const fat_dentry_t *, wchar_t *, size_t *);
     142extern size_t fat_lfn_get_part(const uint16_t *, size_t, uint16_t *, size_t *);
     143extern size_t fat_lfn_get_entry(const fat_dentry_t *, uint16_t *, size_t *);
    144144extern size_t fat_lfn_set_part(const wchar_t *, size_t *, size_t, uint16_t *, size_t);
    145145extern size_t fat_lfn_set_entry(const wchar_t *, size_t *, size_t, fat_dentry_t *);
  • uspace/srv/fs/fat/fat_directory.c

    r82374b2 rfcc3cd8  
    154154{
    155155        fat_dentry_t *d = NULL;
    156         wchar_t wname[FAT_LFN_NAME_SIZE];
     156        uint16_t wname[FAT_LFN_NAME_SIZE];
    157157        size_t lfn_offset, lfn_size;
    158158        bool long_entry = false;
     
    199199                                        (checksum == fat_dentry_chksum(d->name))) {
    200200                                        wname[lfn_size] = '\0';
    201                                         if (wstr_to_str(name, FAT_LFN_NAME_SIZE, wname)!=EOK)
     201                                        if (utf16_to_str(name, FAT_LFN_NAME_SIZE, wname) != EOK)
    202202                                                fat_dentry_name_get(d, name);
    203203                                }
Note: See TracChangeset for help on using the changeset viewer.