Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: e395a0dd4d72f3042fc7067b87d3b8aee8a0c9028965ec024791c930a0248b1e
Ticket: 800716ffffffffffffffffffffffffffffffffff
publicize TclWinConvertError and TclWinConvertWSAError
User & Date: jan.nijtmans on 2022-04-05 06:31:39
Changes

  1. assignee changed to: "jan.nijtmans"
  2. closedate changed to: "2459674.77198579"
  3. closer changed to: "jan.nijtmans"
  4. comment changed to:
    TclWinConvertError and TclWinConvertWSAError are 
    private internal functions.  They could be very useful to 
    extension authors.  I see a need for it.  Let's make them 
    public.
    
    Also, TclWinConvertWSAError doesn't map to all WSAE* 
    error codes.  Included are mappings to all of them.  
    Unfortunetly, all the added can only return EINVAL until 
    the posix codes they translate into get more meaningful 
    to windows.  Effectively, the behavior is still unchanged.
    
    Example:
    
    WSA_QOS_POLICY_FAILURE,  'rejected for administrative 
    reasons - bad credentials'
    WSAEPROVIDERFAILEDINIT, 'The requested service 
    provider could not be loaded or initialized'
    
    What posix codes do those get?  Some detective work 
    needs to be done with these.  I really don't have a clue.
    
    The main reason I want to enlargen the mappings is to 
    include WSAHOST_NOT_FOUND.  I hate that the 
    [socket] command can only return 'invalid argument' 
    instead of 'authoritative host not found' or 'try again', 
    or ....
    
    Should this really be a TIP?
    
  5. icomment:
    Done: [https://core.tcl-lang.org/tips/doc/trunk/tip/598.md]
    
  6. login: "jan.nijtmans"
  7. mimetype: "text/x-fossil-wiki"
  8. resolution changed to: "Fixed"
  9. severity changed to: "Minor"
  10. status changed to: "Closed"