Send MinGW-Notify mailing list submissions to
        [email protected]

To subscribe or unsubscribe via the World Wide Web, visit
        https://lists.osdn.me/mailman/listinfo/mingw-notify
or, via email, send a message with subject or body 'help' to
        [email protected]

You can reach the person managing the list at
        [email protected]

When replying, please edit your Subject line so it is more specific
than "Re: Contents of MinGW-Notify digest..."


Please do not reply to this notification; the sender address is unable to 
accept incoming e-mail.  If you wish to unsubscribe you can do so at 
https://lists.osdn.me/mailman/listinfo/mingw-notify.



Today's Topics:

   1. [mingw] #38187: update wincon.h (MinGW Notification List)
   2. [mingw] #38187: update wincon.h (MinGW Notification List)
   3. [mingw] #38187: update wincon.h (MinGW Notification List)
   4. [mingw] #38187: update wincon.h (MinGW Notification List)


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

Message: 1
Date: Mon, 13 Aug 2018 13:24:38 +0100
From: MinGW Notification List <[email protected]>
Subject: [MinGW-Notify] [mingw] #38187: update wincon.h
To: OSDN Ticket System <[email protected]>
Message-ID: <[email protected]>
Content-Type: text/plain; charset=UTF-8

#38187: update wincon.h

  Open Date: 2018-04-11 09:21
Last Update: 2018-08-13 13:24

URL for this Ticket:
    https://osdn.net//projects/mingw/ticket/38187
RSS feed for this Ticket:
    https://osdn.net/ticket/ticket_rss.php?group_id=3917&tid=38187

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

Last Changes/Comment on this Ticket:
2018-08-13 13:24 Updated by: keith

Comment:

Reply To osdn-mensch

        Do you happen to know if Vista is a genuine minimum requirement, in
        this case? Or, must we just take this on faith?

    I'd personally just ignore the "minimum version part". I guess you want to
    surround this by NT version number check, correct?

Yes.

    Just checked Win10 SDK - only surrounds CONSOLE_SCREEN_BUFFER_INFOEX by
    "not phone" (the COMMON_LVB_ attributes are not surrounded and I assume
    they just don't do anything on Win95/Win2k)

I wouldn't be too confident about that: normal behaviour of Microsoft APIs is
to crash, when passed a flag which they don't understand ... even if the flag
may be defined for a later version of the API. My concern is that exposing new
flags, unconditionally, may lead to unexpected run-time application crashes, on
legacy OS versions, where an appropriate #if guard block could catch the
potential for crashing, at compile time. We need to either accept the Microsoft
documentation at face value, of we need to devise a test for safety of such
flags on legacy OS versions ... and to find testers who can run that test on a
multitude of legacy Win32 versions.

    Note: cmd replacements like ConEmu may support these on older OS versions,
    too.

Really? Even if the supporting API isn't provided by the underlying (legacy) OS
version? That would imply that ConEmu, (or other terminal emulator), provides
its own fall-back emulation of such APIs: not impossible, but by no means a
trivial task; seems kind of improbable.

Also note: ConEmu is not a cmd replacement; cmd.exe is a shell; AIUI, ConEmu is
a terminal emulator ... a container in which a shell is run, (and that shell
may well be cmd.exe).



---------------------------------------------------------------------
Ticket Status:

      Reporter: osdn-mensch
         Owner: (None)
          Type: Feature Request
        Status: Open
      Priority: 5 - Medium
     MileStone: (None)
     Component: WSL
      Severity: 5 - Medium
    Resolution: None
---------------------------------------------------------------------

Ticket details:

The current one seems very outdated.

It misses some older things (I was told that this is around since 2007) like
the CONSOLE_SCREEN_BUFFER_INFOEX structure

 1.  typedef struct _CONSOLE_SCREEN_BUFFER_INFOEX {
 2.    ULONG      cbSize;
 3.    COORD      dwSize;
 4.    COORD      dwCursorPosition;
 5.    WORD       wAttributes;
 6.    SMALL_RECT srWindow;
 7.    COORD      dwMaximumWindowSize;
 8.    WORD       wPopupAttributes;
 9.    BOOL       bFullscreenSupported;
10.    COLORREF   ColorTable[16];
11.  } CONSOLE_SCREEN_BUFFER_INFOEX, *PCONSOLE_SCREEN_BUFFER_INFOEX;

and the newer COMMON_LVB_ defines for CHAR_INFO structure such as

 1.  #ifndef COMMON_LVB_GRID_HORIZONTAL
 2.  #define COMMON_LVB_GRID_HORIZONTAL      0x0400  /* Top horizontal */
 3.  #endif
 4.  #ifndef COMMON_LVB_GRID_LVERTICAL
 5.  #define COMMON_LVB_GRID_LVERTICAL       0x0800  /* Left vertical */
 6.  #endif
 7.  #ifndef COMMON_LVB_GRID_RVERTICAL
 8.  #define COMMON_LVB_GRID_RVERTICAL       0x1000  /* Right vertical */
 9.  #endif
10.  #ifndef COMMON_LVB_REVERSE_VIDEO
11.  #define COMMON_LVB_REVERSE_VIDEO        0x4000  /* Reverse foreground and 
background attribute */
12.  #endif
13.  #ifndef COMMON_LVB_UNDERSCORE
14.  #define COMMON_LVB_UNDERSCORE   0x8000  /* Underscore */
15.  #endif

Note: all these are included in mingw-w64 since some time but I think the
original should be updated, too :-)



