With locale LANG=da_DK.UTF-8 snap will throw strange warning on snap refresh - and more snap commands
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Ubuntu Translations |
New
|
Undecided
|
De danske oversættere af Ubuntu | ||
snapd |
Confirmed
|
Medium
|
Zygmunt Krynicki | ||
snapd (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
To reproduce change locale LANG to da_DK.UTF-8
Make sure to use ubuntu 18.10
Snap versions:
lars@lars-
2018/12/12 19:51:16.123791 main.go:152: description of advise-snap's "from-apt" is lowercase: "advise-snap vil tale med apt via en apt-hook"
snap 2.36.2
snapd 2.36.2
series 16
ubuntu 18.10
kernel 4.18.0-12-generic
As you might have noticed above this is also thrown when running snap --version
ProblemType: Bug
DistroRelease: Ubuntu 18.10
Package: snapd 2.35.5+18.10
ProcVersionSign
Uname: Linux 4.18.0-12-generic x86_64
NonfreeKernelMo
ApportVersion: 2.20.10-0ubuntu13.1
Architecture: amd64
CurrentDesktop: ubuntu:GNOME
Date: Wed Dec 12 19:43:21 2018
InstallationDate: Installed on 2018-04-29 (227 days ago)
InstallationMedia: Ubuntu 18.04 LTS "Bionic Beaver" - Release amd64 (20180426)
ProcEnviron:
LANG=da_DK.UTF-8
TERM=xterm-
SHELL=/bin/bash
XDG_RUNTIME_
PATH=(custom, no user)
SourcePackage: snapd
UpgradeStatus: Upgraded to cosmic on 2018-11-03 (39 days ago)
Changed in ubuntu-translations: | |
assignee: | nobody → De danske oversættere af Ubuntu (ubuntu-l10n-da) |
Here's another person who sees this: https:/ /askubuntu. com/questions/ 1088575/ weird-message- when-installing -programs
Source code is in snap/main.go function lintDesc
func lintDesc(cmdName, optName, desc, origDesc string) { Panicf( "option on %q has no name", cmdName) Panicf( "description of %s's %q of %q set from tag (=> no i18n)", cmdName, optName, origDesc) InString( desc) HasPrefix( desc, "login.ubuntu.com") { "description of %s's %q is lowercase: %q", cmdName, optName, desc)
if len(optName) == 0 {
logger.
}
if len(origDesc) != 0 {
logger.
}
if len(desc) > 0 {
// decode the first rune instead of converting all of desc into []rune
r, _ := utf8.DecodeRune
// note IsLower != !IsUpper for runes with no upper/lower.
// Also note that login.u.c. is the only exception we're allowing for
// now, but the list of exceptions could grow -- if it does, we might
// want to change it to check for urlish things instead of just
// login.u.c.
if unicode.IsLower(r) && !strings.
noticef(
}
}
}