[ruby-core:96743] Re: [Ruby master Bug#16495] Inconsistant Quotes in Error Messages
Austin Ziegler <[email protected]> Thu, 9 Jan 2020 17:58:16 -0500
| Newsgroups | gmane.comp.lang.ruby.core |
|---|---|
| Message-ID | <CAJ4ekQtFoBH04JjRb-Jig47g=r_hgmdXn9T+ujoqwGWJpp3kEg@mail.gmail.com> |
--===============1155696607==
Content-Type: multipart/alternative; boundary="000000000000c3daea059bbcf231"
--000000000000c3daea059bbcf231
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
This is an old-school Unix terminal way of mimicking the use of =E2=80=98fa=
ncy
quoting=E2=80=99 by using the backtick (`) and single quote (') because on
*some* terminals
they were shaped the same as =E2=80=98 and =E2=80=99. Changing this would b=
reak many error
parsers that are used to Ruby doing it this way.
-a
On Thu, Jan 9, 2020 at 4:54 PM <[email protected]> wrote:
> Issue #16495 has been reported by Kolano (Kenneth Kolano).
>
> ----------------------------------------
> Bug #16495: Inconsistant Quotes in Error Messages
> https://bugs.ruby-lang.org/issues/16495
>
> * Author: Kolano (Kenneth Kolano)
> * Status: Open
> * Priority: Normal
> * Assignee:
> * Target version:
> * ruby -v: 2.5.3
> * Backport: 2.5: UNKNOWN, 2.6: UNKNOWN, 2.7: UNKNOWN
> ----------------------------------------
> Error messages use inconsistent pairs of quotes, for instance...
>
> ```
> -e:1:in `<main>': undefined local variable or method `foo' for main:Objec=
t
> (NameError)
> ```
> ...where a "fancy" quote is used on the left-hand side, and a standard
> single quote is used on the right.
>
> The same quotes should be used on either side of elements being quoted.
>
>
>
> --
> https://bugs.ruby-lang.org/
>
> Unsubscribe: <mailto:[email protected]?subject=3Dunsubscrib=
e>
> <http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>
>
--=20
Austin Ziegler =E2=80=A2 [email protected] =E2=80=A2 [email protected]=
a
http://www.halostatue.ca/ =E2=80=A2 http://twitter.com/halostatue
--000000000000c3daea059bbcf231
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
<div dir=3D"ltr">This is an old-school Unix terminal way of mimicking=C2=A0=
the use of =E2=80=98fancy quoting=E2=80=99 by using the backtick (`) and si=
ngle quote (') because on <i>some</i>=C2=A0terminals they were shaped t=
he same as =E2=80=98 and =E2=80=99. Changing this would break many error pa=
rsers that are used to Ruby doing it this way.<div><br></div><div>-a</div><=
/div><br><div class=3D"gmail_quote"><div dir=3D"ltr" class=3D"gmail_attr">O=
n Thu, Jan 9, 2020 at 4:54 PM <<a href=3D"mailto:[email protected]">kolan=
[email protected]</a>> wrote:<br></div><blockquote class=3D"gmail_quote" style=
=3D"margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;=
border-left-color:rgb(204,204,204);padding-left:1ex">Issue #16495 has been =
reported by Kolano (Kenneth Kolano).<br>
<br>
----------------------------------------<br>
Bug #16495: Inconsistant Quotes in Error Messages<br>
<a href=3D"https://bugs.ruby-lang.org/issues/16495" rel=3D"noreferrer" targ=
et=3D"_blank">https://bugs.ruby-lang.org/issues/16495</a><br>
<br>
* Author: Kolano (Kenneth Kolano)<br>
* Status: Open<br>
* Priority: Normal<br>
* Assignee: <br>
* Target version: <br>
* ruby -v: 2.5.3<br>
* Backport: 2.5: UNKNOWN, 2.6: UNKNOWN, 2.7: UNKNOWN<br>
----------------------------------------<br>
Error messages use inconsistent pairs of quotes, for instance...<br>
<br>
```<br>
-e:1:in `<main>': undefined local variable or method `foo' fo=
r main:Object (NameError)<br>
```<br>
...where a "fancy" quote is used on the left-hand side, and a sta=
ndard single quote is used on the right.<br>
<br>
The same quotes should be used on either side of elements being quoted.<br>
<br>
<br>
<br>
-- <br>
<a href=3D"https://bugs.ruby-lang.org/" rel=3D"noreferrer" target=3D"_blank=
">https://bugs.ruby-lang.org/</a><br>
<br>
Unsubscribe: <mailto:<a href=3D"mailto:[email protected]" =
target=3D"_blank">[email protected]</a>?subject=3Dunsubscribe=
><br>
<<a href=3D"http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core=
" rel=3D"noreferrer" target=3D"_blank">http://lists.ruby-lang.org/cgi-bin/m=
ailman/options/ruby-core</a>><br>
</blockquote></div><br clear=3D"all"><div><br></div>-- <br><div dir=3D"ltr"=
class=3D"gmail_signature">Austin Ziegler =E2=80=A2 <a href=3D"mailto:halos=
[email protected]" target=3D"_blank">[email protected]</a> =E2=80=A2 <a hr=
ef=3D"mailto:[email protected]" target=3D"_blank">[email protected]</=
a><br><a href=3D"http://www.halostatue.ca/" target=3D"_blank">http://www.ha=
lostatue.ca/</a> =E2=80=A2 <a href=3D"http://twitter.com/halostatue" target=
=3D"_blank">http://twitter.com/halostatue</a></div>
--000000000000c3daea059bbcf231--
--===============1155696607==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
Unsubscribe: <mailto:[email protected]?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>
--===============1155696607==--