Re: Test: tzdata, tzdata-right, tzdata-posix 2024a-2 (TEST)

2024-03-28 Thread Brian Inglis via Cygwin
Please provide feedback on these changes in this test release if splitting the 
tzdata packages as described may have a negative impact on your system.


On 2024-03-28 01:39, Cygwin tzcode/tzdata Maintainer wrote:

The following test packages have been uploaded to the Cygwin distribution:

* tzdata2024a-2
* tzdata-right  2024a-2
* tzdata-posix  2024a-2

This Cygwin test release splits out the likely rarely used "right"
and "posix" subtrees from mandatory base /usr/share/zoneinfo into their
own optional packages tzdata-right and tzdata-posix.

Tests checking for missing or invalid representative zones in all parts
of the base, posix, and right subtrees has been added as part of the
package definition script.

Please test this base package and report any issues, and let us know if
you need to install and use the zones in the "right" or "posix" subtrees
in the optional tzdata-right and tzdata-posix packages, and whether this
change causes any issues for you.

If there are no reports of issues, all future tzdata updates will be
split into three packages, and only the base tzdata package installed by
default on all systems.

The space occupied by installed files, and downloaded from mirrors, is
shown below for each package, plus the current package with all zones.

install   tar   tzdata
  721KB 172KB   base
  984KB  78KB   right
  669KB  74KB   posix
1367KB  444KB   source
3667KB  452KB   current




The Time Zone Database (often called tz, tzdb, or zoneinfo) contains
data that represents the history of local time for many locations around
the world, and supports conversion of UTC time to local time at those
locations to allow display of those local times. It is updated
periodically to reflect changes made by political bodies to summer
daylight saving time rules, UTC offsets, and time zone boundaries.

Three data packages are available: base 'tzdata' is always installed;
optional 'tzdata-right' provides TAI-10s time in the 'right' subtree;
and optional 'tzdata-posix' provides the same zones and times as base
data in the 'posix' subtree, as an explicit distinction from 'right'.

The tzcode package provides the tzselect, zdump, and zic utilities.

For more information, see the project home page:

https://www.iana.org/time-zones


--
Take care. Thanks, Brian Inglis  Calgary, Alberta, Canada

La perfection est atteinte   Perfection is achieved
non pas lorsqu'il n'y a plus rien à ajouter  not when there is no more to add
mais lorsqu'il n'y a plus rien à retirer but when there is no more to cut
-- Antoine de Saint-Exupéry

--
Problem reports:  https://cygwin.com/problems.html
FAQ:  https://cygwin.com/faq/
Documentation:https://cygwin.com/docs.html
Unsubscribe info: https://cygwin.com/ml/#unsubscribe-simple


When displaying Chinese help information, the program does not respond. The code enters a dead loop.

