PortAudio / portaudio

PortAudio is a cross-platform, open-source C language library for real-time audio input and output.
Other
1.43k stars 296 forks source link

PortAudio should use UTF8 for character encoding of public API strings #200

Open PortAudio-admin opened 12 years ago

PortAudio-admin commented 12 years ago

Issue created by @RossBencina

After some discussion with Rob we concluded that strings passed in PortAudio public APIs should encode multibyte characters (device names etc) as UTF-8.

PortAudio implementations may store strings internally however they like.

This applies to:

Relevant strings can originate from host API implementations, and from platform-specific common code. As of now, the following APIs definitely return UTF8 strings. The others I'm unsure of. Please discuss below.

Host API code:

OS support code:

PortAudio-admin commented 12 years ago

Comment by @RossBencina

TRAC migration: propagating ticket status from TRAC

jmelas commented 3 years ago

This can be closed now

RossBencina commented 2 years ago

@jmelas Before closing I'd like to be sure that the issue is resolved for all host APIs. I've added a checklist to the head of this ticket. Aside from DSound and MME do you know with confidence which other host APIs are correctly returning UTF8 strings?

arkadijs commented 2 months ago

Would be also nice for API documentation to reflect this.