173
177
static int udf_UTF8toCS0(dstring *ocu, struct ustr *utf, int length)
175
179
unsigned c, i, max_val, utf_char;
178
182
memset(ocu, 0, sizeof(dstring) * length);
186
191
for (i = 0U; i < utf->u_len; i++) {
187
196
c = (uint8_t)utf->u_name[i];
189
198
/* Complete a multi-byte UTF-8 character */