[Flac-dev] FLAC 1.0.4 beta released

Miroslav Lichvar lichvarm at phoenix.inf.upol.cz
Thu Sep 12 20:59:01 PDT 2002


On Thu, Sep 12, 2002 at 10:54:04PM +0200, Miroslav Lichvar wrote:
> I tried tagging using metaflac with some iso-8859-2 chars, but these
> chars were replaced by '#' chars, something wrong is here.

Ok, here is simple patch, it works for me, but I'm not familiar with
this stuff.

BTW, metaflac --list prints comments in raw utf8, it can screw
terminal easily.

-- 
Miroslav Lichvar
-------------- next part --------------
--- src/metaflac/main.c.orig	2002-09-12 23:44:54.000000000 +0200
+++ src/metaflac/main.c	2002-09-12 23:59:10.000000000 +0200
@@ -33,6 +33,7 @@
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
+#include <locale.h>
 
 #if 0
 /*[JEC] was:#if HAVE_GETOPT_LONG*/
@@ -308,6 +309,7 @@
 	CommandLineOptions options;
 	int ret = 0;
 
+	setlocale(LC_ALL, "");
 	init_options(&options);
 
 	if(parse_options(argc, argv, &options))


More information about the Flac-dev mailing list