diff options
author | Dave Reisner <dreisner@archlinux.org> | 2013-09-18 12:12:04 -0400 |
---|---|---|
committer | Dave Reisner <dreisner@archlinux.org> | 2013-09-19 11:50:34 -0400 |
commit | 8f6ce71fe79d897b67157d92869db87ee2042af6 (patch) | |
tree | 30055a64faf4d6b3aeb0ba84979627a4a23c16b3 /src/shared/utf8.h | |
parent | 7991ac34ab08421415b907e42775c5539a4a5bbb (diff) |
device-nodes: move device node specific code to own file
In the process, rename udev_encode_string which is poorly named for what
it does. It deals specifically with encoding names that udev creates and
has its own rules: utf8 is valid but some ascii is not (e.g. path
separators), and everything else is simply escaped. Rename it to
encode_devnode_name.
Diffstat (limited to 'src/shared/utf8.h')
-rw-r--r-- | src/shared/utf8.h | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/shared/utf8.h b/src/shared/utf8.h index 22e13461de..96a03ea7cb 100644 --- a/src/shared/utf8.h +++ b/src/shared/utf8.h @@ -35,5 +35,3 @@ char *ascii_filter(const char *s); char *utf16_to_utf8(const void *s, size_t length); int utf8_encoded_valid_unichar(const char *str); -int is_utf8_encoding_whitelisted(char c, const char *white); -int udev_encode_string(const char *str, char *str_enc, size_t len); |