From: Nakajima Akira Date: Thu, 9 Apr 2015 08:27:39 +0000 (+0900) Subject: Fix to convert SURROGATE PAIR X-Git-Tag: omap-for-v4.2/wakeirq-drivers-v2^2~2^2~47^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b29103076bec8316e155e71309dc0fba499022c6;p=pandora-kernel.git Fix to convert SURROGATE PAIR Garbled characters happen by using surrogate pair for filename. (replace each 1 character to ??) [Steps to Reproduce for bug] client# touch $(echo -e '\xf0\x9d\x9f\xa3') client# touch $(echo -e '\xf0\x9d\x9f\xa4') client# ls -li You see same inode number, same filename(=?? and ??) . Fix the bug about these functions do not consider about surrogate pair (and IVS). cifs_utf16_bytes() cifs_mapchar() cifs_from_utf16() cifsConvertToUTF16() Reported-by: Nakajima Akira Signed-off-by: Nakajima Akira Signed-off-by: Steve French --- Reading git-diff-tree failed