[prev in list] [next in list] [prev in thread] [next in thread] 

List:       wine-devel
Subject:    Re: [PATCH 1/2] msvcrt: Detect UTF-8 mode
From:       Alexandre Julliard <julliard () winehq ! org>
Date:       2012-08-27 17:50:58
Message-ID: 87mx1gkyv1.fsf () wine ! dyndns ! org
[Download RAW message or body]

Detlef Riekenberg <wine.dev@web.de> writes:

> @@ -1286,6 +1288,17 @@ static int msvcrt_get_flags(const MSVCRT_wchar_t* mode, int *open_flags, int* st
>      case '+':
>      case ' ':
>        break;
> +    case ',':
> +      if (!memcmp(mode, encoding_utf8, sizeof(encoding_utf8)) )
> +      {
> +        *open_flags |=  MSVCRT__O_U8TEXT;
> +        *open_flags &= ~(MSVCRT__O_TEXT | MSVCRT__O_BINARY | MSVCRT__O_WTEXT | MSVCRT__O_U16TEXT);
> +        mode += (sizeof(encoding_utf8)/sizeof(MSVCRT_wchar_t));
> +      }
> +      else
> +        FIXME("mode %s not supported\n", debugstr_w(mode -1));

Your string parsing needs more work.

-- 
Alexandre Julliard
julliard@winehq.org


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic