* Simplified file system specific variant of xutftowcsn, assumes output * buffer size is MAX_PATH wide chars and input string is \0-terminated, * fails with ENAMETOOLONG if input string is too long. */
| 131 | * fails with ENAMETOOLONG if input string is too long. |
| 132 | */ |
| 133 | static inline int xutftowcs_path(wchar_t *wcs, const char *utf) |
| 134 | { |
| 135 | int result = xutftowcsn(wcs, utf, MAX_PATH, -1); |
| 136 | if (result < 0 && errno == ERANGE) |
| 137 | errno = ENAMETOOLONG; |
| 138 | return result; |
| 139 | } |
| 140 | |
| 141 | /** |
| 142 | * Converts UTF-16LE encoded string to UTF-8. |
no test coverage detected