Project

General

Profile

Actions

Feature #5153

closed

Remove rb_add_suffix

Added by naruse (Yui NARUSE) over 13 years ago. Updated over 13 years ago.

Status:
Closed
Assignee:
-
Target version:
[ruby-core:38736]

Description

rb_add_suffix in util.c is GPL and obsoleted code, so I want to remove it.

rb_add_suffix is drived from Perl's win32.c file and GPL/Artistic License.
The code is used when ruby runs with -i (inplace option).
Practically it works only when the renamed file can't create.
(the validation is also a function of the code, but it is not essential)

But this behavior is Windows specific.
On other environment, ruby simply skip the file with a warning "Can't rename %s to %s: %s, skipping file".
I think Windows should follow this.

Actions

Also available in: Atom PDF

Like0
Like0