projects
/
platform
/
upstream
/
pulseaudio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
518338a
)
Do something sensible when compiled without iconv support
author
Maarten Bosmans
<mkbosmans@gmail.com>
Mon, 10 Oct 2011 07:27:16 +0000
(09:27 +0200)
committer
Arun Raghavan
<arun.raghavan@collabora.co.uk>
Tue, 11 Oct 2011 17:18:21 +0000
(22:48 +0530)
Without this fix, pacat won't start up, because it is unable to set the stream name.
src/pulse/utf8.c
patch
|
blob
|
history
diff --git
a/src/pulse/utf8.c
b/src/pulse/utf8.c
index
fe7bcd2
..
773a1f8
100644
(file)
--- a/
src/pulse/utf8.c
+++ b/
src/pulse/utf8.c
@@
-249,11
+249,16
@@
char* pa_locale_to_utf8 (const char *str) {
char* pa_utf8_to_locale (const char *str) {
pa_assert(str);
- return NULL;
+
+ return pa_ascii_filter(str);
}
char* pa_locale_to_utf8 (const char *str) {
pa_assert(str);
+
+ if (pa_utf8_valid(str))
+ return pa_xstrdup(str);
+
return NULL;
}