[darcs-devel] [issue2014] Can't handle ill form (or illegal) timezone name.

Jack bugs at darcs.net
Sat Dec 11 16:30:16 UTC 2010


New submission from Jack <jack.bargain at gmail.com>:

When use following command in my enviroment  (cp936 console, xp simplified
chinese)
darcs can't handle ill form(or illegal) timezone name *"中国标准时间"*, this
timezone name is
produce by XP and endcode in cp936(or gb2312), ms system will allways give
out a "Localize"
timezone name, but not a standardlize one.

*Prelude > let a  = "中国标准时间"*        -- Unicode
*Prelude > a  = "\20013\22269\26631\20934\26102\38388"*

*Prelude System.Time> b <-  getClockTime >>= toCalendarTime>>= \a ->
return(ctTZName a)*
*Prelude System.Time> b
**Prelude System.Time> **"\214\208\185\250\177\234\215\188\202\177\188\228"

*IF *darcs can't pasre such timezone name, why create out ?*
I can't even send a patch because the timezone name.
I can't apply the patch i create even in my repo where i create the patch.

I think just change the unknow timezone name to GMT+ offset (or somekind +
offset)is great!!!!

----------------------------------------------------------------------------------------------------------------------------------------------

darcs changes --last=3

Sat Dec 11 15:13:20
[_<U+00D6>_][_<U+00D0>_][_<U+00B9>_][_<U+00FA>_][_<U+00B1>_]
[_<U+00EA>_][_<U+00D7>_][_<U+00BC>_][_<U+00CA>_][_<U+00B1>_][_<U+00BC>_][_<U+00E
4>_] 2010  Judah Jacobson <judah.jacobson at gmail.com>
  * Fix issues with the "#81 Attempts" patch.

Tue Dec  7 05:55:48
[_<U+00D6>_][_<U+00D0>_][_<U+00B9>_][_<U+00FA>_][_<U+00B1>_]
[_<U+00EA>_][_<U+00D7>_][_<U+00BC>_][_<U+00CA>_][_<U+00B1>_][_<U+00BC>_][_<U+00E
4>_] 2010  Judah Jacobson <judah.jacobson at gmail.com>
  * Attempt to fix #81 on Windows.

Tue Dec  7 05:50:29
[_<U+00D6>_][_<U+00D0>_][_<U+00B9>_][_<U+00FA>_][_<U+00B1>_]
[_<U+00EA>_][_<U+00D7>_][_<U+00BC>_][_<U+00CA>_][_<U+00B1>_][_<U+00BC>_][_<U+00E
4>_] 2010  Judah Jacobson <judah.jacobson at gmail.com>
  * Bump version to 0.6.3.3.

----------------------------------------------------------------------------------------------------------------------------------------------

*darcs send* --*output*=*FILE               **##Here cause apply problem, by
the rediculous timzone name*
*

1 patch for repository http://code.haskell.org/haskeline:

Sat Dec 11 13:56:01 中国标准时间 2010  jack.bargain at gmail.com
  * *Fix "#81 Attempts" Single Line moveRight problem


New patches:

[*Fix "#81 Attempts" Single Line moveRight problem
jack.bargain at gmail.com**20101211055601
 Ignore-this: 5c4f7ec68c00fdfe6699533f93179583
] hunk ./System/Console/Haskeline/Backend/Win32.hsc 294
     moveCoord _ p [] = p
     moveCoord w p cs = case splitAtWidth (w - coordX p) cs of
                         (_,[],len) | len < w -- stayed on same line
-                            -> Coord { coordY = coordY p + 1,
+                            -> Coord { coordY = coordY p,
                                        coordX = coordX p + len
                                      }
                         (_,cs',_) -- moved to next line

Context:
................
*
----------------------------------------------------------------------------------------------------------------------------------------------
*

*

----------
files: unnamed
messages: 13317
nosy: jack.bargain
status: unknown
title: Can't handle ill form (or illegal) timezone name.

__________________________________
Darcs bug tracker <bugs at darcs.net>
<http://bugs.darcs.net/issue2014>
__________________________________
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osuosl.org/pipermail/darcs-devel/attachments/20101211/84f7a584/attachment.html>


More information about the darcs-devel mailing list