simon-git: putty (main): Simon Tatham

Commits to Tartarus hosted VCS tartarus-commits at lists.tartarus.org
Sat Dec 14 08:10:08 GMT 2024


TL;DR:
  1ef0fbaa Add helper function dupwcscat().
  22dfc46f Windows: add filename_to_wstr().
  f8e1a2b3 Windows: rewrite request_file() to support Unicode.

Repository:     https://git.tartarus.org/simon/putty.git
On the web:     https://git.tartarus.org/?p=simon/putty.git
Branch updated: main
Committer:      Simon Tatham <anakin at pobox.com>
Date:           2024-12-14 08:10:08

commit 1ef0fbaafcb5378525376fd5961bf72918846f4e
web diff https://git.tartarus.org/?p=simon/putty.git;a=commitdiff;h=1ef0fbaafcb5378525376fd5961bf72918846f4e;hp=897ecf46784571640f0f62bd8bd9a8673805dfea
Author: Simon Tatham <anakin at pobox.com>
Date:   Fri Dec 13 19:19:02 2024 +0000

    Add helper function dupwcscat().
    
    The wide-string version of dupcat(), with an identical wrapper macro
    to automatically append a correctly typed NULL.

 misc.h               |  2 ++
 utils/CMakeLists.txt |  1 +
 utils/dupwcscat.c    | 48 ++++++++++++++++++++++++++++++++++++++++++++++++
 3 files changed, 51 insertions(+)

commit 22dfc46fb2b3159f1d7a0bdc7b85dad841ca020c
web diff https://git.tartarus.org/?p=simon/putty.git;a=commitdiff;h=22dfc46fb2b3159f1d7a0bdc7b85dad841ca020c;hp=1ef0fbaafcb5378525376fd5961bf72918846f4e
Author: Simon Tatham <anakin at pobox.com>
Date:   Fri Dec 13 19:19:08 2024 +0000

    Windows: add filename_to_wstr().
    
    The wide-string version of filename_to_str(): given a Filename, return
    a reference to its contained wchar_t string form.

 windows/platform.h       | 1 +
 windows/utils/filename.c | 5 +++++
 2 files changed, 6 insertions(+)

commit f8e1a2b3a934d750aba7c26d182f52d71952c529
web diff https://git.tartarus.org/?p=simon/putty.git;a=commitdiff;h=f8e1a2b3a934d750aba7c26d182f52d71952c529;hp=22dfc46fb2b3159f1d7a0bdc7b85dad841ca020c
Author: Simon Tatham <anakin at pobox.com>
Date:   Fri Dec 13 19:23:30 2024 +0000

    Windows: rewrite request_file() to support Unicode.
    
    This centralises into windows/utils/request_file.c all of the code
    that deals with the OPENFILENAME structure, and decides centrally
    whether to use the Unicode or ANSI version of that structure and its
    associated APIs. Now the output of any request_file function is our
    own 'Filename' abstract type, instead of a raw char or wchar_t buffer,
    which means that _any_ file dialog can produce a full Unicode filename
    if the user wants to select one - and yet, in the w32old build, they
    all uniformly fall back to the ANSI version, which is the only one
    that works at all pre-NT.
    
    A side effect: I've turned the FILTER_FOO_FILES family of definitions
    from platform-specific #defines into a reasonably sensible enum. This
    didn't affect the GTK side of things , because I'd never got round to
    figuring out how to filter a file dialog down to a subset of files in
    GTK, and still haven't. So I've just moved the existing FIXME comment
    from platform.h to dialog.c.

 config.c                     |   4 +-
 dialog.c                     |   2 +-
 dialog.h                     |  17 +-
 putty.h                      |  15 ++
 ssh/ca-config.c              |   7 +-
 unix/dialog.c                |   3 +
 unix/platform.h              |   4 -
 windows/config.c             |   4 +-
 windows/controls.c           |  49 ++---
 windows/pageant.c            |  55 ++----
 windows/platform.h           |  42 ++---
 windows/puttygen.c           |  80 +++------
 windows/utils/request_file.c | 418 +++++++++++++++++++++++++++++++++++--------
 13 files changed, 444 insertions(+), 256 deletions(-)



More information about the tartarus-commits mailing list