commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 25058] - Bug in StringUtils.chomp
Date Sun, 30 Nov 2003 16:19:22 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=25058>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=25058

Bug in StringUtils.chomp

lionel.pieniazek@miradores.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
         Resolution|INVALID                     |



------- Additional Comments From lionel.pieniazek@miradores.com  2003-11-30 16:19 -------
Sorry for the short comments, 

I have this example to show why it doesn´t work.



import org.apache.commons.lang.StringUtils;

public class p {
  public static void main(String[] args) {
    String loc = "es_AR";
    System.out.println(StringUtils.chomp(loc, "_"));
    System.out.println(StringUtils.prechomp(loc, "_"));
  }
}

The result of that is:
es_AR
AR

when should be:
es
AR

Thanks

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message