Changeset cffa5b7 in rtems


Ignore:
Timestamp:
Jun 4, 2013, 11:56:19 AM (6 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
4.11, master
Children:
c295e09
Parents:
27170bae
Message:

libblock: Use UTF-8 converter in media manager

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpukit/libblock/src/media.c

    r27170bae rcffa5b7  
    88
    99/*
    10  * Copyright (c) 2009-2012 embedded brains GmbH.  All rights reserved.
     10 * Copyright (c) 2009-2013 embedded brains GmbH.  All rights reserved.
    1111 *
    1212 *  embedded brains GmbH
    13  *  Obere Lagerstr. 30
     13 *  Dornierstr. 4
    1414 *  82178 Puchheim
    1515 *  Germany
     
    3030#include <rtems/bdpart.h>
    3131#include <rtems/libio.h>
     32#include <rtems/dosfs.h>
    3233
    3334#include <rtems/media.h>
     
    473474
    474475  if (state == RTEMS_MEDIA_STATE_READY) {
     476    rtems_dosfs_mount_options mount_options;
    475477    char *mount_path = NULL;
    476478
     
    491493      return RTEMS_IO_ERROR;
    492494    }
     495
     496    memset(&mount_options, 0, sizeof(mount_options));
     497
     498    /* In case this fails, we fall back to use the default converter */
     499    mount_options.converter = rtems_dosfs_create_utf8_converter("CP850");
    493500
    494501    rv = mount(
     
    497504      RTEMS_FILESYSTEM_TYPE_DOSFS,
    498505      RTEMS_FILESYSTEM_READ_WRITE,
    499       NULL
     506      &mount_options
    500507    );
    501508    if (rv != 0) {
Note: See TracChangeset for help on using the changeset viewer.