mirror of
https://github.com/alsa-project/alsa-utils
synced 2024-11-10 00:05:42 +01:00
Disable NLS support when --disable-nls is passed
Disable NLS support when --disable-nls is passed (bug#1514).
This commit is contained in:
parent
d9e433ad3e
commit
9dc666526f
4 changed files with 8 additions and 0 deletions
|
@ -364,8 +364,10 @@ int main(int argc, char *argv[])
|
|||
int do_names_list = 0, do_device_list = 0, do_pcm_list = 0;
|
||||
snd_pcm_info_t *info;
|
||||
|
||||
#ifdef ENABLE_NLS
|
||||
setlocale(LC_ALL, "");
|
||||
textdomain(PACKAGE);
|
||||
#endif
|
||||
|
||||
snd_pcm_info_alloca(&info);
|
||||
|
||||
|
|
|
@ -279,8 +279,10 @@ int main(int argc, char **argv)
|
|||
snd_seq_port_subscribe_t *subs;
|
||||
snd_seq_addr_t sender, dest;
|
||||
|
||||
#ifdef ENABLE_NLS
|
||||
setlocale(LC_ALL, "");
|
||||
textdomain(PACKAGE);
|
||||
#endif
|
||||
|
||||
while ((c = getopt_long(argc, argv, "dior:t:elx", long_option, NULL)) != -1) {
|
||||
switch (c) {
|
||||
|
|
|
@ -98,8 +98,10 @@ int main(int argc, char **argv)
|
|||
int port = DEFAULT_PORT;
|
||||
char *source = NULL, *dest = NULL;
|
||||
|
||||
#ifdef ENABLE_NLS
|
||||
setlocale(LC_ALL, "");
|
||||
textdomain(PACKAGE);
|
||||
#endif
|
||||
|
||||
while ((c = getopt_long(argc, argv, "p:s:d:vi", long_option, NULL)) != -1) {
|
||||
switch (c) {
|
||||
|
|
|
@ -530,8 +530,10 @@ int main(int argc, char *argv[]) {
|
|||
{NULL, 0, NULL, 0 },
|
||||
};
|
||||
|
||||
#ifdef ENABLE_NLS
|
||||
setlocale(LC_ALL, "");
|
||||
textdomain(PACKAGE);
|
||||
#endif
|
||||
|
||||
snd_pcm_hw_params_alloca(&hwparams);
|
||||
snd_pcm_sw_params_alloca(&swparams);
|
||||
|
|
Loading…
Reference in a new issue