From: tvw@...4r.de Date: 2018-08-13T15:10:57+00:00 Subject: [ruby-core:88466] [Ruby trunk Bug#14979] Invalid argument - ruby_setenv(SURVEY) (Errno::EINVAL) Issue #14979 has been updated by tvw (Thomas Volkmar Worm). shevegen (Robert A. Heiler) wrote: > Interesting. My Linux-environment, in ruby via ENV, has 810 entries and > I have no problem. When you read my report carefully: the problem only occurs on windows. I was trying to recreate it on linux but without success. zaphodbb ---------------------------------------- Bug #14979: Invalid argument - ruby_setenv(SURVEY) (Errno::EINVAL) https://bugs.ruby-lang.org/issues/14979#change-73533 * Author: tvw (Thomas Volkmar Worm) * Status: Closed * Priority: Normal * Assignee: * Target version: * ruby -v: ruby 2.5.1p57 (2018-03-29 revision 63029) [x64-mingw32] * Backport: 2.3: UNKNOWN, 2.4: UNKNOWN, 2.5: UNKNOWN ---------------------------------------- The error occurs with Ruby 2.5.1-2 (x64) on windows as well as with an old Ruby 1.9.3 (x86) on windows, when setting an environment variable: ENV['SURVEY']="12345" I am tested it on Windows 10. The error seems to be triggered, when the environment is big. My environment has a lot of variables (about 400) and `set > x.x` produces a file of about 34k. My PATH-variable is about 5k. When I empty my PATH-variable (which also reduces the total environment) the error disappears. I tried to recreate the issue on linux, but even a much bigger environment is no problem. And Perl on Windows does not have this problem too. -- https://bugs.ruby-lang.org/ Unsubscribe: