Added SDL_utf8strlcpy to copy at UTF-8 character boundaries.

Changed SDL_SendKeyboardText and SDL_SendEditingText to use SDL_utf8strlcpy.
This commit is contained in:
dewyatt 2010-07-13 15:05:45 -04:00
parent 7e8c791089
commit 34d5cdc704
3 changed files with 52 additions and 2 deletions

View file

@ -470,6 +470,9 @@ extern DECLSPEC size_t SDLCALL SDL_strlcpy(char *dst, const char *src,
size_t maxlen);
#endif
extern DECLSPEC size_t SDLCALL SDL_utf8strlcpy(char *dst, const char *src,
size_t dst_bytes);
#ifdef HAVE_STRLCAT
#define SDL_strlcat strlcat
#else