summaryrefslogtreecommitdiff
path: root/README
diff options
context:
space:
mode:
authorMarcus Brinkmann <mb@g10code.com>2009-07-17 01:53:19 +0000
committerMarcus Brinkmann <mb@g10code.com>2009-07-17 01:53:19 +0000
commit7be57d4b973a2280de50cdac7167692d73280e45 (patch)
treed8cabda821b7568e0cf28e7e94b4c81a221430da /README
parenteea21ee9383f652b446d60208620590860621556 (diff)
downloadlibgpg-error-7be57d4b973a2280de50cdac7167692d73280e45.tar.gz
2009-07-17 Marcus Brinkmann <marcus@g10code.de>
* src/mkerrnos.awk: Output code to cause WSA Errors to be found from gpg error codes. * README: Add problem of translating error codes back and forth.
Diffstat (limited to 'README')
-rw-r--r--README26
1 files changed, 19 insertions, 7 deletions
diff --git a/README b/README
index 3cec868..505f28c 100644
--- a/README
+++ b/README
@@ -81,10 +81,22 @@ Known Problems
On Windows, WSA Error Codes can be provided as system error codes and
will be transparently converted to the corresponding gpg error codes.
-However, not all of them have detailed description when printed with
-gpg_strerror, but will default to "Unknown system error (NUMBER)" for
-pretty printing. For example, WSAEHOSTDOWN will be translated to
-GPG_ERR_EHOSTDOWN, but there is no corresponding EHOSTDOWN in Windows
-and thus gpg_strerror will default to "Unknown system error (8029)".
-(This could be fixed by adding our own error strings replacing or
-extending the system error strings, including their translations).
+There are two problems with this support:
+
+* Not all error codes corresponding to WSA Error codes have a detailed
+ description when printed with gpg_strerror. Some will default to
+ "Unknown error" for pretty printing. For example, WSAEHOSTDOWN will
+ be translated to GPG_ERR_EHOSTDOWN, but there is no corresponding
+ EHOSTDOWN in Windows and thus gpg_strerror will default to "Unknown
+ error" as printed by the system's strerror function for the argument
+ WSAEHOSTDOWN. (This could be fixed by adding our own error strings
+ replacing or extending the system error strings, including their
+ translations).
+
+* The translation to a gpg error code and back to a system error code
+ in some cases does not preserve information. For example, the error code
+ WSAEACCES translates to GPG_ERR_EACCES, which translates back to
+ EACCES.
+
+Any WSA Error code has either the first problem or the second (but not
+both), depending on if there is a corresponding Windows error code.