Skip to content

x/text/currency: rouble symbol is only printed with language.Russian #29052

@ainar-g

Description

@ainar-g

What version of Go are you using (go version)?

$ go version
go version go1.11 linux/amd64

Does this issue reproduce with the latest release?

Yes.

What operating system and processor architecture are you using (go env)?

go env Output
$ go env
GOARCH="amd64"
GOBIN=""
GOCACHE="/home/ainar/.cache/go-build"
GOEXE=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GOOS="linux"
GOPATH="/home/ainar/go"
GOPROXY=""
GORACE=""
GOROOT="/home/ainar/go/go1.11"
GOTMPDIR=""
GOTOOLDIR="/home/ainar/go/go1.11/pkg/tool/linux_amd64"
GCCGO="/usr/bin/gccgo"
CC="gcc"
CXX="g++"
CGO_ENABLED="1"
GOMOD=""
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
PKG_CONFIG="pkg-config"
GOGCCFLAGS="-fPIC -m64 -pthread -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build112907181=/tmp/go-build -gno-record-gcc-switches"

What did you do?

https://play.golang.org/p/umgrxwND7k4

(Using floats because #15274.)

What did you expect to see?

₽ 100.00 = € 1.33
100.00 ₽ = 1.33 €
100.00 ₽ = 1.33 €

What did you see instead?

RUB 100.00 = € 1.33
RUB 100.00 = € 1.33
₽ 100.00 = € 1.33

There is #14308 about the symbol position, but I don't understand why the rouble symbol is only used when I use language.Russian, while the euro symbol is used in all cases.

Metadata

Metadata

Assignees

No one assigned

    Labels

    NeedsInvestigationSomeone must examine and confirm this is a valid issue and not a duplicate of an existing one.

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions