#2997: Package names starting with a numeric character cause assembler errors
---------------------------------+------------------------------------------
Reporter: mboes | Owner: igloo
Type: bug | Status: new
Priority: normal | Milestone:
Component: Compiler | Version: 6.10.1
Severity: normal | Resolution:
Keywords: | Difficulty: Unknown
Testcase: | Os: Unknown/Multiple
Architecture: Unknown/Multiple |
---------------------------------+------------------------------------------
Changes (by simonpj):
* owner: => igloo
* difficulty: => Unknown
Comment:
I agree with (2). If digits aren't acceptable as leading characters we'd
better encode them.
I think the fix is simple:
* In `Encoding.zEncodeString` treat the first character specially, by
z-encoding even digits (which are not otherwise encode). A good encoding
would be `0 --> z0` etc.
* Similarly in decoding we'd need to treat the first character specially.
Alternatively we could *always* z-encode digits. But that seems overkill
(eg `base-3.5` would become `basezmz3ziz5` rather than (as now)
`basezm3zi5`). But it's no big deal either way.
Ian would you like to decide and execute?
Simon
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/2997#comment:1>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
_______________________________________________
Glasgow-haskell-bugs mailing list
Glasgow-haskell-bugs@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs