Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the Mac-Errors CPAN distribution.

Report information
The Basics
Id: 78228
Status: resolved
Priority: 0/
Queue: Mac-Errors

People
Owner: Nobody in particular
Requestors: wyant [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Unimportant
Broken in: 1.14
Fixed in: (no value)



Subject: t/pod.t fails due to non-ASCII characters
You already blogged about this at http://www.effectiveperlprogramming.com/blog/1551 I did not see a patch on the blog, so I came up with one, which is attached. I was unable to come up with the intended encoding -- that is, I had gvim try utf-8, latin-1 and MacRoman, and none gave a sane display for the strange characters. The patch assumes the non-ASCII characters are some variant of smart quote, except for the one about line 11613, which I assumed was some sort of white space, though a dash of some sort would also make sense. All this, of course, ignores the fact that you auto-generate lib/Errors.pm, but the patch may be useful for people who want to auto-build and are willing to set up the CPAN client to apply patches.
Subject: Mac-Errors.patch
--- lib/Errors.old 2007-12-09 13:28:05.000000000 -0500 +++ lib/Errors.pm 2012-07-05 14:53:03.000000000 -0400 @@ -2773,7 +2773,7 @@ =item interruptsMaskedErr - donÍt call with interrupts masked + don't call with interrupts masked =cut @@ -4996,7 +4996,7 @@ =item notExactSizeErr - CanÍt do exact size requested + Can't do exact size requested =cut @@ -5004,7 +5004,7 @@ =item badDepthErr - CanÍt digitize into this depth + Can't digitize into this depth =cut @@ -5012,7 +5012,7 @@ =item noDMAErr - CanÍt do DMA digitizing (i.e. can't go to requested dest + Can't do DMA digitizing (i.e. can't go to requested dest =cut @@ -5234,7 +5234,7 @@ =item tsmCantOpenComponentErr - canÍt open the component + can't open the component =cut @@ -7000,7 +7000,7 @@ =item kEPROTOErr - ´´´ fill out missing codes ´´´ + ''' fill out missing codes ''' =cut @@ -8519,7 +8519,7 @@ =item errWindowDoesNotHaveProxy - tried to do something requiring a proxy to a window which doesnÍt have a proxy + tried to do something requiring a proxy to a window which doesn't have a proxy =cut @@ -8748,7 +8748,7 @@ =item kDMCantBlock - Mirroring is already on, canÍt Block now (call DMUnMirror() first). + Mirroring is already on, can't Block now (call DMUnMirror() first). =cut @@ -11610,7 +11610,7 @@ =item telNoCommFolder - Communications/Extensions € not found + Communications/Extensions not found =cut @@ -13715,7 +13715,7 @@ =item dsBadPatchHeader - SetTrapAddress saw the ñcome-fromî header + SetTrapAddress saw the 'come-from' header =cut @@ -13763,7 +13763,7 @@ =item dsNoFPU - an FPU instruction was executed and the machine doesnÍt have one + an FPU instruction was executed and the machine doesn't have one =cut @@ -14051,7 +14051,7 @@ =item dsMacsBugInstalled - say ñMacsBug Installedî + say 'MacsBug Installed' =cut @@ -14059,7 +14059,7 @@ =item dsDisassemblerInstalled - say ñDisassembler Installedî + say 'Disassembler Installed' =cut @@ -14067,7 +14067,7 @@ =item dsExtensionsDisabled - say ñExtensions Disabledî + say 'Extensions Disabled' =cut @@ -14084,7 +14084,7 @@ =item dsSysErr general system error -old names here for compatibilityÍs sake +old names here for compatibility's sake =cut @@ -14114,7 +14114,7 @@ =item dsSystemFileErr - canÍt find System file to open (sad Mac only) + can't find System file to open (sad Mac only) =cut @@ -14122,7 +14122,7 @@ =item dsHD20Installed - say ñHD20 Startupî + say 'HD20 Startup' =cut
The problem was actually in the program that generates the module. I had to set all of the encodings right in src/Errors.pl, which I've now included in the distro. Curiously, there's a mix of straight and smart quotes in the original source. Thanks,