2024-03-28 Thread 赵伟 via Cygwin
When displaying Chinese help information, the program does not respond. 
The code enters a dead loop in file 
"libgetopt++/include/getopt++/DefaultFormatter.h"??Because some Chinese help 
information does not contain spaces.
diff --git a/libgetopt++/include/getopt++/DefaultFormatter.h 
b/libgetopt++/include/getopt++/DefaultFormatter.h
index ee2397f5..19ac67e1 100644
--- a/libgetopt++/include/getopt++/DefaultFormatter.h
+++ b/libgetopt++/include/getopt++/DefaultFormatter.h
@@ -64,6 +64,7 @@ class DefaultFormatter {
    {
  // TODO: consider using 
a line breaking strategy here.
  int pos = 
helpmsg.substr(0,h_len).find_last_of(" ");
+ if(pos<=0)break;
  theStream << 
helpmsg.substr(0,pos)
   
 << std::endl << std::string (o_len, ' ');
  helpmsg.erase (0,pos+1);

-- 
Problem reports:  https://cygwin.com/problems.html
FAQ:  https://cygwin.com/faq/
Documentation:https://cygwin.com/docs.html
Unsubscribe info: https://cygwin.com/ml/#unsubscribe-simple


When displaying Chinese help information, the program does not respond. The code enters a dead loop.

2024-03-28 Thread 赵伟 via Cygwin
When displaying Chinese help information, the program does not respond. 
The code enters a dead loop in file 
"libgetopt++/include/getopt++/DefaultFormatter.h"??Because some Chinese help 
information does not contain spaces.
diff --git a/libgetopt++/include/getopt++/DefaultFormatter.h 
b/libgetopt++/include/getopt++/DefaultFormatter.h
index ee2397f5..19ac67e1 100644
--- a/libgetopt++/include/getopt++/DefaultFormatter.h
+++ b/libgetopt++/include/getopt++/DefaultFormatter.h
@@ -64,6 +64,7 @@ class DefaultFormatter {
    {
      // TODO: consider using a 
line breaking strategy here.
      int pos = 
helpmsg.substr(0,h_len).find_last_of(" ");
+     if(pos<=0)break;
      theStream << 
helpmsg.substr(0,pos)
 
   << std::endl << std::string (o_len, ' ');
      helpmsg.erase (0,pos+1);

-- 
Problem reports:  https://cygwin.com/problems.html
FAQ:  https://cygwin.com/faq/
Documentation:https://cygwin.com/docs.html
Unsubscribe info: https://cygwin.com/ml/#unsubscribe-simple


Fwd: [Ms-nfs41-client-devel] ANN: NFSv4.1 filesystem client Windows driver binaries for Windows 10/11 for testing, 2024-03-28 ...

2024-03-28 Thread Cedric Blancher via Cygwin
Good evening!

For your consideration - we need FEEDBACK, please!

New is ACL+UNC path (cd //host@port/path1/path2 work in bash and
ksh93)+chgrp+nfs:// support, and the NFS server no longer needs the
"insecure" export switch.

Ced

-- Forwarded message -
From: Roland Mainz 
Date: Thu, 28 Mar 2024 at 13:20
Subject: [Ms-nfs41-client-devel] ANN: NFSv4.1 filesystem client
Windows driver binaries for Windows 10/11 for testing, 2024-03-28 ...
To: 


Hi!



I've created a set of test binaries for the NFSv4.1 filesystem client
driver for Windows 10/11, based on
https://github.com/kofemann/ms-nfs41-client (commit id
#4c9528a5e9094cd80906c0e8af9785e1748b0a25, git bundle in tarball), for
testing and feedback (download URL in "Download" section below).

Please send comments, bugs, test reports, complaints etc. to the
MailMan mailing list at
https://sourceforge.net/projects/ms-nfs41-client/lists/ms-nfs41-client-devel

# 1. What is this ?
NFSv4.1 client and filesystem driver for Windows 10/11

# 2. Features:
- Full NFSv4.1 protocol support
- idmapper (mapping usernames and uid/gid values between server and
client)
- Support for custom ports (NFSv4 defaults to TCP port 2049, this
client can use different ports per mount)
- Support for nfs://-URL
* Why ? nfs://-URLs are crossplatform, portable and Character-Encoding
  independent descriptions of NFSv4 server resources (exports).
- including custom ports and raw IPv6 addresses
- nfs://-URL conversion utility (/usr/bin/nfsurlconv) to convert
URLs, including non-ASCII/Unicode characters in mount path
- Support ssh forwarding, e.g. mounting NFSv4 filesystems via ssh
tunnel
- Support for long paths (up to 4096 bytes), no Windows MAXPATH limit
- Unicode support
- UNC paths
- IPv6 support in UNC paths
- /sbin/nfs_mount prints UNC paths in Win32+Cygwin formats
- Cygwin bash+ksh93 support UNC paths, e.g.
  cd //derfwnb4966@2049/nfs4/bigdisk/mysqldb4/
- IPv6 support
- IPv6 address within '[', ']'
  (will be converted to *.ipv6-literal.net)
- Windows ACLs
- Win32 C:\Windows\system32\icacls.exe
- Cygwin /usr/bin/setfacl+/usr/bin/getfacl
- Windows Explorer ACL dialog
- SFU/Cygwin support, including:
- uid/gid
- Cygwin symlinks
- Software compatibility:
- Any NFSv4.1 server (Linux, Solaris, Illumos, FreeBSD, nfs4j,
...)
- All tools from Cygwin/MinGW
- Visual Studio
- VMware Workstation (can use VMs hosted on NFSv4.1 filesystem)

# 3. Requirements:
- Windows 10 or Windows 11
- Cygwin 3.5.1 (or 3.6.x-devel)
- Packages (required):
cygwin
cygwin-devel
cygrunsrv
cygutils
cygutils-extra
bash
bzip2
coreutils
getent
gdb
grep
hostname
less
libiconv
libiconv2
pax
pbzip2
procps-ng
sed
tar
time
util-linux
wget
- Packages (recommended):
libnfs (for /usr/bin/nfs-ls)
make
git
dos2unix

# 4. Download:
$ mkdir -p ~/download
$ cd ~/download
$ wget 
'http://www.nrubsig.org/people/gisburn/work/msnfs41client/releases/testing/msnfs41client_cygwin_binaries_20240328_12h28m_git4c9528a.tar.bz2'
$ openssl sha256
"msnfs41client_cygwin_binaries_20240328_12h28m_git4c9528a.tar.bz2"
SHA2-256(msnfs41client_cygwin_binaries_20240328_12h28m_git4c9528a.tar.bz2)=
ff683f954109f344403ce7f54830c36827984a1fc999460aa7054a97ca6ad473

# 5. Installation (as "Administrator"):
$ (cd / && tar -xf
~/download/msnfs41client_cygwin_binaries_20240328_12h28m_git4c9528a.tar.bz2
)
$ /sbin/msnfs41client install


# 6. Deinstallation:
$ (set -o xtrace ; cd / && tar -tf
~/download/msnfs41client_cygwin_binaries_20240328_12h28m_git4c9528a.tar.bz2
| while read i ; do [[ -f "$i" ]] && rm "$i" ; done)


# 7. Usage:
# Run the NFSv4 client daemon:
# - run this preferably as "Administrator", but this is not a requirement
# - requires separate terminal
$ /sbin/msnfs41client run_daemon

# Mount a filesystem and use it
$ /sbin/nfs_mount -o rw N 10.49.20.110:/net_tmpfs2
Successfully mounted '10.49.20.110@2049' to drive 'N:'
$ cd /cygdrive/n/
$ ls -la
total 4
drwxrwxrwt 5 Unix_User+0  Unix_Group+0  100 Dec  7 14:17 .
dr-xr-xr-x 1 roland_mainz Kein0 Dec 14 13:48 ..
drwxr-xr-x 3 Unix_User+197608 Unix_Group+197121  80 Dec 12 16:24 10492030
drwxr-xr-x 3 Unix_User+197608 Unix_Group+197121  60 Dec 13 17:58 directory_t
drwxr-xr-x 3 Unix_User+197608 Unix_Group+197121  60 Dec  7 11:01 test2

# Unmount filesystem:
$ cd ~ && /sbin/nfs_mount -d N:
# OR
$ cd ~
$ net use N: /delete

# List mounted NFSv4.1 filesystems:
$ /sbin/nfs_mount

# 8. Notes:
- Idmapping (including uid/gid mapping) between NFSv4 client and
  NFSv4 server works via /lib/msnfs41client/cygwin_idmapper.ksh,
  which either uses builtin static data, or /usr/bin/getent passwd
  and /usr/bin/getent group.
  As getent uses the configured 

WARNING: Couldn't compute FAST_CWD pointer

2024-03-28 Thread Lucas Rufino via Cygwin
Good night. I hope that  you are going well.

Send this e-mail to report a problem by the zip2john.exe

  6 [main] zip2john 16340 find_fast_cwd: WARNING: Couldn't compute
> FAST_CWD pointer.  Please report this problem to
> the public mailing list cygwin@cygwin.com
> ver 14  test.zip->test.bul PKZIP Encr: cmplen=49911317,
> decmplen=100013546, crc=A9B62051
> C:\Users\User\Desktop\john\run>john.exe hash.txt
>   4 [main] john 16484 find_fast_cwd: WARNING: Couldn't compute
> FAST_CWD pointer.  Please report this problem to
> the public mailing list cygwin@cygwin.com
> Loaded 1 password hash (PKZIP [32/32])
> Will run 4 OpenMP threads


Best regards

-- 
Problem reports:  https://cygwin.com/problems.html
FAQ:  https://cygwin.com/faq/
Documentation:https://cygwin.com/docs.html
Unsubscribe info: https://cygwin.com/ml/#unsubscribe-simple


Re: WARNING: Couldn't compute FAST_CWD pointer

2024-03-28 Thread cygwinautoreply--- via Cygwin
>Good night. I hope that  you are going well.

>Send this e-mail to report a problem by the zip2john.exe

>  6 [main] zip2john 16340 find_fast_cwd: WARNING: Couldn't compute
>> FAST_CWD pointer.  Please report this problem to
>> the public mailing list cygwin@cygwin.com
>> ver 14  test.zip->test.bul PKZIP Encr: cmplen=49911317,
>> decmplen=100013546, crc=A9B62051
>> C:\Users\User\Desktop\john\run>john.exe hash.txt
>>   4 [main] john 16484 find_fast_cwd: WARNING: Couldn't compute
>> FAST_CWD pointer.  Please report this problem to
>> the public mailing list cygwin@cygwin.com
>> Loaded 1 password hash (PKZIP [32/32])
>> Will run 4 OpenMP threads


>Best regards


https://cygwin.com/faq.html#faq.using.fixing-find_fast_cwd-warnings

-- 
Problem reports:  https://cygwin.com/problems.html
FAQ:  https://cygwin.com/faq/
Documentation:https://cygwin.com/docs.html
Unsubscribe info: https://cygwin.com/ml/#unsubscribe-simple


Re: When displaying Chinese help information in Cygwin setup, the program does not respond. The code enters a dead loop.

2024-03-28 Thread Brian Inglis via Cygwin

On 2024-03-28 09:26, 赵伟 via Cygwin wrote:

When displaying Chinese help information, the program does not respond.
The code enters a dead loop in file 
"libgetopt++/include/getopt++/DefaultFormatter.h",

because some Chinese help information does not contain spaces.
diff --git a/libgetopt++/include/getopt++/DefaultFormatter.h 
b/libgetopt++/include/getopt++/DefaultFormatter.h
index ee2397f5..19ac67e1 100644
--- a/libgetopt++/include/getopt++/DefaultFormatter.h
+++ b/libgetopt++/include/getopt++/DefaultFormatter.h
@@ -64,6 +64,7 @@ class DefaultFormatter {
{
  // TODO: consider using a line breaking strategy here.
  int pos = helpmsg.substr(0,h_len).find_last_of(" ");
+ if (pos <= 0) break;
  theStream << helpmsg.substr(0,pos)
<< std::endl << std::string (o_len, ' ');
  helpmsg.erase (0,pos+1);


It seems that the best approach for Chinese translations would be to:

- add spaces at sentence or word breaks in translations before 35 or 45 bytes, 
if that is the length unit, worth of characters are output in each column; or


- add a language dependent line breaking strategy, to honour characters not to 
be placed at the beginning or ends of lines or split; or


- split between characters, as with long strings in other languages.

--
Take care. Thanks, Brian Inglis  Calgary, Alberta, Canada

La perfection est atteinte   Perfection is achieved
non pas lorsqu'il n'y a plus rien à ajouter  not when there is no more to add
mais lorsqu'il n'y a plus rien à retirer but when there is no more to cut
-- Antoine de Saint-Exupéry


--
Problem reports:  https://cygwin.com/problems.html
FAQ:  https://cygwin.com/faq/
Documentation:https://cygwin.com/docs.html
Unsubscribe info: https://cygwin.com/ml/#unsubscribe-simple