Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 39258
b: refs/heads/master
c: d02d48d
h: refs/heads/master
v: v3
  • Loading branch information
Al Viro authored and Linus Torvalds committed Oct 10, 2006
1 parent d4d591f commit e91cea6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 6ca1584173d0320f47464092eb180a17259cc3f9
refs/heads/master: d02d48d8650bf3e2011f25373dbcf87f3c19f16b
10 changes: 5 additions & 5 deletions trunk/fs/isofs/joliet.c
Original file line number Diff line number Diff line change
Expand Up @@ -14,18 +14,18 @@
* Convert Unicode 16 to UTF-8 or ASCII.
*/
static int
uni16_to_x8(unsigned char *ascii, u16 *uni, int len, struct nls_table *nls)
uni16_to_x8(unsigned char *ascii, __be16 *uni, int len, struct nls_table *nls)
{
wchar_t *ip, ch;
__be16 *ip, ch;
unsigned char *op;

ip = uni;
op = ascii;

while ((ch = get_unaligned(ip)) && len) {
int llen;
ch = be16_to_cpu(ch);
if ((llen = nls->uni2char(ch, op, NLS_MAX_CHARSET_SIZE)) > 0)
llen = nls->uni2char(be16_to_cpu(ch), op, NLS_MAX_CHARSET_SIZE);
if (llen > 0)
op += llen;
else
*op++ = '?';
Expand Down Expand Up @@ -82,7 +82,7 @@ get_joliet_filename(struct iso_directory_record * de, unsigned char *outname, st
len = wcsntombs_be(outname, de->name,
de->name_len[0] >> 1, PAGE_SIZE);
} else {
len = uni16_to_x8(outname, (u16 *) de->name,
len = uni16_to_x8(outname, (__be16 *) de->name,
de->name_len[0] >> 1, nls);
}
if ((len > 2) && (outname[len-2] == ';') && (outname[len-1] == '1')) {
Expand Down

0 comments on commit e91cea6

Please sign in to comment.