-- 
Ticket information of MinGW - Minimalist GNU for Windows project
MinGW - Minimalist GNU for Windows Project is hosted on OSDN

Project URL: https://osdn.net/projects/mingw/
OSDN: https://osdn.net

URL for this Ticket:
    https://osdn.net//projects/mingw/ticket/38187
RSS feed for this Ticket:
    https://osdn.net/ticket/ticket_rss.php?group_id=3917&tid=38187


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

Message: 2
Date: Mon, 13 Aug 2018 14:25:01 +0100
From: MinGW Notification List <[email protected]>
Subject: [MinGW-Notify] [mingw] #38187: update wincon.h
To: OSDN Ticket System <[email protected]>
Message-ID: <[email protected]>
Content-Type: text/plain; charset=UTF-8

#38187: update wincon.h

  Open Date: 2018-04-11 09:21
Last Update: 2018-08-13 14:25

URL for this Ticket:
    https://osdn.net//projects/mingw/ticket/38187
RSS feed for this Ticket:
    https://osdn.net/ticket/ticket_rss.php?group_id=3917&tid=38187

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

Last Changes/Comment on this Ticket:
2018-08-13 14:25 Updated by: keith

Comment:

This official Microsoft documentation page indicates that the COMMON_LVB
attributes are supported from Win2K onwards. This unofficial legacy
documentation page does not mention them, which suggests that they may not have
been supported prior to Win2K.

Certainly, this is an opinion based on conjecture, but I think it may be
appropriate to place these definitions within an #if _WIN32_WINNT >=
_WIN32_WINNT_WIN2K exposure guard block.



---------------------------------------------------------------------
Ticket Status:

      Reporter: osdn-mensch
         Owner: (None)
          Type: Feature Request
        Status: Open
      Priority: 5 - Medium
     MileStone: (None)
     Component: WSL
      Severity: 5 - Medium
    Resolution: None
---------------------------------------------------------------------

Ticket details:

The current one seems very outdated.

It misses some older things (I was told that this is around since 2007) like
the CONSOLE_SCREEN_BUFFER_INFOEX structure

 1.  typedef struct _CONSOLE_SCREEN_BUFFER_INFOEX {
 2.    ULONG      cbSize;
 3.    COORD      dwSize;
 4.    COORD      dwCursorPosition;
 5.    WORD       wAttributes;
 6.    SMALL_RECT srWindow;
 7.    COORD      dwMaximumWindowSize;
 8.    WORD       wPopupAttributes;
 9.    BOOL       bFullscreenSupported;
10.    COLORREF   ColorTable[16];
11.  } CONSOLE_SCREEN_BUFFER_INFOEX, *PCONSOLE_SCREEN_BUFFER_INFOEX;

and the newer COMMON_LVB_ defines for CHAR_INFO structure such as

 1.  #ifndef COMMON_LVB_GRID_HORIZONTAL
 2.  #define COMMON_LVB_GRID_HORIZONTAL      0x0400  /* Top horizontal */
 3.  #endif
 4.  #ifndef COMMON_LVB_GRID_LVERTICAL
 5.  #define COMMON_LVB_GRID_LVERTICAL       0x0800  /* Left vertical */
 6.  #endif
 7.  #ifndef COMMON_LVB_GRID_RVERTICAL
 8.  #define COMMON_LVB_GRID_RVERTICAL       0x1000  /* Right vertical */
 9.  #endif
