Commit 8a1d0833 authored by Ian Lynagh's avatar Ian Lynagh
Browse files

Tweak environment001

parent 53f7e4a7
......@@ -5,12 +5,12 @@ main = do
putStrLn var0
-- The length proves that we actually decoded it properly, not just read it
-- in as latin1 or something (#3308, #3307)
print (length var0)
putStrLn ("Test 1: " ++ show (length var0))
[arg0] <- getArgs
putStrLn arg0
print (length arg0)
putStrLn ("Test 2: " ++ show (length arg0))
[arg1] <- withArgs ["你好!"] getArgs
putStrLn arg1
print (length arg1)
putStrLn ("Test 3: " ++ show (length arg1))
马克斯
3
Test 1: 3
1
Test 2: 1
你好!
3
Test 3: 3
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment