在下载安装poderosa后 连接 cygwin时出现以下问题
Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: startIndex
解决方案
下载poderosa 源代码,
将其中 LocalShell.cs 中
char[] buf = new char[8192];
int n = Win32.GetEnvironmentVariable("PATH", buf, buf.Length);
改为
char[] buf = new char[8192];
int n = Win32.GetEnvironmentVariable("PATH", buf, buf.Length);
就Okay了
问题原因 PATH太长了
本文解决了一个特定的问题:使用Poderosa连接Cygwin时遇到的Index was out of range错误。通过修改Poderosa源代码中的环境变量读取长度,成功解决了因PATH过长导致的问题。


被折叠的 条评论
为什么被折叠?