10.  #ifndef COMMON_LVB_REVERSE_VIDEO
11.  #define COMMON_LVB_REVERSE_VIDEO        0x4000  /* Reverse foreground and 
background attribute */
12.  #endif
13.  #ifndef COMMON_LVB_UNDERSCORE
14.  #define COMMON_LVB_UNDERSCORE   0x8000  /* Underscore */
15.  #endif

Note: all these are included in mingw-w64 since some time but I think the
original should be updated, too :-)



-- 
Ticket information of MinGW - Minimalist GNU for Windows project
MinGW - Minimalist GNU for Windows Project is hosted on OSDN

Project URL: https://osdn.net/projects/mingw/
OSDN: https://osdn.net

URL for this Ticket:
    https://osdn.net//projects/mingw/ticket/38187
RSS feed for this Ticket:
    https://osdn.net/ticket/ticket_rss.php?group_id=3917&tid=38187


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

Message: 3
Date: Mon, 13 Aug 2018 17:09:22 +0200
From: MinGW Notification List <[email protected]>
Subject: [MinGW-Notify] [mingw] #38187: update wincon.h
To: OSDN Ticket System <[email protected]>
Message-ID: <[email protected]>
Content-Type: text/plain; charset=UTF-8

#38187: update wincon.h

  Open Date: 2018-04-11 10:21
Last Update: 2018-08-13 17:09

URL for this Ticket:
    https://osdn.net//projects/mingw/ticket/38187
RSS feed for this Ticket:
    https://osdn.net/ticket/ticket_rss.php?group_id=3917&tid=38187

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

Last Changes/Comment on this Ticket:
2018-08-13 17:09 Updated by: osdn-mensch

Comment:

.. @keith - Do we have something to commit now?



---------------------------------------------------------------------
Ticket Status:

      Reporter: osdn-mensch
         Owner: (None)
          Type: Feature Request
        Status: Open
      Priority: 5 - Medium
     MileStone: (None)
     Component: WSL
      Severity: 5 - Medium
    Resolution: None
---------------------------------------------------------------------

Ticket details:

The current one seems very outdated.

It misses some older things (I was told that this is around since 2007) like
the CONSOLE_SCREEN_BUFFER_INFOEX structure

 1.  typedef struct _CONSOLE_SCREEN_BUFFER_INFOEX {
 2.    ULONG      cbSize;
 3.    COORD      dwSize;
 4.    COORD      dwCursorPosition;
 5.    WORD       wAttributes;
 6.    SMALL_RECT srWindow;
 7.    COORD      dwMaximumWindowSize;
 8.    WORD       wPopupAttributes;
 9.    BOOL       bFullscreenSupported;
10.    COLORREF   ColorTable[16];
11.  } CONSOLE_SCREEN_BUFFER_INFOEX, *PCONSOLE_SCREEN_BUFFER_INFOEX;

and the newer COMMON_LVB_ defines for CHAR_INFO structure such as

 1.  #ifndef COMMON_LVB_GRID_HORIZONTAL
 2.  #define COMMON_LVB_GRID_HORIZONTAL      0x0400  /* Top horizontal */
 3.  #endif
 4.  #ifndef COMMON_LVB_GRID_LVERTICAL
 5.  #define COMMON_LVB_GRID_LVERTICAL       0x0800  /* Left vertical */
 6.  #endif
 7.  #ifndef COMMON_LVB_GRID_RVERTICAL
 8.  #define COMMON_LVB_GRID_RVERTICAL       0x1000  /* Right vertical */
 9.  #endif
10.  #ifndef COMMON_LVB_REVERSE_VIDEO
11.  #define COMMON_LVB_REVERSE_VIDEO        0x4000  /* Reverse foreground and 
background attribute */
12.  #endif
13.  #ifndef COMMON_LVB_UNDERSCORE
14.  #define COMMON_LVB_UNDERSCORE   0x8000  /* Underscore */
15.  #endif

Note: all these are included in mingw-w64 since some time but I think the
original should be updated, too :-)



-- 
Ticket information of MinGW - Minimalist GNU for Windows project
MinGW - Minimalist GNU for Windows Project is hosted on OSDN

Project URL: https://osdn.net/projects/mingw/
OSDN: https://osdn.net

URL for this Ticket:
    https://osdn.net//projects/mingw/ticket/38187
RSS feed for this Ticket:
    https://osdn.net/ticket/ticket_rss.php?group_id=3917&tid=38187


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

Message: 4
Date: Mon, 13 Aug 2018 17:01:07 +0100
From: MinGW Notification List <[email protected]>
Subject: [MinGW-Notify] [mingw] #38187: update wincon.h
To: OSDN Ticket System <[email protected]>
Message-ID: <[email protected]>
Content-Type: text/plain; charset=UTF-8

