search for: ascii_on

Displaying 2 results from an estimated 2 matches for "ascii_on".

Did you mean: asciion
2011 Mar 02
2
[ win32utils-Bugs-28904 ] Gem win32-eventlog v0.5.2 on Ruby 1.9.1 and 1.9.2
...tlog-0.5.2/lib/win32/eventlog.rb Wed Mar 02 15:51:40 2011 +++ \Users\bjansen\Development\eventlog.rb Wed Mar 02 15:51:25 2011 @@ -11,6 +11,9 @@ # Return the portion of the string up to the first NULL character. This # was added for both speed and convenience. def nstrip + if !self.ascii_only? + self.force_encoding($>.external_encoding || Encoding.default_external) + end self[ /^[^\0]*/ ] end end ---------------------------------------------------------------------- You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=411&...
2016 Aug 18
5
[PATCH v2 0/4] New getprogname module
Hi, as discussed in [1], this series adds a new getprogname module. All it does is providing a getprogname function, much like what is found on e.g. *BSD systems, and using it in gnulib instead of progname. Also, using it explicitly by modules avoids gnulib users the need of either use the progname module (GPL), or to provide program_name (and call set_program_name manually, which is not always