Opened 9 years ago

Last modified 3 years ago

#5951 new defect

Host down in non-EN locale raises error

Reported by: anonymous Owned by:
Priority: low Component: ServerDownMacro
Severity: minor Keywords: errno
Cc: Trac Release: 0.11


When using ServerDownMacro in a non-EN locale (e.g. de_DE as in my case) the error raised on s.connect does not contain Connection refused but a localized message.

Attached patch changes error evaluation to rely on errno instead of message text and it does not use fixed numbers (execpt to 11001 which I could find what kind of error this is exactly).


Attachments (1)

serverdownmacro.diff (892 bytes) - added by anonymous 9 years ago.
patch on serverdownmacro/ to use errno for error handling

Download all attachments as: .zip

Change History (2)

Changed 9 years ago by anonymous

Attachment: serverdownmacro.diff added

patch on serverdownmacro/ to use errno for error handling

comment:1 Changed 3 years ago by Ryan J Ollos

Owner: Noah Kantrowitz deleted

Modify Ticket

Change Properties
Set your email in Preferences
as new The ticket will remain with no owner.

Add Comment

E-mail address and name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.