unofficial mirror of help-guix@gnu.org 
 help / color / mirror / Atom feed
* Ampersand sign (&) in URL.
@ 2016-10-04 10:50 Dmitry Nikolaev
  2016-10-04 10:56 ` Hartmut Goebel
  2016-10-04 13:35 ` Ludovic Courtès
  0 siblings, 2 replies; 5+ messages in thread
From: Dmitry Nikolaev @ 2016-10-04 10:50 UTC (permalink / raw)
  To: help-guix

[-- Attachment #1: Type: text/plain, Size: 359 bytes --]

Hello. I've tried to package PT Astra font

http://astralinux.com/fonts.html

But it's download URL contains ampersand sign (&).

http://astralinux.com/images/fonts/PTAstraSans&Serif_TTF_ver1001.zip

Guix returns

build failed: invalid character `&' in name
`PTAstraSans&Seif_TTF_ver1001.zip.drv'

How do I escape & in URL so guix accept it?

Dmitry Nikolaev

[-- Attachment #2: Type: text/html, Size: 642 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Ampersand sign (&) in URL.
  2016-10-04 10:50 Dmitry Nikolaev
@ 2016-10-04 10:56 ` Hartmut Goebel
  2016-10-04 13:35 ` Ludovic Courtès
  1 sibling, 0 replies; 5+ messages in thread
From: Hartmut Goebel @ 2016-10-04 10:56 UTC (permalink / raw)
  To: help-guix


[-- Attachment #1.1: Type: text/plain, Size: 593 bytes --]

Am 04.10.2016 um 12:50 schrieb Dmitry Nikolaev:
> How do I escape & in URL so guix accept it?

Try "%26", which is the hex-representation of the ascii-code of "&".

-- 
Schönen Gruß
Hartmut Goebel
Dipl.-Informatiker (univ), CISSP, CSSLP, ISO 27001 Lead Implementer
Information Security Management, Security Governance, Secure Software
Development

Goebel Consult, Landshut
http://www.goebel-consult.de

Blog: http://www.goebel-consult.de/blog/feiertagsarbeit-bei-teletrust
Kolumne:
http://www.cissp-gefluester.de/2012-01-in-die-cloud-in-die-cloud-aber-wo-soll-die-sein



[-- Attachment #1.2: Type: text/html, Size: 1750 bytes --]

[-- Attachment #2: S/MIME Cryptographic Signature --]
[-- Type: application/pkcs7-signature, Size: 2430 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Ampersand sign (&) in URL.
@ 2016-10-04 12:44 Dmitry Nikolaev
  0 siblings, 0 replies; 5+ messages in thread
From: Dmitry Nikolaev @ 2016-10-04 12:44 UTC (permalink / raw)
  To: help-guix

[-- Attachment #1: Type: text/plain, Size: 259 bytes --]

>>build failed: invalid character `&' in name `PTAstraSans&Seif_TTF_ver1001.
zip.drv

>Try "%26", which is the hex-representation of the ascii-code of "&".

build failed: invalid character `%' in name `PTAstraSans%26Seif_TTF_ver1001.
zip.drv

Dmitry Nikolaev

[-- Attachment #2: Type: text/html, Size: 522 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Ampersand sign (&) in URL.
  2016-10-04 10:50 Dmitry Nikolaev
  2016-10-04 10:56 ` Hartmut Goebel
@ 2016-10-04 13:35 ` Ludovic Courtès
  2016-10-04 14:43   ` Vincent Legoll
  1 sibling, 1 reply; 5+ messages in thread
From: Ludovic Courtès @ 2016-10-04 13:35 UTC (permalink / raw)
  To: Dmitry Nikolaev; +Cc: help-guix

Dmitry Nikolaev <cameltheman@gmail.com> skribis:

> But it's download URL contains ampersand sign (&).
>
> http://astralinux.com/images/fonts/PTAstraSans&Serif_TTF_ver1001.zip
>
> Guix returns
>
> build failed: invalid character `&' in name
> `PTAstraSans&Seif_TTF_ver1001.zip.drv'
>
> How do I escape & in URL so guix accept it?

Instead of escaping it, add a ‘file-name’ field in the ‘origin’ form
that does not contain the offending character:

  (origin
    (method url-fetch)
    (uri …)
    (sha256 …)
    (file-name "the-font.zip"))

HTH!
Ludo’.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Ampersand sign (&) in URL.
  2016-10-04 13:35 ` Ludovic Courtès
@ 2016-10-04 14:43   ` Vincent Legoll
  0 siblings, 0 replies; 5+ messages in thread
From: Vincent Legoll @ 2016-10-04 14:43 UTC (permalink / raw)
  To: Ludovic Courtès; +Cc: Dmitry Nikolaev, help-guix

Hello,

> Dmitry Nikolaev <cameltheman@gmail.com> skribis:
>> build failed: invalid character `&' in name

Where is this restriction coming from ?
Could the error message add some help/hint about "adding (file-name ...)" ?

-- 
Vincent Legoll

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2016-10-04 14:43 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-10-04 12:44 Ampersand sign (&) in URL Dmitry Nikolaev
  -- strict thread matches above, loose matches on Subject: below --
2016-10-04 10:50 Dmitry Nikolaev
2016-10-04 10:56 ` Hartmut Goebel
2016-10-04 13:35 ` Ludovic Courtès
2016-10-04 14:43   ` Vincent Legoll

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).