[#29911] [Bug #3231] Digest Does Not Build — Charlie Savage <redmine@...>
Bug #3231: Digest Does Not Build
[#29920] [Feature #3232] Loops (while/until) should return last statement value if any, like if/unless — Benoit Daloze <redmine@...>
Feature #3232: Loops (while/until) should return last statement value if any, like if/unless
Hi,
On 2 May 2010 01:56, Yukihiro Matsumoto <matz@ruby-lang.org> wrote:
Hi,
On 2 May 2010 15:24:52 UTC+2, Nobuyoshi Nakada <nobu@ruby-lang.org> wrote:
[#29953] [Bug #3241] gem update --system Segmentation fault — Benedikt Eickhoff <redmine@...>
Bug #3241: gem update --system Segmentation fault
Hi,
On Mon, May 03, 2010 at 08:55:14PM +0900, Yusuke ENDOH wrote:
[#29993] [Feature:trunk] thread-local yamler — Nobuyoshi Nakada <nobu@...>
Hi,
[#29997] years in Time.utc — Xavier Noria <fxn@...>
Does anyone have a precise statement about the years supported by
On Tue, May 4, 2010 at 8:05 AM, Xavier Noria <fxn@hashref.com> wrote:
Hi,
Hi,
[#30002] 1.9.1 lib dirs? — Roger Pack <rogerdpack2@...>
Hi all.
On Tue, May 4, 2010 at 3:00 PM, Roger Pack <rogerdpack2@gmail.com> wrote:
[#30010] [Bug #3248] extension 'tk' is finding tclConfig.sh and tkConfig.sh incorrectly — Luis Lavena <redmine@...>
Bug #3248: extension 'tk' is finding tclConfig.sh and tkConfig.sh incorrectly
Issue #3248 has been updated by Luis Lavena.
[#30023] [Bug #3250] [BUG] Segmentation fault — Diogo Almeida <redmine@...>
Bug #3250: [BUG] Segmentation fault
[#30070] [Bug #3255] Trunk fail to build without explicit ./configure options (yaml.h not found) — Benoit Daloze <redmine@...>
Bug #3255: Trunk fail to build without explicit ./configure options (yaml.h not found)
Hi,
[#30094] suggestion: switch default name for BINARY encoding — Roger Pack <rogerdpack2@...>
Situation:
(2010/05/08 7:50), Roger Pack wrote:
[#30145] [Bug #3273] Float string conversion — Marc-Andre Lafortune <redmine@...>
Bug #3273: Float string conversion
[#30154] [Bug #3275] incompatibility of testrb — Yusuke Endoh <redmine@...>
Bug #3275: incompatibility of testrb
[#30175] [Problem] DATA and __END__ in a loaded rb file — Charles Cui <zheng.cuizh@...>
how to get global constant DATA in file <a.rb>,if a.rb is loaded by b.rb.
[#30182] [Bug #3281] fail to build fiddle on Debian/lenny by default — Yusuke Endoh <redmine@...>
Bug #3281: fail to build fiddle on Debian/lenny by default
2010/5/12 Yusuke Endoh <redmine@ruby-lang.org>:
On Wed, May 12, 2010 at 11:26:44PM +0900, Tanaka Akira wrote:
2010/5/14 Aaron Patterson <aaron@tenderlovemaking.com>:
[#30226] [Bug #3288] Segmentation fault - activesupport-3.0.0.beta3/lib/active_support/callbacks.rb:88 — Szymon Jeż <redmine@...>
Bug #3288: Segmentation fault - activesupport-3.0.0.beta3/lib/active_support/callbacks.rb:88
Issue #3288 has been updated by Szymon Je甜.
[#30249] [Bug #3299] revision.h rule in common.mk is broken for MSVC — Romulo Ceccon <redmine@...>
Bug #3299: revision.h rule in common.mk is broken for MSVC
[#30290] [Bug #3309] net/http calls leak memory and file handles in windows — Pete Higgins <redmine@...>
Bug #3309: net/http calls leak memory and file handles in windows
[#30315] [Bug #3320] emacs ruby-mode.el font-lock fails on symboled string ending with ? — Zev Blut <redmine@...>
Bug #3320: emacs ruby-mode.el font-lock fails on symboled string ending with ?
[#30323] [Feature #3322] Simple Patch to make ruby copy-on-write-friendly — Daniel DeLorme <redmine@...>
Feature #3322: Simple Patch to make ruby copy-on-write-friendly
[#30358] tk doesn't startup well in doze — Roger Pack <rogerdpack2@...>
Currently with 1.9.x and tk 8.5,the following occurs
From: Roger Pack <rogerdpack2@gmail.com>
> Does it occur with RubyTk-Kit version (it based on latest tcltklib.c)?
[#30401] [Bug #3336] Memory leak in IO.select() on Windows — HD Moore <redmine@...>
Bug #3336: Memory leak in IO.select() on Windows
[#30406] [Bug #3337] MS-DOS device names are identified as readable_real — HD Moore <redmine@...>
Bug #3337: MS-DOS device names are identified as readable_real
[#30434] [Feature #3346] __DIR__ revisted — Thomas Sawyer <redmine@...>
Feature #3346: __DIR__ revisted
[#30449] [Bug #3350] Protected methods & documentation — Marc-Andre Lafortune <redmine@...>
Bug #3350: Protected methods & documentation
[#30451] [Bug #3352] Delegates: protected methods — Marc-Andre Lafortune <redmine@...>
Bug #3352: Delegates: protected methods
[#30513] [Bug #3365] floats revisited (see bug 1841) — Roberto Tomás Collins McCarthy <redmine@...>
Bug #3365: floats revisited (see bug 1841)
[ruby-core:30146] Re: Suggestion regarding m17n
2010/5/10 Czarek <cezary.baginski@gmail.com>:
> MY QUESTIONS
>
> 1. Does it make sense to expect libraries and frameworks for Ruby to
> work with an ASCII incompatible internal encoding, e.g "-E :UTF16_BE"?
> Could we consider failing to do so a bug?
No, ASCII imcompatible encoding is not a primal encoding.
This is because:
* Cannot run as shell script
* Cannot work with ASCII only strings without conversion
ASCII only strings are generated in many situations, for example
Object#to_s, foo.name and so on.
Auotomatic conversion of ASCII only strings for ASCII incompatible
but includes ASCII related characters was discussed before Ruby 1.9.0.
But it is gave up because of its tight schedule.
> 2. If so, would it be reasonable to expect the same of Ruby's standard
> library?
Some library may fail. It depends the library's policy.
> 3. If so, which Ruby version should people test against?
>
> * a specific 1.9.2 revision?
This is about testing MRI and bug reporting?
We recommend trunk, 1.9.2-head and 1.9.1-head.
We MRIer develops each branches, don't develop already released version.
So if people check the branch's head, we needn't say "it is already
fixed in branch head".
It is happy for us.
(if it is fixed in trunk but not in branch, it is "backport request")
> 4. Would trying to add support to applications running in ASCII
> incompatible environments be useful to developers in the long run
> (taking into account future versions of Ruby) or just be an
> unnecessary activity (e.g. because of UTF-8 which is ASCII
> compatible)?
Supporting ASCII incompatible encoding is hard work.
Because we cannot use literals:
str == ?a
/foo/ =~ str
Because of such difficulty we gave up source encoding and so on.
> EXPLANATION
> REASONS
They looks reasonable.
> The downside would be:
>
> - many more problems will surface than would normally occur in
> reality
Yes. I think most of trouble is from literals.
> - people interested only in ASCII compatible encodings would have to
> do more work or give up on encoding support
If we recommend implement ASCII incompatible encodings support,
we should implement something to ease supporting them.
> - developers may have to become aware of regexp, 'filesystem',
> 'locale' and other encodings - even if they want things to "just
> work"
>
> - problems would have to solved near the cause, which requires time
> and knowledge to do properly - adding ".encoding" calls in random
> places won't be enough
>
> - handling all the issues in the most correct and
> backward-compatible way would make the code uglier, especially
> with regexps
>
> - effort needed to persuade developers to pro-actively test their
> software this way, instead of expecting test cases and patches.
Testing seems hard problem.
> CASE STUDY:
>
>As an experiment, I tried to get irb and then tests to run without
>warnings, starting with the following:
> ...
> Although getting all the tests running will still require touching
> quite a few files.
>
> NOTE: I tried my best to when choosing each workaround, but I believe
> there are much cleaner solutions out there. I also admit that I gave
> up on trying to get irb to actually do something other than just
> start.
It shouldn't be acceptable for users to have to write encode('filesystem')
for each require filenames. So at least automatic conversion is needed.
But it should need more, so we made the category: ASCII incompatible
and separete UTF-16 and UTF-32.
> The problems I encountered were usually related to:
> - regexp handling
> - ENV variables (reading and writing) in locale which were not
> compatible with default_internal
> - using concat operations like File.join, split, interpolation
> - comparing strings with different encodings silently returns false
They should be fixed in Ruby itself if we make ASCII incompatible encoding
first class encoding.
> Some other issues that may become more apparent as a result of trying
> to get things to work:
> - filesystem encoding / locale mismatches
Locale encoding itself should be rarely used in real script.
It is Encoding.default_external, isn't it?
> - program argument encodings
Ah, this is locale encoding.
> - file system encoding differences for different mount points
Explicitly set encoding argument to API like Dir.entries(".",
encoding: "UTF-8").
> - environment variables containing non-ascii or non-utf data
This is considered hard to decide expected encoding.
> - lack of encoding info from stdlib
Intended.
> - stdin/stdout issues
what?
> - gracefully handling corrupt data
Use case required.
> - combinations of the above and other
?
> As a side note, I was wondering if regexp support couldn't be extended
> to better support what was done in the CSV library - encoding the
> regexp to match the default/input. Perhaps with a cleaner syntax or
> making the existing notation more flexible, since regexp are used like
> a Swiss Army Knife for many different things. Then again, I may be
> missing something important.
Auto-recompiling regexp for ASCII incompatible encoding?
> I understand what I propose may be crazy and require a insane amount
> of work to support. Although I do *not* believe that the flexibility
> Ruby provides and the support of vague cases (e.g. ASCII-7BIT safe
> concat, default encodings) is meant to be treated as a standard for
> new applications now and in the future.
Ruby M17N can potentially support those case.
Most of current limitation for ASCII incompatible encoding is
because of human resource.
> Instead, IMHO this flexibility should be used appropriately: for easy
> transitions, backward compatibility, performance and other instances
> that are genuinely useful. In every other case, I believe putting
> additional effort into avoiding transcoding where possible and
> generally honoring the user's selection of encoding, whatever he or
> she may choose, will provide more benefit for everyone in the long
> run.
If you find some new API can help people, please tell us.
We welcome such suggestions.
> Please correct me if I am wrong.
You are correct in most part.
Thank you for your effort.
--
NARUSE, Yui
naruse@airemix.jp