This commit is contained in:
Joey Hess 2010-11-02 16:02:43 -04:00
parent cecb1cbeb2
commit c7b0f60fba

View file

@ -397,8 +397,8 @@ encodeGitFile s = (foldl (++) "\"" (map echar s)) ++ "\""
where where
showoctal i = "\\" ++ (printf "%03o" i) showoctal i = "\\" ++ (printf "%03o" i)
e_num c = showoctal $ ord c e_num c = showoctal $ ord c
-- unicode character is decomposed to Word8 -- unicode character is decomposed to
-- and each is shown with e_num -- Word8s and each is shown in octal
e_utf c = foldl (++) "" $ map showoctal $ e_utf c = foldl (++) "" $ map showoctal $
(encode [c] :: [Word8]) (encode [c] :: [Word8])