src,tools: use https://nodejs.org URL when possible.
PR-URL: https://github.com/nodejs/node/pull/21719 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Richard Lau <riclau@uk.ibm.com> Reviewed-By: Gus Caplan <me@gus.host> Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Сковорода Никита Андреевич <chalkerx@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Jon Moss <me@jonathanmoss.me> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
This commit is contained in:
parent
1062ea4555
commit
998f9ffd42
@ -483,7 +483,7 @@ void StringSlice<UCS2>(const FunctionCallbackInfo<Value>& args) {
|
|||||||
bool release = false;
|
bool release = false;
|
||||||
|
|
||||||
// Node's "ucs2" encoding expects LE character data inside a Buffer, so we
|
// Node's "ucs2" encoding expects LE character data inside a Buffer, so we
|
||||||
// need to reorder on BE platforms. See http://nodejs.org/api/buffer.html
|
// need to reorder on BE platforms. See https://nodejs.org/api/buffer.html
|
||||||
// regarding Node's "ucs2" encoding specification.
|
// regarding Node's "ucs2" encoding specification.
|
||||||
const bool aligned = (reinterpret_cast<uintptr_t>(data) % sizeof(*buf) == 0);
|
const bool aligned = (reinterpret_cast<uintptr_t>(data) % sizeof(*buf) == 0);
|
||||||
if (IsLittleEndian() && !aligned) {
|
if (IsLittleEndian() && !aligned) {
|
||||||
|
@ -343,7 +343,7 @@ size_t StringBytes::Write(Isolate* isolate,
|
|||||||
|
|
||||||
// Node's "ucs2" encoding wants LE character data stored in
|
// Node's "ucs2" encoding wants LE character data stored in
|
||||||
// the Buffer, so we need to reorder on BE platforms. See
|
// the Buffer, so we need to reorder on BE platforms. See
|
||||||
// http://nodejs.org/api/buffer.html regarding Node's "ucs2"
|
// https://nodejs.org/api/buffer.html regarding Node's "ucs2"
|
||||||
// encoding specification
|
// encoding specification
|
||||||
if (IsBigEndian())
|
if (IsBigEndian())
|
||||||
SwapBytes16(buf, nbytes);
|
SwapBytes16(buf, nbytes);
|
||||||
@ -709,7 +709,7 @@ MaybeLocal<Value> StringBytes::Encode(Isolate* isolate,
|
|||||||
|
|
||||||
// Node's "ucs2" encoding expects LE character data inside a
|
// Node's "ucs2" encoding expects LE character data inside a
|
||||||
// Buffer, so we need to reorder on BE platforms. See
|
// Buffer, so we need to reorder on BE platforms. See
|
||||||
// http://nodejs.org/api/buffer.html regarding Node's "ucs2"
|
// https://nodejs.org/api/buffer.html regarding Node's "ucs2"
|
||||||
// encoding specification
|
// encoding specification
|
||||||
if (IsBigEndian()) {
|
if (IsBigEndian()) {
|
||||||
uint16_t* dst = node::UncheckedMalloc<uint16_t>(buflen);
|
uint16_t* dst = node::UncheckedMalloc<uint16_t>(buflen);
|
||||||
|
@ -254,7 +254,7 @@
|
|||||||
KeyPath="yes"/>
|
KeyPath="yes"/>
|
||||||
<util:InternetShortcut Id="WebsiteShortcut"
|
<util:InternetShortcut Id="WebsiteShortcut"
|
||||||
Name="Node.js website"
|
Name="Node.js website"
|
||||||
Target="http://nodejs.org"
|
Target="https://nodejs.org/"
|
||||||
Type="url"/>
|
Type="url"/>
|
||||||
<util:InternetShortcut Id="DocsShortcut"
|
<util:InternetShortcut Id="DocsShortcut"
|
||||||
Name="Node.js documentation"
|
Name="Node.js documentation"
|
||||||
|
@ -4,4 +4,4 @@ intended for writing scalable network programs such as web servers.
|
|||||||
Packaged by nodejs.org
|
Packaged by nodejs.org
|
||||||
|
|
||||||
Homepage:
|
Homepage:
|
||||||
http://nodejs.org/
|
https://nodejs.org/
|
||||||
|
@ -22,7 +22,7 @@ Summary: Node.js is a platform for building fast, scalable network applications.
|
|||||||
Group: Development/Languages
|
Group: Development/Languages
|
||||||
License: MIT
|
License: MIT
|
||||||
URL: https://nodejs.org/
|
URL: https://nodejs.org/
|
||||||
Source0: http://nodejs.org/dist/v%{_version}/node-v%{_version}.tar.gz
|
Source0: https://nodejs.org/dist/v%{_version}/node-v%{_version}.tar.gz
|
||||||
BuildRequires: gcc
|
BuildRequires: gcc
|
||||||
BuildRequires: gcc-c++
|
BuildRequires: gcc-c++
|
||||||
BuildRequires: glibc-devel
|
BuildRequires: glibc-devel
|
||||||
|
Loading…
x
Reference in New Issue
Block a user