Package: libgettext-ruby1.8
Version: 1.90.0-1
Severity: normal
apt-listbugs does the following, and apparently changing 'ask_str'
will change the result of the next invocation of _("xxx") :
while true
ask_str = _("Are you sure you want to install/upgrade the above
packages?")
if @config.querybts != nil || @config.browser != nil
if hold_pkgs.empty?
ask_str << " [Y/n/?/...] "
else
ask_str << "[N/?/...] "
end
else
ask_str << " [Y/n] "
end
quoting the gettext function, it probably needs to create a duplicated
string or have the string read-only in some way:
# Gets the translated string.
# * msgid: the original message.
# * Returns: the translated string or nil if not found.
def gettext(msgid)
return "" if msgid == "" or msgid.nil?
return nil unless @current_mo
if @current_mo[msgid] and (@current_mo[msgid].size > 0)
@current_mo[msgid]
elsif msgid.include?("\000")
ret = nil
msgid_single = msgid.split("\000")[0]
@current_mo.each{|key, val|
if key =~ /^#{Regexp.quote(msgid_single)}\000/
# Usually, this is not caused to make po-files from rgettext.
warn %Q[Warning: n_("#{msgid_single}",
"#{msgid.split("\000")[1]}") and n_("#{key.gsub(/\000/, '", "')}") are
duplicated.] if $DEBUG
ret = val
break
end
}
ret
else
ret = nil
@current_mo.each{|key, val|
if key =~ /^#{Regexp.quote(msgid)}\000/
ret = val.split("\000")[0]
break
end
}
ret
end
end
-- System Information:
Debian Release: lenny/sid
APT prefers unstable
APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Kernel: Linux 2.6.25-rc3dancer (PREEMPT)
Locale: LANG=ja_JP.eucJP, LC_CTYPE=ja_JP.eucJP (charmap=EUC-JP) (ignored:
LC_ALL set to ja_JP.eucJP)
Shell: /bin/sh linked to /bin/bash
Versions of packages libgettext-ruby1.8 depends on:
ii irb1.8 1.8.6.114-1 Interactive Ruby (for Ruby 1.8)
Versions of packages libgettext-ruby1.8 recommends:
pn libgettext-ruby-data <none> (no description available)
-- no debconf information
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]