From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from synology.com ([59.124.61.242]:55541 "EHLO synology.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S965311AbdKQIVc (ORCPT ); Fri, 17 Nov 2017 03:21:32 -0500 From: Ting-Chang Hou To: linux-fsdevel@vger.kernel.org Cc: Ting-Chang Hou Subject: [PATCH] hfsplus: fix the bug that cannot recognize files with hangul file name Date: Fri, 17 Nov 2017 16:20:05 +0800 Message-Id: <1510906805-2142-1-git-send-email-tchou@synology.com> Sender: linux-fsdevel-owner@vger.kernel.org List-ID: The unicode of hangul from macOS is decomposed. There has a bug that mistake decomposed unicode for composed when change unicode to ascii, so it cannot recognize the hangul correctly. Signed-off-by: Ting-Chang Hou --- fs/hfsplus/unicode.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/hfsplus/unicode.c b/fs/hfsplus/unicode.c index dfa90c2..2daf7b0 100644 --- a/fs/hfsplus/unicode.c +++ b/fs/hfsplus/unicode.c @@ -135,7 +135,7 @@ int hfsplus_uni2asc(struct super_block *sb, ustrlen = be16_to_cpu(ustr->length); len = *len_p; ce1 = NULL; - compose = !test_bit(HFSPLUS_SB_NODECOMPOSE, &HFSPLUS_SB(sb)->flags); + compose = test_bit(HFSPLUS_SB_NODECOMPOSE, &HFSPLUS_SB(sb)->flags); while (ustrlen > 0) { c0 = be16_to_cpu(*ip++); -- 2.7.4