[vorbis-tools] 02/03: Use translations in oggdec
Martin Steghöfer
martin.steghoefer-guest at moszumanska.debian.org
Sun Jan 4 19:49:18 UTC 2015
This is an automated email from the git hooks/post-receive script.
martin.steghoefer-guest pushed a commit to branch master
in repository vorbis-tools.
commit a7243ebc736353d52b13dd0ee6239ae8812e0cac
Author: Martin Steghöfer <martin at steghoefer.eu>
Date: Fri Dec 12 13:02:52 2014 +0100
Use translations in oggdec
---
.../patches/0014-Use-translations-in-oggdec.patch | 31 ++++++++++++++++++++++
debian/patches/series | 1 +
2 files changed, 32 insertions(+)
diff --git a/debian/patches/0014-Use-translations-in-oggdec.patch b/debian/patches/0014-Use-translations-in-oggdec.patch
new file mode 100644
index 0000000..01e4fd5
--- /dev/null
+++ b/debian/patches/0014-Use-translations-in-oggdec.patch
@@ -0,0 +1,31 @@
+From: =?utf-8?q?Martin_Stegh=C3=B6fer?= <martin at steghoefer.eu>
+Date: Fri, 12 Dec 2014 13:02:33 +0100
+Subject: Use translations in oggdec
+
+---
+ oggdec/oggdec.c | 5 +++++
+ 1 file changed, 5 insertions(+)
+
+diff --git a/oggdec/oggdec.c b/oggdec/oggdec.c
+index 16f87ac..3f2ae7b 100644
+--- a/oggdec/oggdec.c
++++ b/oggdec/oggdec.c
+@@ -16,6 +16,7 @@
+ #include <getopt.h>
+ #include <errno.h>
+ #include <string.h>
++#include <locale.h>
+
+ #if defined(_WIN32) || defined(__EMX__) || defined(__WATCOMC__)
+ #include <fcntl.h>
+@@ -364,6 +365,10 @@ int main(int argc, char **argv)
+ {
+ int i;
+
++ setlocale(LC_ALL, "");
++ bindtextdomain(PACKAGE, LOCALEDIR);
++ textdomain(PACKAGE);
++
+ if(argc == 1) {
+ usage();
+ return 1;
diff --git a/debian/patches/series b/debian/patches/series
index bbc559d..00e698e 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -11,3 +11,4 @@
0011-Fix-ogg123-speex-stereo-Initialize-stereo-info-data-.patch
0012-Fix-ogg123-speex-playback-Initialize-channel-matrix.patch
0013-Don-t-ignore-stream-errors.patch
+0014-Use-translations-in-oggdec.patch
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-xiph/vorbis-tools.git
More information about the pkg-xiph-commits
mailing list