Displaying 5 results from an estimated 5 matches for "plibc".
Did you mean:
glibc
2013 Mar 17
3
Patch to add Unicode filename support for win32 flac
...ks go into the compatibility module. Eg for open()
> calls:
>
> int _flac_open(....){ #if win32 ... #else if os2 ... #else ...
> [generic call to open() without hacks] #endif }
>
> All those ifdefs will at least be confined rather than spread out
> through the code.
I did it plibc-style:
in compat.h:
#if defined(_WIN32)
#define FOPEN grabbag__fopen_utf8_wrapper
#else
#define FOPEN fopen
#endif
in grabbag:
#if defined(_WIN32)
<implement grabbag__fopen_utf8_wrapper, which has the same signature
as fopen, but does utf8->utf16 conversion internally, then calls wfopen>...
2013 Mar 17
1
Patch to add Unicode filename support for win32 flac
JonY wrote:
> On 3/17/2013 23:01, LRN wrote:
> >> All those ifdefs will at least be confined rather than spread out
> >> through the code.
> > I did it plibc-style:
> >
> > in compat.h:
> > #if defined(_WIN32)
> > #define FOPEN grabbag__fopen_utf8_wrapper
> > #else
> > #define FOPEN fopen
> > #endif
> >
> > in grabbag:
> > #if defined(_WIN32)
> > <implement grabbag__fopen_utf8_wrappe...
2013 Mar 18
1
Patch to add Unicode filename support for win32 flac
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 18.03.2013 02:10, JonY wrote:
> On 3/17/2013 23:01, LRN wrote:
>>> All those ifdefs will at least be confined rather than spread
>>> out through the code.
>> I did it plibc-style:
>>
>> in compat.h: #if defined(_WIN32) #define FOPEN
>> grabbag__fopen_utf8_wrapper #else #define FOPEN fopen #endif
>>
>> in grabbag: #if defined(_WIN32) <implement
>> grabbag__fopen_utf8_wrapper, which has the same signature as
>> fopen, but d...
2013 Mar 18
0
flac-dev Digest, Vol 100, Issue 42
...c:
> Date: Mon, 18 Mar 2013 06:10:44 +0800
> Subject: Re: [flac-dev] Patch to add Unicode filename support for win32
> flac
> On 3/17/2013 23:01, LRN wrote:
> >> All those ifdefs will at least be confined rather than spread out
> >> through the code.
> > I did it plibc-style:
> >
> > in compat.h:
> > #if defined(_WIN32)
> > #define FOPEN grabbag__fopen_utf8_wrapper
> > #else
> > #define FOPEN fopen
> > #endif
> >
> > in grabbag:
> > #if defined(_WIN32)
> > <implement grabbag__fopen_utf8_wrapper,...
2013 Mar 17
2
Patch to add Unicode filename support for win32 flac
JonY wrote:
> On 3/17/2013 10:33, Janne Hyv?rinen wrote:
> > Here's a patch that makes MSVC compiled flac.exe able to use wildcards
> > and encode/decode files with Unicode characters in names. It may not be
> > the prettiest code but it fulfills its primary purpose.
> > I tried to alter FLAC code as little as possible. It replaces argv with
> > utf-8 encoded