summaryrefslogtreecommitdiff
path: root/src/GF/Compile
diff options
context:
space:
mode:
authorkrasimir <krasimir@chalmers.se>2008-06-27 10:33:46 +0000
committerkrasimir <krasimir@chalmers.se>2008-06-27 10:33:46 +0000
commit60c2d054ee2e34014b081f331ced46b102d2fdbc (patch)
treef228229437cdad25f20d210348fad2506223f7e0 /src/GF/Compile
parent5c713d8f027a9b6be687ee3f7e917e8bd2115773 (diff)
the shell now supports cp1251 coding with se command. works with the word completion as well
Diffstat (limited to 'src/GF/Compile')
-rw-r--r--src/GF/Compile/Coding.hs7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/GF/Compile/Coding.hs b/src/GF/Compile/Coding.hs
index 9d271964f..a226265c5 100644
--- a/src/GF/Compile/Coding.hs
+++ b/src/GF/Compile/Coding.hs
@@ -3,6 +3,7 @@ module GF.Compile.Coding where
import GF.Grammar.Grammar
import GF.Grammar.Macros
import GF.Text.UTF8
+import GF.Text.CP1251
import GF.Infra.Modules
import GF.Infra.Option
import GF.Data.Operations
@@ -47,9 +48,3 @@ codeSourceModule co (id,moi) = case moi of
PSeq p q -> PSeq (codp p) (codp q)
PAlt p q -> PAlt (codp p) (codp q)
_ -> p
-
----- from Text.Lexing
-decodeCP1251 = map convert where
- convert c
- | c >= '\192' && c <= '\255' = chr (ord c + 848)
- | otherwise = c