Displaying 20 results from an estimated 3000 matches similar to: "flac on windows 2000"
2014 Aug 08
1
[PATCH] for win_utf8_io.c
Janne Hyv?rinen wrote:
> The break that patch #3 removes is there for a reason. If there is an
> error in string conversion there's no point in continuing the operation.
> All conversions are discarded if something failed so not exiting from
> the loop is wasted effort.
Here is the current code:
ret = 0;
for (i=0; i<wargc; i++) {
if ((utf8argv[i] =
2016 Jan 09
0
flac, UTF-8 and Windows
That's how I understand how flac.exe works with unicode under Windows:
There's a flag win_utf8_io_codepage that is equal either to CP_ACP or to CP_UTF8.
Initially it's equal to CP_ACP.
Then flac.exe/metaflac.exe call get_utf8_argv() that do some things and sets
win_utf8_io_codepage to CP_UTF8 on success. This is the only way to set this
flag to CP_UTF8. The programs continue to work
2014 Aug 08
4
[PATCH] for win_utf8_io.c
For better readability the patch is divided by 3 parts.
Part #1: for a bit better security replace
vsprintf(utmp, format, argptr)
with
vsnprintf_s(utmp, 32768, _TRUNCATE, format, argptr)
Part #2: potential memleak fixed: utf8argv[i] are not freed
when utf8argv itself is freed.
Part #3: 'if (ret != 0) break;' line seems redundant.
-------------- next part --------------
A
2013 Apr 20
1
One tiny Windows Unicode patch
I have been doing some heavy testing with the new FLAC version, and I
found that CreateFile function in grabbag had been left out of UTF-8
treatment at some point. This causes re-encoding an existing flac to the
same name to break the file if it contains non-ascii characters.
Attached patch fixes this.
-------------- next part --------------
diff --git a/include/share/win_utf8_io.h
2011 Sep 20
2
[LLVMdev] [cfe-dev] Unicode path handling on Windows
On Tue, Sep 20, 2011 at 11:52 AM, Nikola Smiljanic <popizdeh at gmail.com> wrote:
> I spent some more time on this. My idea was to use functionality from
> llvm::sys::fs like file_status instead of stat struct, but as it turns out
> this is not really possible. file_status structure is not a replacement for
> stat, nor are there functions inside llvm::sys::fs that can replace
2017 Jan 14
2
[PATCH 0/5] Allow multiple targets to be disabled
Hugo Beauzée-Luyssen wrote:
>> configure.ac: Allow the programs to be disabled
>> configure.ac: Allow bench to be disabled
>> configure.ac: Don't build any tests when they are explicitely disabled
>> configure.ac: Allow examples to be disabled
>> win_utf8_io: Avoid forbidden functions when building for WinRT/UWP
>>
>> configure.ac
2014 Sep 12
2
win_utf8_io, print_console and uint32_t
Currently it is required to include share/compat.h before inclusion
of share/win_utf8_io.h. That's because of print_console() declaration:
its 3rd argument have type 'uint32_t' which is defined in share/compat.h.
So share/win_utf8_io.h depends on share/compat.h which in turn
includes share/win_utf8_io.h. Not a problem but it's a bit ugly imho.
Actually, the 3rd argument of
2014 May 24
2
make dllimport/dllexport attributes work with mingw (and others)
On 5/24/14, lvqcl <lvqcl.mail at gmail.com> wrote:
> Ozkan Sezer <sezeroz at gmail.com> ?????(?) ? ????? ?????? Sat, 24 May 2014
> 10:16:15 +0400:
>
>> - changes the _MSC_VER condition to universally _WIN32: MSVC, as well
>> as GCC supports this.
>
> MSYS/MinGW 4.8.3, 4.9.0 can't compile code from git after this patch:
>
> format.c:47:22: error:
2016 Jan 28
2
Lets do a 1.3.2 release
lvqcl wrote:
> all I can suggest
> is to apply this patch, then fix issues if they'll happen after
> this.
But seriously, as a matter of fact win_utf8_io is a part of libFLAC.
Functions from libFLAC call functions from win_utf8_io...
For example: FLAC__stream_decoder_init_file() calls init_file_internal_()
that calls flac_fopen() that is defined as fopen_utf8().
Currently
2016 Jan 09
1
[PATCH] minor fix for win_utf8_io.c
I noticed that share/win_utf8_io.h includes windows.h anyway,
so another include in win_utf8_io.c is unnecessary.
Also, the comment there is incorrect.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: win_utf8_io.patch
Type: application/octet-stream
Size: 423 bytes
Desc: not available
Url :
2016 Jan 31
3
test_streams dependencies
test_streams currently depends on grabbag and (on Windows) on win_utf8_io libs.
It depends on win_utf8_io only because it uses flac_fopen() function.
It will become to depend on libFLAC when all file functions will be moved
from win_utf8_io to libFLAC. Not a big problem, but it is possible to avoid
this dependency by replacing flac_fopen() with fopen().
test_streams doesn't open/create
2017 Jan 06
1
[PATCH 5/5] win_utf8_io: Avoid forbidden functions when building for WinRT/UWP
Hugo Beauzée-Luyssen <hugo at beauzee.fr> wrote:
> ---
> src/share/win_utf8_io/win_utf8_io.c | 9 +++++++++
> 1 file changed, 9 insertions(+)
>
> diff --git a/src/share/win_utf8_io/win_utf8_io.c
> b/src/share/win_utf8_io/win_utf8_io.c
> index c61d27f3..1437b41e 100644
> --- a/src/share/win_utf8_io/win_utf8_io.c
> +++ b/src/share/win_utf8_io/win_utf8_io.c
>
2016 Jan 09
2
About libFLAC -> win_utf8_io dependency
First, this dependency exists only on Windows. For obvious
reasons such dependency cannot exist on Linux/FreeBSD/OSX/etc.
Previous versions (up to 1.2.1) didn't support Unicode filenames
on Windows. And then it was decided to add such support.
Windows uses UTF-16, where characters have 16-bit wchar_t type.
LibFLAC receives strings only via char*.
So one way to add Unicode support is to add
2016 Jan 09
2
Lets do a 1.3.2 release
lvqcl wrote:
> IIRC libFLAC.a built with "./autogen.sh && ./configure && make"
> contains all functions from win_utf8_io. So I think it's possible
> to change some Makefile.lite or maybe build/*.mk files so that
> there will be no need to add -lwin_utf8_io to -lFLAC.
Version 2 of my patch attached, which fixes the problem for the
Makefile.lite and Visual
2016 Jan 29
2
Lets do a 1.3.2 release
Erik de Castro Lopo wrote:
>> Currently functions in win_utf8_io.c are a compatibility layer for
>> libFLAC. I can't see reasons not to move win_utf8_io.c into libFLAC.
>
> Ok, lets do it.
I just thought that it's more complicated. All *file* functions should
really be moved to libFLAC. But other functions should not, because
libFLAC doesn't use them.
Two of them -
2015 Aug 08
1
[PATCH] always call FreeLibrary()
get_utf8_argv() function calls LoadLibrary to load msvcrt.dll,
but doesn't call FreeLibrary() if it returns an error.
Currently both flac.exe and metaflac.exe exit immediately
if get_utf8_argv() fails, so it's not a big problem. But IMHO
it's better no to have leaked resources anyway.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: win_utf_io.patch
2016 Jan 09
3
Lets do a 1.3.2 release
lvqcl wrote:
>>> Win_utf8 stuff should not be included in libflac since it's only to be
>>> used by the flac.exe frontend. It is not needed by other programs nor
>>> would they benefit from it without doing the extra work of converting
>>> their ansi filenames and functions to utf-8.
>>>
>>>> Version 2 of my patch attached, which fixes
2016 Jan 09
2
Lets do a 1.3.2 release
Janne Hyv?rinen wrote:
> Win_utf8 stuff should not be included in libflac since it's only to be
> used by the flac.exe frontend. It is not needed by other programs nor
> would they benefit from it without doing the extra work of converting
> their ansi filenames and functions to utf-8.
>
>> Version 2 of my patch attached, which fixes the problem for the
>>
2016 Jan 31
0
test_streams dependencies
My assumption is that the code was written to call flac_fopen() so that it is portable to every operating system, even those without fopen(). If you replace flac_fopen() with fopen(), then the tests won't compile on systems that don't have fopen().
You could simply have the following:
#if defined _MSC_VER || defined __MINGW32__
#define flac_fopen fopen
#endif
In a header, or simply at
2016 Jan 22
0
Lets do a 1.3.2 release
lvqcl wrote:
> Evan Ramos wrote:
>
>> Does my patch fix this issue on your end?
>
>
> BTW, your patch also changes MSVC solution/projects. What's the
> problem with them? I built flac/metaflac/libFLAC libraries
> with Visual Studio many times, and haven't noticed anything wrong.
As far as I understand the problem: if some program wants to use
libFLAC.lib, it