#38187: update wincon.h

  Open Date: 2018-04-11 09:21
Last Update: 2018-08-13 17:01

URL for this Ticket:
    https://osdn.net//projects/mingw/ticket/38187
RSS feed for this Ticket:
    https://osdn.net/ticket/ticket_rss.php?group_id=3917&tid=38187

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

Last Changes/Comment on this Ticket:
2018-08-13 17:01 Updated by: keith

Comment:

Reply To osdn-mensch

    .. @keith - Do we have something to commit now?

No. I now have three patches, but I'm not yet entirely satisfied with them.
Specifically:

 1. _WIN32_WINNT specific symbol visibility guards are inadequately defined;
    many symbols are visible to compilations for legacy Windows versions, for
    which they may not be applicable.
 2. Bit-flag values should be specified in hexadecimal -- as Microsoft do in
    their on-line documentation -- not in decimal, as they are at present, in
    our <wincon.h>; this may make no difference to the compiler, but it is
    sub-optimal for human interpretation.

I'm working on it, but I'll need a few more days to finalize it. In the
meantime, you're welcome to try the two patches I've attached so far. My third
patch will be more significant; it already addresses item (2), but not yet (1).
I will not publish it, until I've dealt with that, by which time the series of
three should be ready to commit.

FTR, the lack of a formal ChangeLog entry, to accompany David Gressett's
initial patch, will introduce a delay ... because I will have to write it for
him.



---------------------------------------------------------------------
Ticket Status:

      Reporter: osdn-mensch
         Owner: (None)
          Type: Feature Request
        Status: Open
      Priority: 5 - Medium
     MileStone: (None)
     Component: WSL
      Severity: 5 - Medium
    Resolution: None
---------------------------------------------------------------------

Ticket details:

The current one seems very outdated.

It misses some older things (I was told that this is around since 2007) like
the CONSOLE_SCREEN_BUFFER_INFOEX structure

 1.  typedef struct _CONSOLE_SCREEN_BUFFER_INFOEX {
 2.    ULONG      cbSize;
 3.    COORD      dwSize;
 4.    COORD      dwCursorPosition;
 5.    WORD       wAttributes;
 6.    SMALL_RECT srWindow;
 7.    COORD      dwMaximumWindowSize;
 8.    WORD       wPopupAttributes;
 9.    BOOL       bFullscreenSupported;
10.    COLORREF   ColorTable[16];
11.  } CONSOLE_SCREEN_BUFFER_INFOEX, *PCONSOLE_SCREEN_BUFFER_INFOEX;

and the newer COMMON_LVB_ defines for CHAR_INFO structure such as

 1.  #ifndef COMMON_LVB_GRID_HORIZONTAL
 2.  #define COMMON_LVB_GRID_HORIZONTAL      0x0400  /* Top horizontal */
 3.  #endif
 4.  #ifndef COMMON_LVB_GRID_LVERTICAL
 5.  #define COMMON_LVB_GRID_LVERTICAL       0x0800  /* Left vertical */
 6.  #endif
 7.  #ifndef COMMON_LVB_GRID_RVERTICAL
 8.  #define COMMON_LVB_GRID_RVERTICAL       0x1000  /* Right vertical */
 9.  #endif
10.  #ifndef COMMON_LVB_REVERSE_VIDEO
11.  #define COMMON_LVB_REVERSE_VIDEO        0x4000  /* Reverse foreground and 
background attribute */
12.  #endif
13.  #ifndef COMMON_LVB_UNDERSCORE
14.  #define COMMON_LVB_UNDERSCORE   0x8000  /* Underscore */
15.  #endif

Note: all these are included in mingw-w64 since some time but I think the
original should be updated, too :-)



-- 
Ticket information of MinGW - Minimalist GNU for Windows project
MinGW - Minimalist GNU for Windows Project is hosted on OSDN

Project URL: https://osdn.net/projects/mingw/
OSDN: https://osdn.net

URL for this Ticket:
    https://osdn.net//projects/mingw/ticket/38187
RSS feed for this Ticket:
    https://osdn.net/ticket/ticket_rss.php?group_id=3917&tid=38187


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

_______________________________________________
MinGW-Notify mailing list
[email protected]
https://lists.osdn.me/mailman/listinfo/mingw-notify


End of MinGW-Notify Digest, Vol 11, Issue 2
*******************************************

Reply via email to