clean up
This commit is contained in:
parent
cecb1cbeb2
commit
c7b0f60fba
1 changed files with 2 additions and 2 deletions
|
@ -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])
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue