This is the mail archive of the
cygwin-apps-cvs
mailing list for the cygwin-apps project.
setup ChangeLog desktop.cc filemanip.cc filema ...
- From: corinna at sourceware dot org
- To: cygwin-apps-cvs at sourceware dot org
- Date: 12 Aug 2008 20:32:09 -0000
- Subject: setup ChangeLog desktop.cc filemanip.cc filema ...
CVSROOT: /sourceware/projects/cygwin-apps-home/cvsfiles
Module name: setup
Changes by: corinna@sourceware.org 2008-08-12 20:32:08
Modified files:
. : ChangeLog desktop.cc filemanip.cc filemanip.h
ini.h install.cc io_stream_cygfile.cc
io_stream_cygfile.h io_stream_file.cc
io_stream_file.h mkdir.cc mklink2.cc mount.cc
mount.h package_db.cc package_db.h root.cc
source.cc
Log message:
Revamp for Cygwin 1.7.
* desktop.cc (make_cygwin_bat): Use wide char file functions on NT.
(save_icon): Ditto.
* filemanip.cc (tfx_chars): New char table for wide char transformation
of reserved FS chars to UNICODE private use area.
(transform_chars): New static function.
(mklongpath): New function to convert multibyte path to wide char
path with long path prefix.
* filemanip.h (mklongpath): Declare.
* ini.h (SETUP_INI_FILENAME): Use setup.ini filenames as defined in
real life (setup-2.ini/setup.ini).
(SETUP_BZ2_FILENAME): Ditto.
* install.cc (do_install_thread): Don't create registry mount points
on NT, rather create setup/rootdir entry.
* io_stream_cygfile.cc: Throughout use wide char file functions on NT.
(io_stream_cygfile::w_str): New method to create wide char path.
* io_stream_cygfile.h (class io_stream_cygfile): Remove lmode member.
Add wname member and w_str method.
* io_stream_file.cc: Throughout use wide char file functions on NT.
(io_stream_file::w_str): New method to create wide char path.
* io_stream_file.h (class io_stream_file): Remove lmode member.
Add wname member and w_str method.
* mkdir.cc (mkdir_p): Use wide char file functions on NT.
* mklink2.cc (mkcygsymlink_9x): Rename from mkcygsymlink. Make static.
(mkcygsymlink_nt): New static function.
(mkcygsymlink): Just call mkcygsymlink_9x or mkcygsymlink_nt dependent
on OS.
* mount.cc (CYGWIN_INFO_CYGWIN_SETUP_REGISTRY_NAME): Define.
(remove1): Move to earlier point in file to avoid declaration.
(remove_mount): Ditto. Make static.
(create_install_root): New function to create setup/rootdir registry
value on NT.
(read_mounts_9x): Rename from read_mounts. Make static. Conditionalize
for OS.
(add_usr_mnts): New static function.
(read_mounts_nt): Ditto, to read mounts on NT.
(read_mounts): Just call read_mounts_nt or read_mounts_9x dependent on
OS.
(set_root_dir): On NT, call read_mounts.
(cygpath): Only add slash for non-root mount to avoid multiple slashes
in resulting path (invalid in long path names).
* mount.h (find_mount): Drop declaration.
(remove_mount): Ditto.
(create_install_root): Add declaration.
(read_mounts): Accommodate new parameter.
* package_db.cc (chosen_db_task): New global variable.
* package_db.h (chosen_db_task): Declare.
* root.cc (check_if_enable_next): Don't use get_root_dir here to
avoid having to call save_dialog in RootPage::OnMessageCmd.
(GetDlgItemRect): New static inline function.
(SetDlgItemRect): Ditto.
(load_dialog): On NT, stretch "Install For" block to full dialog width
and hide "Default Text File Type" block.
(save_dialog): On NT set root_text always to IDC_ROOT_BINARY.
(RootPage::OnMessageCmd): Remove call to save_dialog.
(RootPage::OnNext): Initialize packagedb here the first time, to
avoid fetching wrong data from different previous installation.
* source.cc (save_dialog): Don't initialize packagedb here, rather
just memorize setting in chosen_db_task for the deferred initialization
in RootPage::OnNext.
Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/setup/ChangeLog.diff?cvsroot=cygwin-apps&r1=2.602&r2=2.603
http://sourceware.org/cgi-bin/cvsweb.cgi/setup/desktop.cc.diff?cvsroot=cygwin-apps&r1=2.48&r2=2.49
http://sourceware.org/cgi-bin/cvsweb.cgi/setup/filemanip.cc.diff?cvsroot=cygwin-apps&r1=2.20&r2=2.21
http://sourceware.org/cgi-bin/cvsweb.cgi/setup/filemanip.h.diff?cvsroot=cygwin-apps&r1=1.13&r2=1.14
http://sourceware.org/cgi-bin/cvsweb.cgi/setup/ini.h.diff?cvsroot=cygwin-apps&r1=2.39&r2=2.40
http://sourceware.org/cgi-bin/cvsweb.cgi/setup/install.cc.diff?cvsroot=cygwin-apps&r1=2.85&r2=2.86
http://sourceware.org/cgi-bin/cvsweb.cgi/setup/io_stream_cygfile.cc.diff?cvsroot=cygwin-apps&r1=2.23&r2=2.24
http://sourceware.org/cgi-bin/cvsweb.cgi/setup/io_stream_cygfile.h.diff?cvsroot=cygwin-apps&r1=2.11&r2=2.12
http://sourceware.org/cgi-bin/cvsweb.cgi/setup/io_stream_file.cc.diff?cvsroot=cygwin-apps&r1=2.21&r2=2.22
http://sourceware.org/cgi-bin/cvsweb.cgi/setup/io_stream_file.h.diff?cvsroot=cygwin-apps&r1=2.8&r2=2.9
http://sourceware.org/cgi-bin/cvsweb.cgi/setup/mkdir.cc.diff?cvsroot=cygwin-apps&r1=2.6&r2=2.7
http://sourceware.org/cgi-bin/cvsweb.cgi/setup/mklink2.cc.diff?cvsroot=cygwin-apps&r1=2.3&r2=2.4
http://sourceware.org/cgi-bin/cvsweb.cgi/setup/mount.cc.diff?cvsroot=cygwin-apps&r1=2.25&r2=2.26
http://sourceware.org/cgi-bin/cvsweb.cgi/setup/mount.h.diff?cvsroot=cygwin-apps&r1=2.8&r2=2.9
http://sourceware.org/cgi-bin/cvsweb.cgi/setup/package_db.cc.diff?cvsroot=cygwin-apps&r1=2.37&r2=2.38
http://sourceware.org/cgi-bin/cvsweb.cgi/setup/package_db.h.diff?cvsroot=cygwin-apps&r1=2.22&r2=2.23
http://sourceware.org/cgi-bin/cvsweb.cgi/setup/root.cc.diff?cvsroot=cygwin-apps&r1=2.21&r2=2.22
http://sourceware.org/cgi-bin/cvsweb.cgi/setup/source.cc.diff?cvsroot=cygwin-apps&r1=2.18&r2=2.19